3 * ldlang.h (lang_input_statement_type): Make next
4 and next_real_file a lang_input_statement_type pointer.
5 (lang_statement_append): Delete prototype.
6 (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
8 * ldmain.c (add_archive_element): Likewise.
9 * ldlang.c: Likewise throughout.
10 (lang_statement_append): Make static. Make element and field
11 void pointers. Remove casts in calls.
12 (lang_check): Use a lang_input_statement_type pointer for "file".
13 (find_rescan_insertion): Similarly for "iter" and return value.
14 (lang_process): Similarly for "insert", "iter" and "temp".
15 * emultempl/spuelf.em (embedded_spu_file): Likewise.
16 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
17 lang_statment_append call.
21 * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
22 * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
23 * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
24 * emultempl/mipself.em: Remove mips_after_parse function.
25 * testsuite/ld-elf/hash.d: Update comment.
26 * testsuite/ld-mips-elf/hash1.d: New test.
27 * testsuite/ld-mips-elf/hash1.s: Ditto.
28 * testsuite/ld-mips-elf/hash1a.d: Remove.
29 * testsuite/ld-mips-elf/hash1b.d: Ditto.
30 * testsuite/ld-mips-elf/hash1c.d: Ditto
31 * testsuite/ld-mips-elf/hash2.d: New test.
32 * testsuite/ld-mips-elf/mips-elf.exp: New tests.
33 * testsuite/ld-mips-elf/start.s: New test.
38 * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
40 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
41 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
42 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
43 * testsuite/ld-aarch64/bti-warn.d: Likewise.
44 * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
45 * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
46 * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
47 * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
48 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
49 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
50 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
51 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
52 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
53 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
54 * testsuite/ld-i386/pr23372a.d: Likewise.
55 * testsuite/ld-i386/pr23372c.d: Likewise.
56 * testsuite/ld-i386/pr23486a.d: Likewise.
57 * testsuite/ld-i386/pr23486b.d: Likewise.
58 * testsuite/ld-i386/pr23486c.d: Likewise.
59 * testsuite/ld-i386/pr23486d.d: Likewise.
60 * testsuite/ld-i386/pr24322a.d: Likewise.
61 * testsuite/ld-i386/pr24322b.d: Likewise.
62 * testsuite/ld-i386/property-x86-3.d: Likewise.
63 * testsuite/ld-i386/property-x86-4a.d: Likewise.
64 * testsuite/ld-i386/property-x86-5.d: Likewise.
65 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
66 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
67 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
68 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
69 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
70 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
71 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
72 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
73 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
74 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
75 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
76 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
77 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
78 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
79 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
80 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
81 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
82 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
83 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
84 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
85 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
86 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
87 * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
88 * testsuite/ld-x86-64/pr23372a.d: Likewise.
89 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
90 * testsuite/ld-x86-64/pr23372c.d: Likewise.
91 * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
92 * testsuite/ld-x86-64/pr23486a.d: Likewise.
93 * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
94 * testsuite/ld-x86-64/pr23486b.d: Likewise.
95 * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
96 * testsuite/ld-x86-64/pr23486c.d: Likewise.
97 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
98 * testsuite/ld-x86-64/pr23486d.d: Likewise.
99 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
100 * testsuite/ld-x86-64/pr24322a.d: Likewise.
101 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
102 * testsuite/ld-x86-64/pr24322b.d: Likewise.
103 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
104 * testsuite/ld-x86-64/pr24458a.d: Likewise.
105 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
106 * testsuite/ld-x86-64/pr24458b.d: Likewise.
107 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
108 * testsuite/ld-x86-64/pr24458c.d: Likewise.
109 * testsuite/ld-x86-64/property-1.r: Likewise.
110 * testsuite/ld-x86-64/property-1a.r: Likewise.
111 * testsuite/ld-x86-64/property-2.r: Likewise.
112 * testsuite/ld-x86-64/property-2a.r: Likewise.
113 * testsuite/ld-x86-64/property-3.r: Likewise.
114 * testsuite/ld-x86-64/property-3a.r: Likewise.
115 * testsuite/ld-x86-64/property-4.r: Likewise.
116 * testsuite/ld-x86-64/property-4a.r: Likewise.
117 * testsuite/ld-x86-64/property-5.r: Likewise.
118 * testsuite/ld-x86-64/property-5a.r: Likewise.
119 * testsuite/ld-x86-64/property-6.r: Likewise.
120 * testsuite/ld-x86-64/property-7.r: Likewise.
121 * testsuite/ld-x86-64/property-7a.r: Likewise.
122 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
123 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
124 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
125 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
126 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
127 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
128 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
129 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
130 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
131 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
132 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
133 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
134 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
135 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
136 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
137 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
138 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
139 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
140 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
141 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
142 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
143 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
144 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
145 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
146 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
147 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
148 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
149 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
150 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
151 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
152 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
153 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
154 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
155 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
156 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
157 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
158 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
159 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
160 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
161 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
162 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
163 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
167 * scripttempl/elf64bpf.sc: Adapted from elf.sc.
168 * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
170 * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
171 undefined entry symbol.
172 * testsuite/ld-bpf/jump-1.d: Likewise.
173 * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
174 ld in BPF targets, and do not expect line number information.
175 * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
181 * ldlang.c (find_replacements_insert_point): Return "before" flag.
182 (find_next_input_statement): New function.
183 (lang_process): When placing recompiled LTO objects before a
184 claimed archive, place them immediately before in the statement
190 * ldlang.c (plugin_undefs): New static var.
191 (open_input_bfds <lang_group_statement_enum>): Loop on
192 plugin_undefs and hitting plugin_insert point.
193 (lang_process <lto_plugin_active>): Set plugin_undefs.
197 * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
202 * ldlang.c (process_insert_statements): Add start of list
203 parameter. Use rather than lang_os_list.head. Process insert
204 statements inside group statements with a recursive call.
205 (lang_process): Adjust process_insert_statements call.
206 * lexsup.c (parse_args): Warn when adding missing --end-group.
210 * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
211 * ldlang.c: Likewise throughout file.
212 * emultempl/alphaelf.em: Likewise.
213 * emultempl/elf32.em: Likewise.
214 * emultempl/mmo.em: Likewise.
215 * emultempl/pe.em: Likewise.
216 * emultempl/pep.em: Likewise.
217 * emultempl/ppc32elf.em: Likewise.
218 * emultempl/spuelf.em: Likewise.
222 * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
223 * testsuite/ld-plugin/lto-5r.d: Likewise.
227 * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
229 * testsuite/ld-plugin/lto-5r.d: Likewise.
230 * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
234 * ld-arc/relax-local-pic.d: New test.
235 * ld-arc/relax-local-pic.s: New file.
239 * testsuite/ld-plugin/lto-3r.d: Remove.
240 * testsuite/ld-plugin/lto-5r.d: Remove.
241 * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
246 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
247 SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
251 * testsuite/ld-elf/size-1.d,
252 * testsuite/ld-elf/size-1.s,
253 * testsuite/ld-elf/size-1.t: New test.
254 * testsuite/ld-elf/size-2.d,
255 * testsuite/ld-elf/size-2.s,
256 * testsuite/ld-elf/size-2.t: New test.
257 * testsuite/ld-scripts/size-1.d,
258 * testsuite/ld-scripts/size-1.s,
259 * testsuite/ld-scripts/size-1.t,
260 * testsuite/ld-scripts/size-2.s,
261 * testsuite/ld-scripts/size-2.d,
262 * testsuite/ld-scripts/size-2.t,
263 * testsuite/ld-scripts/size.exp: Delete.
267 * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
268 allow for output from a arm-none-linux-gnueabihf target.
273 * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
277 * testsuite/ld-powerpc/tlsgd.d,
278 * testsuite/ld-powerpc/tlsgd.s,
279 * testsuite/ld-powerpc/tlsie.d,
280 * testsuite/ld-powerpc/tlsie.s,
281 * testsuite/ld-powerpc/tlsld.d,
282 * testsuite/ld-powerpc/tlsld.s: New tests.
283 * testsuite/ld-powerpc/powerpc.exp: Run them.
287 * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
288 * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
289 * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
290 * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
291 * testsuite/ld-powerpc/powerpc.exp: Update.
296 * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
301 * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
302 member of output section group when doing a relocatable link.
303 * testsuite/ld-elf/pr24819.d: New file.
304 * testsuite/ld-elf/pr24819.s: Likewise.
308 * testsuite/ld-powerpc/tlsso.r: Update.
309 * testsuite/ld-powerpc/tlsso32.g: Update.
310 * testsuite/ld-powerpc/tlsso32.r: Update.
311 * testsuite/ld-powerpc/tlstocso.r: Update.
312 * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
313 * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
314 * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
315 * testsuite/ld-cris/tls-gd-1.d: Update.
316 * testsuite/ld-cris/tls-gd-1h.d: Update.
317 * testsuite/ld-cris/tls-gd-2.d: Update.
318 * testsuite/ld-cris/tls-gd-2h.d: Update.
319 * testsuite/ld-cris/tls-ie-10.d: Update.
320 * testsuite/ld-cris/tls-ie-11.d: Update.
321 * testsuite/ld-cris/tls-ie-8.d: Update.
322 * testsuite/ld-cris/tls-ie-9.d: Update.
323 * testsuite/ld-cris/tls-js1.d: Update.
324 * testsuite/ld-cris/tls-ld-4.d: Update.
325 * testsuite/ld-cris/tls-ld-5.d: Update.
326 * testsuite/ld-cris/tls-ld-6.d: Update.
327 * testsuite/ld-cris/tls-ld-7.d: Update.
328 * testsuite/ld-cris/tls-ldgd-14.d: Update.
329 * testsuite/ld-cris/tls-ldgd-15.d: Update.
330 * testsuite/ld-cris/tls-ldgdx-14.d: Update.
331 * testsuite/ld-cris/tls-ldgdx-15.d: Update.
332 * testsuite/ld-cris/tls-local-54.d: Update.
333 * testsuite/ld-cris/tls-local-60.d: Update.
334 * testsuite/ld-cris/tls-local-61.d: Update.
335 * testsuite/ld-cris/tls-local-63.d: Update.
336 * testsuite/ld-cris/tls-local-64.d: Update.
337 * testsuite/ld-cris/tls-ok-30.d: Update.
338 * testsuite/ld-cris/tls-ok-32.d: Update.
339 * testsuite/ld-cris/tls-ok-34.d: Update.
340 * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
341 * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
342 * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
343 * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
344 * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
345 * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
346 * testsuite/ld-mips-elf/tlslib-o32.got: Update.
347 * testsuite/ld-s390/tlspic.rd: Update.
348 * testsuite/ld-s390/tlspic_64.rd: Update.
349 * testsuite/ld-sparc/tlssunnopic32.rd: Update.
350 * testsuite/ld-sparc/tlssunnopic64.rd: Update.
351 * testsuite/ld-sparc/tlssunpic32.rd: Update.
352 * testsuite/ld-sparc/tlssunpic64.rd: Update.
357 * ldlang.h (enum section_type): Add first_overlay_section.
358 * ldlang.c (lang_add_section): Adjust switch statement.
359 (map_input_to_output_sections): Likewise.
360 (lang_size_sections_1): Always set last_os for first overlay section.
361 (lang_leave_overlay): Set sectype to first_overlay_section.
365 * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
366 * testsuite/ld-powerpc/callstub-2.d: Likewise.
370 * testsuite/ld-elf/group9.s: Correct argument of .type.
375 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
376 LINKER_CREATED section flag when creating the stub section.
380 * testsuite/ld-arm/arm-elf.exp: Add tests.
381 * testsuite/ld-arm/cmse_main.s: New test.
382 * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
383 * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
388 * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
393 * testsuite/ld-powerpc/callstub-1.d,
394 * testsuite/ld-powerpc/callstub-1.s: New test.
395 * testsuite/ld-powerpc/callstub-2.d,
396 * testsuite/ld-powerpc/callstub-2.s: New test.
397 * testsuite/ld-powerpc/powerpc.exp: Run them.
401 * plugin.c (get_lto_kind, get_lto_resolution,
402 get_lto_visibility): Rename "index" to "idx".
407 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
408 * testsuite/ld-x86-64/pr24721-x32.d: New file.
409 * testsuite/ld-x86-64/pr24721.d: Likewise.
410 * testsuite/ld-x86-64/pr24721.map: Likewise.
411 * testsuite/ld-x86-64/pr24721a.s: Likewise.
412 * testsuite/ld-x86-64/pr24721b.s: Likewise.
417 * testsuite/ld-powerpc/elfv2exe.d: Update.
418 * testsuite/ld-powerpc/elfv2so.d: Update.
422 * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
423 * testsuite/ld-aarch64/emit-relocs-22.d: New test.
424 * testsuite/ld-aarch64/emit-relocs-22.s: New test.
425 * testsuite/ld-aarch64/emit-relocs-23.d: New test.
426 * testsuite/ld-aarch64/emit-relocs-23.s: New test.
430 * Makefile.in: Regenerate.
431 * configure: Regenerate.
436 * testsuite/ld-alpha/tlsbin.rd: Update.
437 * testsuite/ld-alpha/tlsbinr.rd: Update.
438 * testsuite/ld-alpha/tlspic.rd: Update.
442 * ld.texi (Options): Also document `-rpath' option restrictions
443 in the description of the option itself.
447 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
448 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
449 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
450 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
454 * NEWS: Update options names.
455 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
456 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
457 (PARSE_AND_LIST_OPTIONS): Update to -z.
458 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
459 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
460 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
461 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
462 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
463 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
464 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
465 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
466 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
467 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
468 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
469 * testsuite/ld-aarch64/bti-warn.d: Likewise.
470 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
471 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
476 * testsuite/ld-elf/ver_def.vd: Update expected output.
481 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
482 (EXTRA_EM_FILE): Define to genelf.
483 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
487 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
488 calls in optional "xfail" args.
489 (run_ld_link_exec_tests): Likewise.
491 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
492 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
493 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
495 * testsuite/ld-elf/sec64k.exp: Use is_generic.
496 * testsuite/ld-elf/shared.exp: Likewise.
497 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
498 * testsuite/ld-discard/start.d: Likewise.
499 * testsuite/ld-discard/static.d: Likewise.
500 * testsuite/ld-elf/attributes.d: Likewise.
501 * testsuite/ld-elf/group1.d: Likewise.
502 * testsuite/ld-elf/group3b.d: Likewise.
503 * testsuite/ld-elf/group8a.d: Likewise.
504 * testsuite/ld-elf/group8b.d: Likewise.
505 * testsuite/ld-elf/group9a.d: Likewise.
506 * testsuite/ld-elf/group9b.d: Likewise.
507 * testsuite/ld-elf/linkonce2.d: Likewise.
508 * testsuite/ld-elf/merge2.d: Likewise.
509 * testsuite/ld-elf/merge3.d: Likewise.
510 * testsuite/ld-elf/pr12851.d: Likewise.
511 * testsuite/ld-elf/pr12975.d: Likewise.
512 * testsuite/ld-elf/pr13177.d: Likewise.
513 * testsuite/ld-elf/pr13195.d: Likewise.
514 * testsuite/ld-elf/pr17550c.d: Likewise.
515 * testsuite/ld-elf/pr17550d.d: Likewise.
516 * testsuite/ld-elf/pr17615.d: Likewise.
517 * testsuite/ld-elf/pr21562a.d: Likewise.
518 * testsuite/ld-elf/pr21562b.d: Likewise.
519 * testsuite/ld-elf/pr21562c.d: Likewise.
520 * testsuite/ld-elf/pr21562d.d: Likewise.
521 * testsuite/ld-elf/pr21562i.d: Likewise.
522 * testsuite/ld-elf/pr21562j.d: Likewise.
523 * testsuite/ld-elf/pr21562k.d: Likewise.
524 * testsuite/ld-elf/pr21562l.d: Likewise.
525 * testsuite/ld-elf/pr21562m.d: Likewise.
526 * testsuite/ld-elf/pr21562n.d: Likewise.
527 * testsuite/ld-elf/pr22677.d: Likewise.
528 * testsuite/ld-elf/pr22836-1a.d: Likewise.
529 * testsuite/ld-elf/pr22836-1b.d: Likewise.
530 * testsuite/ld-elf/warn3.d: Likewise.
531 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
532 targets rather than notarget.
533 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
534 * testsuite/ld-elf/orphan-10.d: Likewise.
535 * testsuite/ld-elf/orphan-9.d: Likewise.
536 * testsuite/ld-elf/orphan-region.d: Likewise.
537 * testsuite/ld-elf/orphan.d: Likewise.
538 * testsuite/ld-elf/orphan3.d: Likewise.
539 * testsuite/ld-elf/pr20528a.d: Likewise.
540 * testsuite/ld-elf/pr20528b.d: Likewise.
541 * testsuite/ld-elf/pr23658-1a.d: Likewise.
542 * testsuite/ld-elf/pr23658-1b.d: Likewise.
543 * testsuite/ld-elf/pr349.d: Likewise.
544 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
545 targets rather than notarget.
546 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
550 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
551 for pcrel_hi/pcrel_lo.
552 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
553 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
554 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
555 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
556 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
561 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
562 the output is coff before accessing coff tdata.
563 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
567 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
568 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
573 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
574 BFS_KEEP on group signature symbol.
578 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
579 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
580 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
581 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
582 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
583 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
584 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
588 * po/BLD-POTFILES.in: Regenerate.
592 * testsuite/ld-powerpc/notoc2.d,
593 * testsuite/ld-powerpc/notoc2.s: New test.
594 * testsuite/ld-powerpc/powerpc.exp: Run it.
598 * testsuite/ld-powerpc/pcrelopt.s,
599 * testsuite/ld-powerpc/pcrelopt.d,
600 * testsuite/ld-powerpc/pcrelopt.sec: New test.
601 * testsuite/ld-powerpc/powerpc.exp: Run it.
605 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
606 * Makefile.in (prefix): Regenerate.
607 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
608 * emulparams/elf64bpf.sh: New file.
609 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
610 bpf-*-* to the list of targets not supporting gc-sections.
611 * testsuite/ld-bpf/bar.s: New file.
612 * testsuite/ld-bpf/jump-1.d: Likewise.
613 * testsuite/ld-bpf/foo.s: Likewise.
614 * testsuite/ld-bpf/call-1.d: Likewise.
615 * testsuite/ld-bpf/bpf.exp: Likewise.
616 * testsuite/ld-bpf/baz.s: Likewise.
621 * ldfile.c (enum script_open_style): New.
622 (struct script_name_list): New.
623 (ldfile_open_command_file_1): Take a script_open_style param
624 rather than booleans. Adjust callers. Only fail when -T or
625 default -T script is invoked twice.
626 (ldfile_try_open_bfd): Revert last change.
632 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
633 is_script. If true check that the file has not already been
634 parsed as a linker script.
635 (ldfile_open_script_file): New function.
636 (ldfile_try_open_bfd): Use the new function in place of
637 ldfile_open_command_line.
638 * ldmain.c (main): Likewise.
639 * lexsup.c (parse_args): Use the new function for opening linker
640 scripts with the -T option.
641 * ldfile.h (ldfile_open_script_file): Add prototype.
645 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
646 %tprel_hi and %tprel_lo relocations.
647 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
648 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
649 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
650 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
655 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
656 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
657 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
658 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
659 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
660 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
661 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
666 * emultempl/mipself.em (compact_branches): New static variable.
667 (mips_create_output_section_statements): Call
668 _bfd_mips_elf_compact_branches.
669 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
670 OPTION_NO_COMPACT_BRANCHES.
671 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
673 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
674 --no-compact-branches.
675 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
676 * ld.texinfo: Document --compact-branches, --no-compact-branches.
677 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
678 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
679 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
680 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
681 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
682 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
683 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
687 * testsuite/ld-arm/arm-elf.exp: Add tests
688 * testsuite/ld-arm/bfs-0.s: New test.
689 * testsuite/ld-arm/bfs-1.s: New test.
690 * testsuite/ld-arm/branch-futures.d: New test.
695 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
697 * NEWS: Add changes to flag.
698 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
699 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
700 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
701 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
702 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
703 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
704 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
705 * testsuite/ld-aarch64/erratum843419-far.s: New test.
706 * testsuite/ld-aarch64/erratum843419-full.d: New test.
707 * testsuite/ld-aarch64/erratum843419-near.s: New test.
708 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
713 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
714 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
719 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
720 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
725 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
727 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
732 * plugin.c (plugin_notice): Do not let a common symbol override
733 a non-common definition in IR.
737 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
743 * ldbuildid.c (generate_build_id): Cast return value from
744 GetProcAddress in order to avoid a compile time warning.
748 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
752 * testsuite/ld-scripts/fill.d: Don't xfail m32c
753 * testsuite/ld-scripts/fill16.d: Likewise.
758 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
759 data section on hppa64.
760 * testsuite/ld-elf/pr14156b.d: Likewise.
761 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
762 output section flags.
763 * testsuite/ld-scripts/sane1.t: Likewise.
764 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
765 and __fini_array_start. Define __start et al.
766 * testsuite/ld-elf/pr24511.d: New test.
770 * testsuite/ld-powerpc/elfv2exe.d: Update.
771 * testsuite/ld-powerpc/elfv2so.d: Update.
772 * testsuite/ld-powerpc/tocopt.d: Update.
773 * testsuite/ld-powerpc/tocopt.s: Update.
774 * testsuite/ld-powerpc/tocopt5.d: Update.
775 * testsuite/ld-powerpc/tocopt5.s: Update.
776 * testsuite/ld-powerpc/tocopt7.d: Update.
777 * testsuite/ld-powerpc/tocopt7.s: Update.
778 * testsuite/ld-powerpc/tocopt8.d: Update.
779 * testsuite/ld-powerpc/tocopt8.s: Update.
783 * ld.texi (How GNU properties are merged): Avoid pod2man error.
789 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
790 * testsuite/ld-plugin/pr24486a.c: New file.
791 * testsuite/ld-plugin/pr24486b.c: Likewise.
792 * testsuite/ld-plugin/pr24486c.c: Likewise.
796 * po/ru.po: Updated Russian translation.
800 * ld.texi: Properly hyphenate the word "specific".
805 * ld.texi: Remove LTO warning from --wrap.
806 * plugin.c (get_symbols): Update resolution for wrapper and
808 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
809 * testsuite/ld-plugin/pr24406-1.c: New file.
810 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
811 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
815 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
816 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
817 * testsuite/ld-aarch64/bti-plt-1.d: Update.
818 * testsuite/ld-aarch64/bti-plt-3.d: Update.
819 * testsuite/ld-aarch64/bti-plt-5.d: Update.
820 * testsuite/ld-aarch64/pac-plt-1.d: Update.
821 * testsuite/ld-aarch64/pac-plt-2.d: Update.
825 * testsuite/config/default.exp: Use [check_compiler_available]
826 instead of [which $CC].
827 * testsuite/ld-auto-import/auto-import.exp: Likewise.
828 * testsuite/ld-cygwin/exe-export.exp: Likewise.
829 * testsuite/ld-elf/audit.exp: Likewise.
830 * testsuite/ld-elf/compress.exp: Likewise.
831 * testsuite/ld-elf/dwarf.exp: Likewise.
832 * testsuite/ld-elf/elf.exp: Likewise.
833 * testsuite/ld-elf/indirect.exp: Likewise.
834 * testsuite/ld-elf/linux-x86.exp: Likewise.
835 * testsuite/ld-elf/shared.exp: Likewise.
836 * testsuite/ld-elf/tls.exp: Likewise.
837 * testsuite/ld-elf/wrap.exp: Likewise.
838 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
839 * testsuite/ld-elfvers/vers.exp: Likewise.
840 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
841 * testsuite/ld-elfweak/elfweak.exp: Likewise.
842 * testsuite/ld-gc/gc.exp: Likewise.
843 * testsuite/ld-i386/i386.exp: Likewise.
844 * testsuite/ld-i386/no-plt.exp: Likewise.
845 * testsuite/ld-i386/tls.exp: Likewise.
846 * testsuite/ld-ifunc/ifunc.exp: Likewise.
847 * testsuite/ld-mn10300/mn10300.exp: Likewise.
848 * testsuite/ld-pe/pe-compile.exp: Likewise.
849 * testsuite/ld-pe/pe-run.exp: Likewise.
850 * testsuite/ld-pe/pe-run2.exp: Likewise.
851 * testsuite/ld-pie/pie.exp: Likewise.
852 * testsuite/ld-plugin/lto.exp: Likewise.
853 * testsuite/ld-plugin/plugin.exp: Likewise.
854 * testsuite/ld-scripts/crossref.exp: Likewise.
855 * testsuite/ld-sh/sh.exp: Likewise.
856 * testsuite/ld-shared/shared.exp: Likewise.
857 * testsuite/ld-size/size.exp: Likewise.
858 * testsuite/ld-srec/srec.exp: Likewise.
859 * testsuite/ld-undefined/undefined.exp: Likewise.
860 * testsuite/ld-unique/unique.exp: Likewise.
861 * testsuite/ld-x86-64/mpx.exp: Likewise.
862 * testsuite/ld-x86-64/no-plt.exp: Likewise.
863 * testsuite/ld-x86-64/tls.exp: Likewise.
864 * testsuite/ld-x86-64/x86-64.exp: Likewise.
865 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
866 check_compiler_available before trying to use the compiler.
867 (run_cc_link_tests): Likewise.
868 (check_compiler_available): New. Use it instead of [which $CC].
872 * Makefile.am (GENDEPDIR): New var, used..
873 (GENSCRIPTS): ..here.
874 * Makefile.in: Regenerate.
875 * genscripts.sh: Test for $DEPDIR set before every use.
879 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
884 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
885 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
886 s12z to list of targets not supporting --gc-sections.
890 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
892 * testsuite/ld-x86-64/x86-64.exp: Likewise.
893 * testsuite/ld-i386/pr18801.d: Removed.
894 * testsuite/ld-x86-64/pr18801.d: Likewise.
895 * testsuite/ld-i386/pr18801a.d: New file.
896 * testsuite/ld-i386/pr18801b.d: Likewise.
897 * testsuite/ld-x86-64/pr18801a.d: Likewise.
898 * testsuite/ld-x86-64/pr18801b.d: Likewise.
899 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
900 * testsuite/ld-x86-64/pie2.d: Likewise.
901 * testsuite/ld-x86-64/pr19719.d: Likewise.
902 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
903 * testsuite/ld-x86-64/pr19969.d: Likewise.
904 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
905 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
906 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
907 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
908 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
913 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
914 * testsuite/ld-x86-64/pr24458.s: New file.
915 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
916 * testsuite/ld-x86-64/pr24458a.d: Likewise.
917 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
918 * testsuite/ld-x86-64/pr24458b.d: Likewise.
919 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
920 * testsuite/ld-x86-64/pr24458c.d: Likewise.
924 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
925 symbol when .lower.bss or .either.bss sections exist.
926 Define __crt0_movedata when .lower.data or .either.data sections exist.
927 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
928 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
929 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
930 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
931 * testsuite/gas/msp430/msp430.exp: Run new tests.
932 Enable large code model when running -mdata-region={upper,either}
937 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
938 * testsuite/ld-scripts/section-match-1.d: Likewise.
939 * testsuite/ld-undefined/require-defined.exp: Likewise.
943 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
948 * testsuite/ld-arm/bfcsel.s: New.
949 * testsuite/ld-arm/bfcsel.d: New.
950 * testsuite/ld-arm/arm-elf.exp: Add above test.
954 * testsuite/ld-arm/bfl.s: New.
955 * testsuite/ld-arm/bfl.d: New.
956 * testsuite/ld-arm/arm-elf.exp: Add above test.
960 * testsuite/ld-arm/bf.s: New.
961 * testsuite/ld-arm/bf.d: New.
962 * testsuite/ld-arm/arm-elf.exp: Add above test.
966 * testsuite/ld-arm/attr-merge-13.attr: New test.
967 * testsuite/ld-arm/attr-merge-13a.s: New test.
968 * testsuite/ld-arm/attr-merge-13b.s: New test.
972 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
974 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
975 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
977 (e*.c): Delete all dependencies, instead include dependencies
979 * Makefile.in: Regenerate.
980 * configure.ac (source_sh): Define and use function.
981 * configure: Regenerate.
982 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
983 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
984 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
985 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
986 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
987 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
988 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
989 * emulparams/armelf_linux_eabi.sh,
990 * emulparams/armelf_linux_fdpiceabi.sh,
991 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
992 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
993 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
994 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
995 * emulparams/armelfb_linux_fdpiceabi.sh,
996 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
997 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
998 * emulparams/elf32_sparc_sol2.sh,
999 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
1000 * emulparams/elf32_tic6x_elf_be.sh,
1001 * emulparams/elf32_tic6x_elf_le.sh,
1002 * emulparams/elf32_tic6x_linux_be.sh,
1003 * emulparams/elf32_tic6x_linux_le.sh,
1004 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
1005 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
1006 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
1007 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
1008 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
1009 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
1010 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
1011 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
1012 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
1013 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
1014 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
1015 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1016 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
1017 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
1018 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
1019 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
1020 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
1021 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
1022 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
1023 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
1024 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
1025 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
1026 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
1027 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
1028 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
1029 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
1030 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
1031 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
1032 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
1033 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
1034 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
1035 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
1036 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
1037 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
1038 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
1039 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
1040 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
1041 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
1042 * emulparams/elf_x86_64_cloudabi.sh,
1043 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
1044 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
1045 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
1046 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
1047 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
1048 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
1049 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
1050 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
1051 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
1052 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
1053 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
1054 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
1055 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
1056 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
1057 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
1058 * emulparams/shl.sh, * emulparams/shlelf.sh,
1059 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
1060 * emulparams/shlelf_vxworks.sh: Use source_sh.
1061 * genscripts.sh: Adjust for changed parameters. Emit dependencies
1062 for e*.c to .deps/*.Pc.
1063 (source_sh): New function, use it throughout to source scripts.
1064 * genscrba.sh (source_em): Use source_sh.
1068 * configure.ac (TDIRS): Build up tdirs in this variable and
1069 AC_SUBST, also using AM_SUBST_NOTMAKE.
1070 * configure: Regenerate.
1071 * Makefile.am (DISTCLEANFILES): Remove tdirs.
1072 * Makefile.in: Regenerate.
1077 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
1078 example of section attributes.
1082 * NEWS: Mention new option --no-print-map-discarded.
1083 * ld.h (ld_config_type) <print_map_discarded>: New field.
1084 * ldlang.c (lang_map): Conditionally output discarded sections
1085 in map files based on configuration option.
1086 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
1087 OPTION_NO_PRINT_MAP_DISCARDED>: New.
1088 * ldmain.c (main): Enabled print_map_discarded by default.
1089 * lexsup.c (ld_options): Add new command-line options.
1090 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
1091 OPTION_PRINT_MAP_DISCARDED>: New cases.
1092 * ld.texi: Document new options.
1093 * testsuite/ld-gc/gc.exp: Add new test.
1094 * testsuite/ld-gc/skip-map-discarded.s: New file.
1095 * testsuite/ld-gc/skip-map-discarded.d: New file.
1096 * testsuite/ld-gc/skip-map-discarded.map: New file.
1100 * ld.texi: Document -z cet-report=[none|warning|error].
1101 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
1102 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
1104 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1105 * testsuite/ld-i386/property-x86-cet1.d: New file.
1106 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
1107 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
1108 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
1109 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
1110 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
1111 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
1112 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
1113 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
1114 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
1115 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
1116 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
1117 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
1118 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
1119 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
1120 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
1121 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
1122 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
1123 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
1124 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
1125 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
1126 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
1127 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
1128 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
1129 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
1130 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
1131 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
1132 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
1133 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
1134 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
1135 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
1139 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
1140 to "-static-pie" if target compiler supports it.
1141 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
1142 $STATIC_PIE_LDFLAGS isn't empty.
1143 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1148 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1149 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
1153 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
1155 (__rel_iplt_start): Don't define for CREATE_PIC.
1156 (__rel_iplt_end): Likewise.
1157 (__rela_iplt_start): Likewise.
1158 (__rela_iplt_end): Likewise.
1162 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
1167 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
1168 setting use_branch_stub false for linux.
1169 (csky_elf_create_output_section_statements): Do emit this
1170 function and all others in the file for linux, plus the branch
1171 option control. Disable branch stubs when non-ELF.
1175 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
1176 (ecskyelf_linux.c): Depend on cskyelf.sh.
1177 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
1178 * Makefile.in: Regenerate.
1179 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
1180 (PAGE_SIZE): Don't define.
1181 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
1182 the differing variable defs/undefs.
1183 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
1184 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
1185 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
1186 (PAGE_SIZE): Don't define.
1187 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
1188 leaving just the differing OUTPUT_FORMAT.
1192 * po/BLD-POTFILES.in: Regenerate.
1196 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
1197 lynxos and nto targets.
1201 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
1202 (eelf_i386_chaos.c): Removed.
1203 * Makefile.in: Regenerated.
1204 * configure.tgt: Remove i[3-7]86-*-kaos*.
1205 * emulparams/elf_i386_chaos.sh: Removed.
1209 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
1210 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
1214 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
1215 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
1216 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
1220 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
1221 (eelf_i386_sol2.c): Also depend on
1222 $(srcdir)/emultempl/solaris2-x86.em.
1223 (eelf_x86_64_sol2.c): Likewise.
1224 * Makefile.in: Regenerated.
1225 * emulparams/call_nop.sh: Set x86-specific linker options via
1227 * emulparams/cet.sh: Likewise.
1228 * emulparams/reloc_overflow.sh: Likewise.
1229 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
1231 * emulparams/elf_i386.sh: Likewise.
1232 * emulparams/elf_i386_be.sh: Likewise.
1233 * emulparams/elf_i386_chaos.sh: Likewise.
1234 * emulparams/elf_i386_ldso.sh: Likewise.
1235 * emulparams/elf_i386_vxworks.sh: Likewise.
1236 * emulparams/elf_iamcu.sh: Likewise.
1237 * emulparams/elf_k1om.sh: Likewise.
1238 * emulparams/elf_l1om.sh: Likewise.
1239 * emulparams/elf_x86_64.sh: Likewise.
1240 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
1242 * emulparams/elf_x86_64_sol2.sh: Likewise.
1243 * emultempl/elf-x86.em: New file.
1244 * emultempl/solaris2-x86.em: Likewise.
1245 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1246 set link_info.call_nop_byte.
1250 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
1251 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1252 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1257 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
1258 (<EXPRESSION>"/DISCARD/"): New.
1262 * ldlex.l: Formatting.
1263 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
1264 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
1265 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
1266 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
1267 (<INPUTLIST>"$SYSROOT"..): Delete rule.
1271 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
1273 * testsuite/ld-xtensa/xtensa.exp
1274 (relax-undef-weak-pie-export-dynamic): Add new test.
1278 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
1279 lto_visibility_str and use then to inform about plugin-symbols.
1280 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
1284 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
1285 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
1289 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1290 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
1291 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
1292 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1293 * testsuite/ld-aarch64/bti-warn.d: New test.
1297 * testsuite/ld-elf/fini2.s: Reduce alignment.
1298 * testsuite/ld-elf/fini3.s: Likewise.
1299 * testsuite/ld-elf/finin.s: Likewise.
1300 * testsuite/ld-elf/init2.s: Likewise.
1301 * testsuite/ld-elf/init3.s: Likewise.
1302 * testsuite/ld-elf/initn.s: Likewise.
1303 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
1304 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
1308 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
1309 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
1310 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
1311 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
1312 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
1313 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
1314 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
1315 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
1316 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
1317 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
1318 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
1319 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
1320 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
1321 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
1322 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
1323 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
1324 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
1325 SORT_NONE to .init and .fini wildcards.
1326 * scripttempl/elf32xc16x.sc,
1327 * scripttempl/elf32xc16xl.sc,
1328 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
1329 * scripttempl/elf_chaos.sc: Add .init output section.
1330 * scripttempl/elfd30v.sc: Remove duplicate .init.
1331 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
1332 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
1333 duplicate .init, and add .fini wildcard.
1334 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
1335 * ldlang.c (update_wild_statements): Special case .init and
1336 .fini in the wildcard, not the output section.
1340 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
1344 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
1345 create_object_symbols_section.
1346 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
1350 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
1351 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
1352 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
1353 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
1358 * ld.texi (-plugin): Correct the path used to locate linker
1363 * NEWS: Document --pac-plt.
1364 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
1365 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
1366 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
1367 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
1368 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
1369 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
1370 * testsuite/ld-aarch64/pac-plt-1.d: New test.
1371 * testsuite/ld-aarch64/pac-plt-2.d: New test.
1372 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
1377 * NEWS: Document --force-bti.
1378 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
1379 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
1380 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
1381 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
1382 * testsuite/ld-aarch64/bti-plt-1.d: New test.
1383 * testsuite/ld-aarch64/bti-plt-1.s: New test.
1384 * testsuite/ld-aarch64/bti-plt-2.d: New test.
1385 * testsuite/ld-aarch64/bti-plt-3.d: New test.
1386 * testsuite/ld-aarch64/bti-plt-4.d: New test.
1387 * testsuite/ld-aarch64/bti-plt-5.d: New test.
1388 * testsuite/ld-aarch64/bti-plt-6.d: New test.
1389 * testsuite/ld-aarch64/bti-plt-7.d: New test.
1390 * testsuite/ld-aarch64/bti-plt-so.s: New test.
1391 * testsuite/ld-aarch64/bti-plt.ld: New test.
1395 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
1396 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
1397 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
1398 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
1399 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
1400 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
1401 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
1402 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
1407 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
1408 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1409 * testsuite/ld-i386/pr24322a.d: New file.
1410 * testsuite/ld-i386/pr24322b.d: Likewise.
1411 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
1412 * testsuite/ld-x86-64/pr24322a.d: Likewise.
1413 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
1414 * testsuite/ld-x86-64/pr24322b.d: Likewise.
1415 * testsuite/ld-x86-64/pr24322a.s: Likewise.
1416 * testsuite/ld-x86-64/pr24322b.s: Likewise.
1417 * testsuite/ld-x86-64/pr24322c.s: Likewise.
1422 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
1423 attributes during the first phase.
1427 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1431 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1432 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1433 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1434 * testsuite/ld-s390/tlsbin.dd: Likewise.
1435 * testsuite/ld-s390/tlsbin.rd: Likewise.
1436 * testsuite/ld-s390/tlsbin.sd: Likewise.
1437 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1438 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1439 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1440 * testsuite/ld-s390/tlspic.dd: Likewise.
1441 * testsuite/ld-s390/tlspic.rd: Likewise.
1442 * testsuite/ld-s390/tlspic.sd: Likewise.
1443 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1444 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1445 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1446 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1451 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
1452 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1453 * testsuite/ld-i386/pr24276.dso: New file.
1454 * testsuite/ld-i386/pr24276.warn: Likewise.
1455 * testsuite/ld-x86-64/pr24276.dso: Likewise.
1456 * testsuite/ld-x86-64/pr24276.warn: Likewise.
1460 * testsuite/ld-xtensa/call_overflow.d: New test definition.
1461 * testsuite/ld-xtensa/call_overflow1.s: New test source.
1462 * testsuite/ld-xtensa/call_overflow2.s: New test source.
1463 * testsuite/ld-xtensa/call_overflow3.s: New test source.
1464 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
1468 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
1472 * po/fr.po: Updated French translation.
1476 * emultempl/arclinux.em: Delete special INIT/FINI handling.
1481 * ld.texi (Options): Add missing word to the description of the
1482 --start-group option.
1487 * testsuite/ld-scripts/pr24008.d: Pass with extra target
1493 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
1494 * testsuite/ld-x86-64/pr24151a.d: Likewise.
1495 * testsuite/ld-x86-64/pr24151a.s: Likewise.
1496 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
1500 * NEWS: Mention -t change.
1501 * ld.texi (--trace/-t): Expand documentation a little.
1506 * testsuite/ld-scripts/defined.exp: Run pr24008.
1507 * testsuite/ld-scripts/pr24008.d: New file.
1508 * testsuite/ld-scripts/pr24008.map: Likewise.
1509 * testsuite/ld-scripts/pr24008.s: Likewise.
1510 * testsuite/ld-scripts/pr24008.t: Likewise.
1514 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
1519 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
1520 * ldexp.c (fold_name): Move expld.assign_name check later to
1521 avoid an extra lookup.
1522 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
1523 values, and don't clear expld.assign_name.
1524 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
1525 (print_assignment): Resolve entire assignment expression.
1526 Don't access symbol u.def unless symbol is defined.
1530 * po/bg.po: Updated Bulgarian translation.
1534 * ld.texi (--wrap): Add warning that LTO may make this feature
1539 * po/uk.po: Updated Ukranian translation.
1540 * po/pr_BR.po: Updated Brazilian Portuguese translation.
1545 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
1546 expected error message.
1550 * configure: Regenerate.
1551 * po/ld.pot: Regenerate.
1555 2.32 branch created.
1559 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
1561 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
1562 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
1563 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
1564 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
1565 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1566 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
1567 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
1568 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1569 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
1570 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
1571 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1572 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
1573 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
1574 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
1575 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
1576 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
1577 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
1578 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
1579 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
1580 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
1581 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
1582 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
1583 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
1584 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
1585 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
1586 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
1587 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
1588 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
1589 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
1590 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
1591 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
1592 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1593 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
1594 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
1595 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1596 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
1597 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
1602 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1603 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1604 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1605 * testsuite/ld-s390/tlsbin.dd: Likewise.
1606 * testsuite/ld-s390/tlsbin.rd: Likewise.
1607 * testsuite/ld-s390/tlsbin.sd: Likewise.
1608 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1609 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1610 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1611 * testsuite/ld-s390/tlspic.dd: Likewise.
1612 * testsuite/ld-s390/tlspic.rd: Likewise.
1613 * testsuite/ld-s390/tlspic.sd: Likewise.
1614 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1615 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1616 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1617 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1621 * ld.texi (--wrap): Add example to emphasise that only undefined
1622 references are replaced by the linker.
1626 * po/es.po: Updated Spanish translation.
1630 * configure: Regenerate.
1634 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
1635 generated source file names.
1636 * testsuite/ld-m68k/m68k-got.exp: Likewise.
1640 Update year range in copyright notice of all files.
1642 For older changes see ChangeLog-2018
1644 Copyright (C) 2019 Free Software Foundation, Inc.
1646 Copying and distribution of this file, with or without modification,
1647 are permitted in any medium without royalty provided the copyright
1648 notice and this notice are preserved.
1654 version-control: never