Add support for a MIPS specific .MIPS.xhash section.
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
2
3 * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
4 * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
5 * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
6 * emultempl/mipself.em: Remove mips_after_parse function.
7 * testsuite/ld-elf/hash.d: Update comment.
8 * testsuite/ld-mips-elf/hash1.d: New test.
9 * testsuite/ld-mips-elf/hash1.s: Ditto.
10 * testsuite/ld-mips-elf/hash1a.d: Remove.
11 * testsuite/ld-mips-elf/hash1b.d: Ditto.
12 * testsuite/ld-mips-elf/hash1c.d: Ditto
13 * testsuite/ld-mips-elf/hash2.d: New test.
14 * testsuite/ld-mips-elf/mips-elf.exp: New tests.
15 * testsuite/ld-mips-elf/start.s: New test.
16
17 2019-08-08 Nick Clifton <nickc@redhat.com>
18
19 PR 24887
20 * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
21 from readelf.
22 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
23 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
24 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
25 * testsuite/ld-aarch64/bti-warn.d: Likewise.
26 * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
27 * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
28 * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
29 * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
30 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
31 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
32 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
33 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
34 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
35 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
36 * testsuite/ld-i386/pr23372a.d: Likewise.
37 * testsuite/ld-i386/pr23372c.d: Likewise.
38 * testsuite/ld-i386/pr23486a.d: Likewise.
39 * testsuite/ld-i386/pr23486b.d: Likewise.
40 * testsuite/ld-i386/pr23486c.d: Likewise.
41 * testsuite/ld-i386/pr23486d.d: Likewise.
42 * testsuite/ld-i386/pr24322a.d: Likewise.
43 * testsuite/ld-i386/pr24322b.d: Likewise.
44 * testsuite/ld-i386/property-x86-3.d: Likewise.
45 * testsuite/ld-i386/property-x86-4a.d: Likewise.
46 * testsuite/ld-i386/property-x86-5.d: Likewise.
47 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
48 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
49 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
50 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
51 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
52 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
53 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
54 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
55 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
56 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
57 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
58 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
59 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
60 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
61 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
62 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
63 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
64 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
65 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
66 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
67 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
68 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
69 * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
70 * testsuite/ld-x86-64/pr23372a.d: Likewise.
71 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
72 * testsuite/ld-x86-64/pr23372c.d: Likewise.
73 * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
74 * testsuite/ld-x86-64/pr23486a.d: Likewise.
75 * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
76 * testsuite/ld-x86-64/pr23486b.d: Likewise.
77 * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
78 * testsuite/ld-x86-64/pr23486c.d: Likewise.
79 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
80 * testsuite/ld-x86-64/pr23486d.d: Likewise.
81 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
82 * testsuite/ld-x86-64/pr24322a.d: Likewise.
83 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
84 * testsuite/ld-x86-64/pr24322b.d: Likewise.
85 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
86 * testsuite/ld-x86-64/pr24458a.d: Likewise.
87 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
88 * testsuite/ld-x86-64/pr24458b.d: Likewise.
89 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
90 * testsuite/ld-x86-64/pr24458c.d: Likewise.
91 * testsuite/ld-x86-64/property-1.r: Likewise.
92 * testsuite/ld-x86-64/property-1a.r: Likewise.
93 * testsuite/ld-x86-64/property-2.r: Likewise.
94 * testsuite/ld-x86-64/property-2a.r: Likewise.
95 * testsuite/ld-x86-64/property-3.r: Likewise.
96 * testsuite/ld-x86-64/property-3a.r: Likewise.
97 * testsuite/ld-x86-64/property-4.r: Likewise.
98 * testsuite/ld-x86-64/property-4a.r: Likewise.
99 * testsuite/ld-x86-64/property-5.r: Likewise.
100 * testsuite/ld-x86-64/property-5a.r: Likewise.
101 * testsuite/ld-x86-64/property-6.r: Likewise.
102 * testsuite/ld-x86-64/property-7.r: Likewise.
103 * testsuite/ld-x86-64/property-7a.r: Likewise.
104 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
105 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
106 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
107 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
108 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
109 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
110 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
111 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
112 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
113 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
114 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
115 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
116 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
117 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
118 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
119 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
120 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
121 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
122 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
123 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
124 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
125 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
126 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
127 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
128 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
129 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
130 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
131 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
132 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
133 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
134 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
135 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
136 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
137 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
138 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
139 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
140 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
141 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
142 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
143 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
144 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
145 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
146
147 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
148
149 * scripttempl/elf64bpf.sc: Adapted from elf.sc.
150 * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
151 (EMBEDDED): Define.
152 * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
153 undefined entry symbol.
154 * testsuite/ld-bpf/jump-1.d: Likewise.
155 * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
156 ld in BPF targets, and do not expect line number information.
157 * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
158 in BPF targets.
159
160 2019-08-06 Alan Modra <amodra@gmail.com>
161
162 PR 24873
163 * ldlang.c (find_replacements_insert_point): Return "before" flag.
164 (find_next_input_statement): New function.
165 (lang_process): When placing recompiled LTO objects before a
166 claimed archive, place them immediately before in the statement
167 list.
168
169 2019-08-06 Alan Modra <amodra@gmail.com>
170
171 PR 24873
172 * ldlang.c (plugin_undefs): New static var.
173 (open_input_bfds <lang_group_statement_enum>): Loop on
174 plugin_undefs and hitting plugin_insert point.
175 (lang_process <lto_plugin_active>): Set plugin_undefs.
176
177 2019-08-02 Alan Modra <amodra@gmail.com>
178
179 * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
180
181 2019-08-01 Alan Modra <amodra@gmail.com>
182
183 PR 24806
184 * ldlang.c (process_insert_statements): Add start of list
185 parameter. Use rather than lang_os_list.head. Process insert
186 statements inside group statements with a recursive call.
187 (lang_process): Adjust process_insert_statements call.
188 * lexsup.c (parse_args): Warn when adding missing --end-group.
189
190 2019-08-01 Alan Modra <amodra@gmail.com>
191
192 * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
193 * ldlang.c: Likewise throughout file.
194 * emultempl/alphaelf.em: Likewise.
195 * emultempl/elf32.em: Likewise.
196 * emultempl/mmo.em: Likewise.
197 * emultempl/pe.em: Likewise.
198 * emultempl/pep.em: Likewise.
199 * emultempl/ppc32elf.em: Likewise.
200 * emultempl/spuelf.em: Likewise.
201
202 2019-07-26 Alan Modra <amodra@gmail.com>
203
204 * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
205 * testsuite/ld-plugin/lto-5r.d: Likewise.
206
207 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
208
209 * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
210 of __gnu_lto_v.*.
211 * testsuite/ld-plugin/lto-5r.d: Likewise.
212 * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
213
214 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
215
216 * ld-arc/relax-local-pic.d: New test.
217 * ld-arc/relax-local-pic.s: New file.
218
219 2019-07-22 Martin Liska <mliska@suse.cz>
220
221 * testsuite/ld-plugin/lto-3r.d: Remove.
222 * testsuite/ld-plugin/lto-5r.d: Remove.
223 * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
224 tests.
225
226 2019-07-23 Alan Modra <amodra@gmail.com>
227
228 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
229 SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
230
231 2019-07-23 Alan Modra <amodra@gmail.com>
232
233 * testsuite/ld-elf/size-1.d,
234 * testsuite/ld-elf/size-1.s,
235 * testsuite/ld-elf/size-1.t: New test.
236 * testsuite/ld-elf/size-2.d,
237 * testsuite/ld-elf/size-2.s,
238 * testsuite/ld-elf/size-2.t: New test.
239 * testsuite/ld-scripts/size-1.d,
240 * testsuite/ld-scripts/size-1.s,
241 * testsuite/ld-scripts/size-1.t,
242 * testsuite/ld-scripts/size-2.s,
243 * testsuite/ld-scripts/size-2.d,
244 * testsuite/ld-scripts/size-2.t,
245 * testsuite/ld-scripts/size.exp: Delete.
246
247 2019-07-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
248
249 * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
250 allow for output from a arm-none-linux-gnueabihf target.
251
252 2019-07-20 Alan Modra <amodra@gmail.com>
253
254 PR 24827
255 * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
256
257 2019-07-19 Alan Modra <amodra@gmail.com>
258
259 * testsuite/ld-powerpc/tlsgd.d,
260 * testsuite/ld-powerpc/tlsgd.s,
261 * testsuite/ld-powerpc/tlsie.d,
262 * testsuite/ld-powerpc/tlsie.s,
263 * testsuite/ld-powerpc/tlsld.d,
264 * testsuite/ld-powerpc/tlsld.s: New tests.
265 * testsuite/ld-powerpc/powerpc.exp: Run them.
266
267 2019-07-19 Alan Modra <amodra@gmail.com>
268
269 * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
270 * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
271 * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
272 * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
273 * testsuite/ld-powerpc/powerpc.exp: Update.
274
275 2019-07-19 Alan Modra <amodra@gmail.com>
276
277 PR 24819
278 * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
279
280 2019-07-18 H.J. Lu <hongjiu.lu@intel.com>
281
282 PR ld/24819
283 * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
284 member of output section group when doing a relocatable link.
285 * testsuite/ld-elf/pr24819.d: New file.
286 * testsuite/ld-elf/pr24819.s: Likewise.
287
288 2019-07-13 Alan Modra <amodra@gmail.com>
289
290 * testsuite/ld-powerpc/tlsso.r: Update.
291 * testsuite/ld-powerpc/tlsso32.g: Update.
292 * testsuite/ld-powerpc/tlsso32.r: Update.
293 * testsuite/ld-powerpc/tlstocso.r: Update.
294 * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
295 * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
296 * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
297 * testsuite/ld-cris/tls-gd-1.d: Update.
298 * testsuite/ld-cris/tls-gd-1h.d: Update.
299 * testsuite/ld-cris/tls-gd-2.d: Update.
300 * testsuite/ld-cris/tls-gd-2h.d: Update.
301 * testsuite/ld-cris/tls-ie-10.d: Update.
302 * testsuite/ld-cris/tls-ie-11.d: Update.
303 * testsuite/ld-cris/tls-ie-8.d: Update.
304 * testsuite/ld-cris/tls-ie-9.d: Update.
305 * testsuite/ld-cris/tls-js1.d: Update.
306 * testsuite/ld-cris/tls-ld-4.d: Update.
307 * testsuite/ld-cris/tls-ld-5.d: Update.
308 * testsuite/ld-cris/tls-ld-6.d: Update.
309 * testsuite/ld-cris/tls-ld-7.d: Update.
310 * testsuite/ld-cris/tls-ldgd-14.d: Update.
311 * testsuite/ld-cris/tls-ldgd-15.d: Update.
312 * testsuite/ld-cris/tls-ldgdx-14.d: Update.
313 * testsuite/ld-cris/tls-ldgdx-15.d: Update.
314 * testsuite/ld-cris/tls-local-54.d: Update.
315 * testsuite/ld-cris/tls-local-60.d: Update.
316 * testsuite/ld-cris/tls-local-61.d: Update.
317 * testsuite/ld-cris/tls-local-63.d: Update.
318 * testsuite/ld-cris/tls-local-64.d: Update.
319 * testsuite/ld-cris/tls-ok-30.d: Update.
320 * testsuite/ld-cris/tls-ok-32.d: Update.
321 * testsuite/ld-cris/tls-ok-34.d: Update.
322 * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
323 * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
324 * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
325 * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
326 * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
327 * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
328 * testsuite/ld-mips-elf/tlslib-o32.got: Update.
329 * testsuite/ld-s390/tlspic.rd: Update.
330 * testsuite/ld-s390/tlspic_64.rd: Update.
331 * testsuite/ld-sparc/tlssunnopic32.rd: Update.
332 * testsuite/ld-sparc/tlssunnopic64.rd: Update.
333 * testsuite/ld-sparc/tlssunpic32.rd: Update.
334 * testsuite/ld-sparc/tlssunpic64.rd: Update.
335
336 2019-07-13 Alan Modra <amodra@gmail.com>
337
338 PR 24786
339 * ldlang.h (enum section_type): Add first_overlay_section.
340 * ldlang.c (lang_add_section): Adjust switch statement.
341 (map_input_to_output_sections): Likewise.
342 (lang_size_sections_1): Always set last_os for first overlay section.
343 (lang_leave_overlay): Set sectype to first_overlay_section.
344
345 2019-07-08 Alan Modra <amodra@gmail.com>
346
347 * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
348 * testsuite/ld-powerpc/callstub-2.d: Likewise.
349
350 2019-07-04 Jan Beulich <jbeulich@suse.com>
351
352 * testsuite/ld-elf/group9.s: Correct argument of .type.
353
354 2019-07-02 Nick Clifton <nickc@redhat.com>
355
356 PR 24753
357 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
358 LINKER_CREATED section flag when creating the stub section.
359
360 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
361
362 * testsuite/ld-arm/arm-elf.exp: Add tests.
363 * testsuite/ld-arm/cmse_main.s: New test.
364 * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
365 * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
366
367 2019-07-01 Nick Clifton <nickc@redhat.com>
368
369 PR 23839
370 * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
371 exidx relocs.
372
373 2019-06-28 Alan Modra <amodra@gmail.com>
374
375 * testsuite/ld-powerpc/callstub-1.d,
376 * testsuite/ld-powerpc/callstub-1.s: New test.
377 * testsuite/ld-powerpc/callstub-2.d,
378 * testsuite/ld-powerpc/callstub-2.s: New test.
379 * testsuite/ld-powerpc/powerpc.exp: Run them.
380
381 2019-06-25 Jan Beulich <jbeulich@suse.com>
382
383 * plugin.c (get_lto_kind, get_lto_resolution,
384 get_lto_visibility): Rename "index" to "idx".
385
386 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
387
388 PR ld/24721
389 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
390 * testsuite/ld-x86-64/pr24721-x32.d: New file.
391 * testsuite/ld-x86-64/pr24721.d: Likewise.
392 * testsuite/ld-x86-64/pr24721.map: Likewise.
393 * testsuite/ld-x86-64/pr24721a.s: Likewise.
394 * testsuite/ld-x86-64/pr24721b.s: Likewise.
395
396 2019-06-23 Alan Modra <amodra@gmail.com>
397
398 PR 24704
399 * testsuite/ld-powerpc/elfv2exe.d: Update.
400 * testsuite/ld-powerpc/elfv2so.d: Update.
401
402 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
403
404 * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
405 * testsuite/ld-aarch64/emit-relocs-22.d: New test.
406 * testsuite/ld-aarch64/emit-relocs-22.s: New test.
407 * testsuite/ld-aarch64/emit-relocs-23.d: New test.
408 * testsuite/ld-aarch64/emit-relocs-23.s: New test.
409
410 2019-06-14 Alan Modra <amodra@gmail.com>
411
412 * Makefile.in: Regenerate.
413 * configure: Regenerate.
414
415 2019-06-14 Alan Modra <amodra@gmail.com>
416
417 PR 24662
418 * testsuite/ld-alpha/tlsbin.rd: Update.
419 * testsuite/ld-alpha/tlsbinr.rd: Update.
420 * testsuite/ld-alpha/tlspic.rd: Update.
421
422 2019-06-07 Maciej W. Rozycki <macro@wdc.com>
423
424 * ld.texi (Options): Also document `-rpath' option restrictions
425 in the description of the option itself.
426
427 2019-06-06 Sudakshina Das <sudi.das@arm.com>
428
429 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
430 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
431 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
432 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
433
434 2019-06-06 Sudakshina Das <sudi.das@arm.com>
435
436 * NEWS: Update options names.
437 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
438 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
439 (PARSE_AND_LIST_OPTIONS): Update to -z.
440 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
441 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
442 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
443 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
444 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
445 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
446 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
447 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
448 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
449 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
450 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
451 * testsuite/ld-aarch64/bti-warn.d: Likewise.
452 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
453 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
454
455 2019-05-30 Nick Clifton <nickc@redhat.com>
456
457 PR 24627
458 * testsuite/ld-elf/ver_def.vd: Update expected output.
459
460 2019-05-30 Alan Modra <amodra@gmail.com>
461
462 PR 24596
463 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
464 (EXTRA_EM_FILE): Define to genelf.
465 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
466
467 2019-05-30 Alan Modra <amodra@gmail.com>
468
469 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
470 calls in optional "xfail" args.
471 (run_ld_link_exec_tests): Likewise.
472 (is_generic): New.
473 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
474 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
475 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
476 xfail_implib var.
477 * testsuite/ld-elf/sec64k.exp: Use is_generic.
478 * testsuite/ld-elf/shared.exp: Likewise.
479 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
480 * testsuite/ld-discard/start.d: Likewise.
481 * testsuite/ld-discard/static.d: Likewise.
482 * testsuite/ld-elf/attributes.d: Likewise.
483 * testsuite/ld-elf/group1.d: Likewise.
484 * testsuite/ld-elf/group3b.d: Likewise.
485 * testsuite/ld-elf/group8a.d: Likewise.
486 * testsuite/ld-elf/group8b.d: Likewise.
487 * testsuite/ld-elf/group9a.d: Likewise.
488 * testsuite/ld-elf/group9b.d: Likewise.
489 * testsuite/ld-elf/linkonce2.d: Likewise.
490 * testsuite/ld-elf/merge2.d: Likewise.
491 * testsuite/ld-elf/merge3.d: Likewise.
492 * testsuite/ld-elf/pr12851.d: Likewise.
493 * testsuite/ld-elf/pr12975.d: Likewise.
494 * testsuite/ld-elf/pr13177.d: Likewise.
495 * testsuite/ld-elf/pr13195.d: Likewise.
496 * testsuite/ld-elf/pr17550c.d: Likewise.
497 * testsuite/ld-elf/pr17550d.d: Likewise.
498 * testsuite/ld-elf/pr17615.d: Likewise.
499 * testsuite/ld-elf/pr21562a.d: Likewise.
500 * testsuite/ld-elf/pr21562b.d: Likewise.
501 * testsuite/ld-elf/pr21562c.d: Likewise.
502 * testsuite/ld-elf/pr21562d.d: Likewise.
503 * testsuite/ld-elf/pr21562i.d: Likewise.
504 * testsuite/ld-elf/pr21562j.d: Likewise.
505 * testsuite/ld-elf/pr21562k.d: Likewise.
506 * testsuite/ld-elf/pr21562l.d: Likewise.
507 * testsuite/ld-elf/pr21562m.d: Likewise.
508 * testsuite/ld-elf/pr21562n.d: Likewise.
509 * testsuite/ld-elf/pr22677.d: Likewise.
510 * testsuite/ld-elf/pr22836-1a.d: Likewise.
511 * testsuite/ld-elf/pr22836-1b.d: Likewise.
512 * testsuite/ld-elf/warn3.d: Likewise.
513 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
514 targets rather than notarget.
515 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
516 * testsuite/ld-elf/orphan-10.d: Likewise.
517 * testsuite/ld-elf/orphan-9.d: Likewise.
518 * testsuite/ld-elf/orphan-region.d: Likewise.
519 * testsuite/ld-elf/orphan.d: Likewise.
520 * testsuite/ld-elf/orphan3.d: Likewise.
521 * testsuite/ld-elf/pr20528a.d: Likewise.
522 * testsuite/ld-elf/pr20528b.d: Likewise.
523 * testsuite/ld-elf/pr23658-1a.d: Likewise.
524 * testsuite/ld-elf/pr23658-1b.d: Likewise.
525 * testsuite/ld-elf/pr349.d: Likewise.
526 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
527 targets rather than notarget.
528 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
529
530 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
531
532 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
533 for pcrel_hi/pcrel_lo.
534 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
535 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
536 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
537 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
538 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
539
540 2019-05-28 Alan Modra <amodra@gmail.com>
541
542 PR 24596
543 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
544 the output is coff before accessing coff tdata.
545 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
546
547 2019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
548
549 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
550 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
551
552 2019-05-27 Alan Modra <amodra@gmail.com>
553
554 PR 24596
555 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
556 BFS_KEEP on group signature symbol.
557
558 2019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
559
560 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
561 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
562 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
563 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
564 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
565 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
566 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
567
568 2019-05-24 Alan Modra <amodra@gmail.com>
569
570 * po/BLD-POTFILES.in: Regenerate.
571
572 2019-05-24 Alan Modra <amodra@gmail.com>
573
574 * testsuite/ld-powerpc/notoc2.d,
575 * testsuite/ld-powerpc/notoc2.s: New test.
576 * testsuite/ld-powerpc/powerpc.exp: Run it.
577
578 2019-05-24 Alan Modra <amodra@gmail.com>
579
580 * testsuite/ld-powerpc/pcrelopt.s,
581 * testsuite/ld-powerpc/pcrelopt.d,
582 * testsuite/ld-powerpc/pcrelopt.sec: New test.
583 * testsuite/ld-powerpc/powerpc.exp: Run it.
584
585 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
586
587 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
588 * Makefile.in (prefix): Regenerate.
589 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
590 * emulparams/elf64bpf.sh: New file.
591 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
592 bpf-*-* to the list of targets not supporting gc-sections.
593 * testsuite/ld-bpf/bar.s: New file.
594 * testsuite/ld-bpf/jump-1.d: Likewise.
595 * testsuite/ld-bpf/foo.s: Likewise.
596 * testsuite/ld-bpf/call-1.d: Likewise.
597 * testsuite/ld-bpf/bpf.exp: Likewise.
598 * testsuite/ld-bpf/baz.s: Likewise.
599
600 2019-05-23 Alan Modra <amodra@gmail.com>
601
602 PR 24576
603 * ldfile.c (enum script_open_style): New.
604 (struct script_name_list): New.
605 (ldfile_open_command_file_1): Take a script_open_style param
606 rather than booleans. Adjust callers. Only fail when -T or
607 default -T script is invoked twice.
608 (ldfile_try_open_bfd): Revert last change.
609
610 2019-05-22 Julius Werner <jwerner@chromium.org>
611 Nick Clifton <nickc@redhat.com>
612
613 PR 24576
614 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
615 is_script. If true check that the file has not already been
616 parsed as a linker script.
617 (ldfile_open_script_file): New function.
618 (ldfile_try_open_bfd): Use the new function in place of
619 ldfile_open_command_line.
620 * ldmain.c (main): Likewise.
621 * lexsup.c (parse_args): Use the new function for opening linker
622 scripts with the -T option.
623 * ldfile.h (ldfile_open_script_file): Add prototype.
624
625 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
626
627 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
628 %tprel_hi and %tprel_lo relocations.
629 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
630 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
631 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
632 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
633 script file.
634
635 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
636
637 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
638 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
639 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
640 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
641 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
642 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
643 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
644
645 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
646 Faraz Shahbazker <fshahbazker@wavecomp.com>
647
648 * emultempl/mipself.em (compact_branches): New static variable.
649 (mips_create_output_section_statements): Call
650 _bfd_mips_elf_compact_branches.
651 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
652 OPTION_NO_COMPACT_BRANCHES.
653 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
654 no-compact-branches.
655 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
656 --no-compact-branches.
657 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
658 * ld.texinfo: Document --compact-branches, --no-compact-branches.
659 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
660 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
661 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
662 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
663 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
664 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
665 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
666
667 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
668
669 * testsuite/ld-arm/arm-elf.exp: Add tests
670 * testsuite/ld-arm/bfs-0.s: New test.
671 * testsuite/ld-arm/bfs-1.s: New test.
672 * testsuite/ld-arm/branch-futures.d: New test.
673
674 2019-05-21 Tamar Christina <tamar.christina@arm.com>
675
676 PR ld/24373
677 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
678 to flags.
679 * NEWS: Add changes to flag.
680 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
681 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
682 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
683 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
684 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
685 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
686 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
687 * testsuite/ld-aarch64/erratum843419-far.s: New test.
688 * testsuite/ld-aarch64/erratum843419-full.d: New test.
689 * testsuite/ld-aarch64/erratum843419-near.s: New test.
690 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
691
692 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
693
694 PR ld/24571
695 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
696 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
697
698 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
699
700 PR ld/24564
701 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
702 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
703
704 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
705
706 PR 14798
707 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
708 global code symbols.
709 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
710
711 2019-05-17 Alan Modra <amodra@gmail.com>
712
713 PR 24567
714 * plugin.c (plugin_notice): Do not let a common symbol override
715 a non-common definition in IR.
716
717 2019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
718
719 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
720 Rename.
721
722 2019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
723
724 PR 24536
725 * ldbuildid.c (generate_build_id): Cast return value from
726 GetProcAddress in order to avoid a compile time warning.
727
728 2019-05-06 Alan Modra <amodra@gmail.com>
729
730 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
731
732 2019-05-04 Alan Modra <amodra@gmail.com>
733
734 * testsuite/ld-scripts/fill.d: Don't xfail m32c
735 * testsuite/ld-scripts/fill16.d: Likewise.
736
737 2019-05-04 Alan Modra <amodra@gmail.com>
738
739 PR 24511
740 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
741 data section on hppa64.
742 * testsuite/ld-elf/pr14156b.d: Likewise.
743 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
744 output section flags.
745 * testsuite/ld-scripts/sane1.t: Likewise.
746 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
747 and __fini_array_start. Define __start et al.
748 * testsuite/ld-elf/pr24511.d: New test.
749
750 2019-04-30 Alan Modra <amodra@gmail.com>
751
752 * testsuite/ld-powerpc/elfv2exe.d: Update.
753 * testsuite/ld-powerpc/elfv2so.d: Update.
754 * testsuite/ld-powerpc/tocopt.d: Update.
755 * testsuite/ld-powerpc/tocopt.s: Update.
756 * testsuite/ld-powerpc/tocopt5.d: Update.
757 * testsuite/ld-powerpc/tocopt5.s: Update.
758 * testsuite/ld-powerpc/tocopt7.d: Update.
759 * testsuite/ld-powerpc/tocopt7.s: Update.
760 * testsuite/ld-powerpc/tocopt8.d: Update.
761 * testsuite/ld-powerpc/tocopt8.s: Update.
762
763 2019-04-30 Alan Modra <amodra@gmail.com>
764
765 * ld.texi (How GNU properties are merged): Avoid pod2man error.
766 Correct example.
767
768 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
769
770 PR ld/24486
771 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
772 * testsuite/ld-plugin/pr24486a.c: New file.
773 * testsuite/ld-plugin/pr24486b.c: Likewise.
774 * testsuite/ld-plugin/pr24486c.c: Likewise.
775
776 2019-04-26 Nick Clifton <nickc@redhat.com>
777
778 * po/ru.po: Updated Russian translation.
779
780 2019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
781
782 * ld.texi: Properly hyphenate the word "specific".
783
784 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
785
786 PR ld/24406
787 * ld.texi: Remove LTO warning from --wrap.
788 * plugin.c (get_symbols): Update resolution for wrapper and
789 wrapped symbols.
790 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
791 * testsuite/ld-plugin/pr24406-1.c: New file.
792 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
793 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
794
795 2019-04-25 Sudakshina Das <sudi.das@arm.com>
796
797 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
798 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
799 * testsuite/ld-aarch64/bti-plt-1.d: Update.
800 * testsuite/ld-aarch64/bti-plt-3.d: Update.
801 * testsuite/ld-aarch64/bti-plt-5.d: Update.
802 * testsuite/ld-aarch64/pac-plt-1.d: Update.
803 * testsuite/ld-aarch64/pac-plt-2.d: Update.
804
805 2019-04-24 Sandra Loosemore <sandra@codesourcery.com>
806
807 * testsuite/config/default.exp: Use [check_compiler_available]
808 instead of [which $CC].
809 * testsuite/ld-auto-import/auto-import.exp: Likewise.
810 * testsuite/ld-cygwin/exe-export.exp: Likewise.
811 * testsuite/ld-elf/audit.exp: Likewise.
812 * testsuite/ld-elf/compress.exp: Likewise.
813 * testsuite/ld-elf/dwarf.exp: Likewise.
814 * testsuite/ld-elf/elf.exp: Likewise.
815 * testsuite/ld-elf/indirect.exp: Likewise.
816 * testsuite/ld-elf/linux-x86.exp: Likewise.
817 * testsuite/ld-elf/shared.exp: Likewise.
818 * testsuite/ld-elf/tls.exp: Likewise.
819 * testsuite/ld-elf/wrap.exp: Likewise.
820 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
821 * testsuite/ld-elfvers/vers.exp: Likewise.
822 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
823 * testsuite/ld-elfweak/elfweak.exp: Likewise.
824 * testsuite/ld-gc/gc.exp: Likewise.
825 * testsuite/ld-i386/i386.exp: Likewise.
826 * testsuite/ld-i386/no-plt.exp: Likewise.
827 * testsuite/ld-i386/tls.exp: Likewise.
828 * testsuite/ld-ifunc/ifunc.exp: Likewise.
829 * testsuite/ld-mn10300/mn10300.exp: Likewise.
830 * testsuite/ld-pe/pe-compile.exp: Likewise.
831 * testsuite/ld-pe/pe-run.exp: Likewise.
832 * testsuite/ld-pe/pe-run2.exp: Likewise.
833 * testsuite/ld-pie/pie.exp: Likewise.
834 * testsuite/ld-plugin/lto.exp: Likewise.
835 * testsuite/ld-plugin/plugin.exp: Likewise.
836 * testsuite/ld-scripts/crossref.exp: Likewise.
837 * testsuite/ld-sh/sh.exp: Likewise.
838 * testsuite/ld-shared/shared.exp: Likewise.
839 * testsuite/ld-size/size.exp: Likewise.
840 * testsuite/ld-srec/srec.exp: Likewise.
841 * testsuite/ld-undefined/undefined.exp: Likewise.
842 * testsuite/ld-unique/unique.exp: Likewise.
843 * testsuite/ld-x86-64/mpx.exp: Likewise.
844 * testsuite/ld-x86-64/no-plt.exp: Likewise.
845 * testsuite/ld-x86-64/tls.exp: Likewise.
846 * testsuite/ld-x86-64/x86-64.exp: Likewise.
847 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
848 check_compiler_available before trying to use the compiler.
849 (run_cc_link_tests): Likewise.
850 (check_compiler_available): New. Use it instead of [which $CC].
851
852 2019-04-23 Alan Modra <amodra@gmail.com>
853
854 * Makefile.am (GENDEPDIR): New var, used..
855 (GENSCRIPTS): ..here.
856 * Makefile.in: Regenerate.
857 * genscripts.sh: Test for $DEPDIR set before every use.
858
859 2019-04-22 Matthew Fortune <matthew.fortune@mips.com>
860
861 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
862 for M5100.
863
864 2019-04-19 Alan Modra <amodra@gmail.com>
865
866 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
867 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
868 s12z to list of targets not supporting --gc-sections.
869
870 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
871
872 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
873 of pr18801.
874 * testsuite/ld-x86-64/x86-64.exp: Likewise.
875 * testsuite/ld-i386/pr18801.d: Removed.
876 * testsuite/ld-x86-64/pr18801.d: Likewise.
877 * testsuite/ld-i386/pr18801a.d: New file.
878 * testsuite/ld-i386/pr18801b.d: Likewise.
879 * testsuite/ld-x86-64/pr18801a.d: Likewise.
880 * testsuite/ld-x86-64/pr18801b.d: Likewise.
881 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
882 * testsuite/ld-x86-64/pie2.d: Likewise.
883 * testsuite/ld-x86-64/pr19719.d: Likewise.
884 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
885 * testsuite/ld-x86-64/pr19969.d: Likewise.
886 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
887 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
888 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
889 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
890 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
891
892 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
893
894 PR ld/24458
895 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
896 * testsuite/ld-x86-64/pr24458.s: New file.
897 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
898 * testsuite/ld-x86-64/pr24458a.d: Likewise.
899 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
900 * testsuite/ld-x86-64/pr24458b.d: Likewise.
901 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
902 * testsuite/ld-x86-64/pr24458c.d: Likewise.
903
904 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
905
906 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
907 symbol when .lower.bss or .either.bss sections exist.
908 Define __crt0_movedata when .lower.data or .either.data sections exist.
909 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
910 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
911 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
912 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
913 * testsuite/gas/msp430/msp430.exp: Run new tests.
914 Enable large code model when running -mdata-region={upper,either}
915 tests.
916
917 2019-04-16 Alan Modra <amodra@gmail.com>
918
919 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
920 * testsuite/ld-scripts/section-match-1.d: Likewise.
921 * testsuite/ld-undefined/require-defined.exp: Likewise.
922
923 2019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
924
925 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
926 targets.
927
928 2019-04-15 Sudakshina Das <sudi.das@arm.com>
929
930 * testsuite/ld-arm/bfcsel.s: New.
931 * testsuite/ld-arm/bfcsel.d: New.
932 * testsuite/ld-arm/arm-elf.exp: Add above test.
933
934 2019-04-15 Sudakshina Das <sudi.das@arm.com>
935
936 * testsuite/ld-arm/bfl.s: New.
937 * testsuite/ld-arm/bfl.d: New.
938 * testsuite/ld-arm/arm-elf.exp: Add above test.
939
940 2019-04-15 Sudakshina Das <sudi.das@arm.com>
941
942 * testsuite/ld-arm/bf.s: New.
943 * testsuite/ld-arm/bf.d: New.
944 * testsuite/ld-arm/arm-elf.exp: Add above test.
945
946 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
947
948 * testsuite/ld-arm/attr-merge-13.attr: New test.
949 * testsuite/ld-arm/attr-merge-13a.s: New test.
950 * testsuite/ld-arm/attr-merge-13b.s: New test.
951
952 2019-04-13 Alan Modra <amodra@gmail.com>
953
954 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
955 DEPDIR parameter.
956 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
957 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
958 $GEN_DEPENDS.
959 (e*.c): Delete all dependencies, instead include dependencies
960 from $DEPDIR/*.Pc.
961 * Makefile.in: Regenerate.
962 * configure.ac (source_sh): Define and use function.
963 * configure: Regenerate.
964 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
965 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
966 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
967 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
968 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
969 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
970 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
971 * emulparams/armelf_linux_eabi.sh,
972 * emulparams/armelf_linux_fdpiceabi.sh,
973 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
974 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
975 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
976 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
977 * emulparams/armelfb_linux_fdpiceabi.sh,
978 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
979 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
980 * emulparams/elf32_sparc_sol2.sh,
981 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
982 * emulparams/elf32_tic6x_elf_be.sh,
983 * emulparams/elf32_tic6x_elf_le.sh,
984 * emulparams/elf32_tic6x_linux_be.sh,
985 * emulparams/elf32_tic6x_linux_le.sh,
986 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
987 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
988 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
989 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
990 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
991 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
992 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
993 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
994 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
995 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
996 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
997 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
998 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
999 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
1000 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
1001 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
1002 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
1003 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
1004 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
1005 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
1006 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
1007 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
1008 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
1009 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
1010 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
1011 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
1012 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
1013 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
1014 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
1015 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
1016 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
1017 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
1018 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
1019 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
1020 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
1021 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
1022 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
1023 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
1024 * emulparams/elf_x86_64_cloudabi.sh,
1025 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
1026 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
1027 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
1028 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
1029 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
1030 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
1031 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
1032 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
1033 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
1034 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
1035 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
1036 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
1037 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
1038 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
1039 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
1040 * emulparams/shl.sh, * emulparams/shlelf.sh,
1041 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
1042 * emulparams/shlelf_vxworks.sh: Use source_sh.
1043 * genscripts.sh: Adjust for changed parameters. Emit dependencies
1044 for e*.c to .deps/*.Pc.
1045 (source_sh): New function, use it throughout to source scripts.
1046 * genscrba.sh (source_em): Use source_sh.
1047
1048 2019-04-13 Alan Modra <amodra@gmail.com>
1049
1050 * configure.ac (TDIRS): Build up tdirs in this variable and
1051 AC_SUBST, also using AM_SUBST_NOTMAKE.
1052 * configure: Regenerate.
1053 * Makefile.am (DISTCLEANFILES): Remove tdirs.
1054 * Makefile.in: Regenerate.
1055
1056 2019-04-12 Nick Clifton <nickc@redhat.com>
1057
1058 PR 24450
1059 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
1060 example of section attributes.
1061
1062 2019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
1063
1064 * NEWS: Mention new option --no-print-map-discarded.
1065 * ld.h (ld_config_type) <print_map_discarded>: New field.
1066 * ldlang.c (lang_map): Conditionally output discarded sections
1067 in map files based on configuration option.
1068 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
1069 OPTION_NO_PRINT_MAP_DISCARDED>: New.
1070 * ldmain.c (main): Enabled print_map_discarded by default.
1071 * lexsup.c (ld_options): Add new command-line options.
1072 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
1073 OPTION_PRINT_MAP_DISCARDED>: New cases.
1074 * ld.texi: Document new options.
1075 * testsuite/ld-gc/gc.exp: Add new test.
1076 * testsuite/ld-gc/skip-map-discarded.s: New file.
1077 * testsuite/ld-gc/skip-map-discarded.d: New file.
1078 * testsuite/ld-gc/skip-map-discarded.map: New file.
1079
1080 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1081
1082 * ld.texi: Document -z cet-report=[none|warning|error].
1083 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
1084 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
1085 tests.
1086 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1087 * testsuite/ld-i386/property-x86-cet1.d: New file.
1088 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
1089 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
1090 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
1091 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
1092 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
1093 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
1094 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
1095 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
1096 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
1097 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
1098 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
1099 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
1100 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
1101 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
1102 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
1103 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
1104 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
1105 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
1106 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
1107 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
1108 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
1109 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
1110 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
1111 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
1112 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
1113 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
1114 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
1115 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
1116 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
1117 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
1118
1119 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1120
1121 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
1122 to "-static-pie" if target compiler supports it.
1123 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
1124 $STATIC_PIE_LDFLAGS isn't empty.
1125 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1126
1127 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1128
1129 PR ld/24302
1130 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1131 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
1132
1133 2019-04-10 H.J. Lu <hongjiu.lu@intel.com>
1134
1135 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
1136 CREATE_PIE.
1137 (__rel_iplt_start): Don't define for CREATE_PIC.
1138 (__rel_iplt_end): Likewise.
1139 (__rela_iplt_start): Likewise.
1140 (__rela_iplt_end): Likewise.
1141
1142 2019-04-10 Alan Modra <amodra@gmail.com>
1143
1144 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
1145 powerpc-nto.
1146
1147 2019-04-10 Alan Modra <amodra@gmail.com>
1148
1149 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
1150 setting use_branch_stub false for linux.
1151 (csky_elf_create_output_section_statements): Do emit this
1152 function and all others in the file for linux, plus the branch
1153 option control. Disable branch stubs when non-ELF.
1154
1155 2019-04-10 Alan Modra <amodra@gmail.com>
1156
1157 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
1158 (ecskyelf_linux.c): Depend on cskyelf.sh.
1159 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
1160 * Makefile.in: Regenerate.
1161 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
1162 (PAGE_SIZE): Don't define.
1163 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
1164 the differing variable defs/undefs.
1165 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
1166 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
1167 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
1168 (PAGE_SIZE): Don't define.
1169 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
1170 leaving just the differing OUTPUT_FORMAT.
1171
1172 2019-04-10 Alan Modra <amodra@gmail.com>
1173
1174 * po/BLD-POTFILES.in: Regenerate.
1175
1176 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1177
1178 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
1179 lynxos and nto targets.
1180
1181 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1182
1183 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
1184 (eelf_i386_chaos.c): Removed.
1185 * Makefile.in: Regenerated.
1186 * configure.tgt: Remove i[3-7]86-*-kaos*.
1187 * emulparams/elf_i386_chaos.sh: Removed.
1188
1189 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1190
1191 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
1192 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
1193
1194 2019-04-08 Alan Modra <amodra@gmail.com>
1195
1196 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
1197 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
1198 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
1199
1200 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
1201
1202 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
1203 (eelf_i386_sol2.c): Also depend on
1204 $(srcdir)/emultempl/solaris2-x86.em.
1205 (eelf_x86_64_sol2.c): Likewise.
1206 * Makefile.in: Regenerated.
1207 * emulparams/call_nop.sh: Set x86-specific linker options via
1208 params.
1209 * emulparams/cet.sh: Likewise.
1210 * emulparams/reloc_overflow.sh: Likewise.
1211 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
1212 "elf-x86".
1213 * emulparams/elf_i386.sh: Likewise.
1214 * emulparams/elf_i386_be.sh: Likewise.
1215 * emulparams/elf_i386_chaos.sh: Likewise.
1216 * emulparams/elf_i386_ldso.sh: Likewise.
1217 * emulparams/elf_i386_vxworks.sh: Likewise.
1218 * emulparams/elf_iamcu.sh: Likewise.
1219 * emulparams/elf_k1om.sh: Likewise.
1220 * emulparams/elf_l1om.sh: Likewise.
1221 * emulparams/elf_x86_64.sh: Likewise.
1222 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
1223 "solaris2-x86".
1224 * emulparams/elf_x86_64_sol2.sh: Likewise.
1225 * emultempl/elf-x86.em: New file.
1226 * emultempl/solaris2-x86.em: Likewise.
1227 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
1228 set link_info.call_nop_byte.
1229
1230 2019-04-05 Alan Modra <amodra@gmail.com>
1231
1232 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
1233 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1234 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
1235
1236 2019-04-03 Alan Modra <amodra@gmail.com>
1237
1238 PR 24411
1239 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
1240 (<EXPRESSION>"/DISCARD/"): New.
1241
1242 2019-04-03 Alan Modra <amodra@gmail.com>
1243
1244 * ldlex.l: Formatting.
1245 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
1246 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
1247 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
1248 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
1249 (<INPUTLIST>"$SYSROOT"..): Delete rule.
1250
1251 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
1252
1253 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
1254 test definition.
1255 * testsuite/ld-xtensa/xtensa.exp
1256 (relax-undef-weak-pie-export-dynamic): Add new test.
1257
1258 2019-03-26 Martin Liska <mliska@suse.cz>
1259
1260 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
1261 lto_visibility_str and use then to inform about plugin-symbols.
1262 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
1263
1264 2019-03-25 Tamar Christina <tamar.christina@arm.com>
1265
1266 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
1267 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
1268
1269 2019-03-21 Sudakshina Das <sudi.das@arm.com>
1270
1271 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1272 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
1273 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
1274 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1275 * testsuite/ld-aarch64/bti-warn.d: New test.
1276
1277 2019-03-21 Alan Modra <amodra@gmail.com>
1278
1279 * testsuite/ld-elf/fini2.s: Reduce alignment.
1280 * testsuite/ld-elf/fini3.s: Likewise.
1281 * testsuite/ld-elf/finin.s: Likewise.
1282 * testsuite/ld-elf/init2.s: Likewise.
1283 * testsuite/ld-elf/init3.s: Likewise.
1284 * testsuite/ld-elf/initn.s: Likewise.
1285 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
1286 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
1287
1288 2019-03-21 Alan Modra <amodra@gmail.com>
1289
1290 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
1291 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
1292 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
1293 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
1294 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
1295 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
1296 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
1297 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
1298 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
1299 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
1300 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
1301 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
1302 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
1303 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
1304 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
1305 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
1306 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
1307 SORT_NONE to .init and .fini wildcards.
1308 * scripttempl/elf32xc16x.sc,
1309 * scripttempl/elf32xc16xl.sc,
1310 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
1311 * scripttempl/elf_chaos.sc: Add .init output section.
1312 * scripttempl/elfd30v.sc: Remove duplicate .init.
1313 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
1314 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
1315 duplicate .init, and add .fini wildcard.
1316 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
1317 * ldlang.c (update_wild_statements): Special case .init and
1318 .fini in the wildcard, not the output section.
1319
1320 2019-03-21 Alan Modra <amodra@gmail.com>
1321
1322 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
1323
1324 2019-03-21 Alan Modra <amodra@gmail.com>
1325
1326 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
1327 create_object_symbols_section.
1328 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
1329
1330 2019-03-18 Alan Modra <amodra@gmail.com>
1331
1332 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
1333 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
1334 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
1335 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
1336
1337 2019-03-15 Nick Clifton <nickc@redhat.com>
1338
1339 PR 24262
1340 * ld.texi (-plugin): Correct the path used to locate linker
1341 plugins.
1342
1343 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1344
1345 * NEWS: Document --pac-plt.
1346 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
1347 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
1348 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
1349 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
1350 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
1351 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
1352 * testsuite/ld-aarch64/pac-plt-1.d: New test.
1353 * testsuite/ld-aarch64/pac-plt-2.d: New test.
1354 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
1355
1356 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1357 Szabolcs Nagy <szabolcs.nagy@arm.com>
1358
1359 * NEWS: Document --force-bti.
1360 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
1361 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
1362 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
1363 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
1364 * testsuite/ld-aarch64/bti-plt-1.d: New test.
1365 * testsuite/ld-aarch64/bti-plt-1.s: New test.
1366 * testsuite/ld-aarch64/bti-plt-2.d: New test.
1367 * testsuite/ld-aarch64/bti-plt-3.d: New test.
1368 * testsuite/ld-aarch64/bti-plt-4.d: New test.
1369 * testsuite/ld-aarch64/bti-plt-5.d: New test.
1370 * testsuite/ld-aarch64/bti-plt-6.d: New test.
1371 * testsuite/ld-aarch64/bti-plt-7.d: New test.
1372 * testsuite/ld-aarch64/bti-plt-so.s: New test.
1373 * testsuite/ld-aarch64/bti-plt.ld: New test.
1374
1375 2019-03-13 Sudakshina Das <sudi.das@arm.com>
1376
1377 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
1378 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
1379 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
1380 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
1381 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
1382 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
1383 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
1384 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
1385
1386 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
1387
1388 PR ld/24322
1389 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
1390 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1391 * testsuite/ld-i386/pr24322a.d: New file.
1392 * testsuite/ld-i386/pr24322b.d: Likewise.
1393 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
1394 * testsuite/ld-x86-64/pr24322a.d: Likewise.
1395 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
1396 * testsuite/ld-x86-64/pr24322b.d: Likewise.
1397 * testsuite/ld-x86-64/pr24322a.s: Likewise.
1398 * testsuite/ld-x86-64/pr24322b.s: Likewise.
1399 * testsuite/ld-x86-64/pr24322c.s: Likewise.
1400
1401 2019-03-06 Nick Bowler <nbowler@draconx.ca>
1402
1403 PR 24289
1404 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
1405 attributes during the first phase.
1406
1407 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
1408
1409 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
1410 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1411
1412 PR 20113
1413 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1414 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1415 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1416 * testsuite/ld-s390/tlsbin.dd: Likewise.
1417 * testsuite/ld-s390/tlsbin.rd: Likewise.
1418 * testsuite/ld-s390/tlsbin.sd: Likewise.
1419 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1420 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1421 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1422 * testsuite/ld-s390/tlspic.dd: Likewise.
1423 * testsuite/ld-s390/tlspic.rd: Likewise.
1424 * testsuite/ld-s390/tlspic.sd: Likewise.
1425 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1426 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1427 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1428 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1429
1430 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
1431
1432 PR ld/24276
1433 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
1434 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1435 * testsuite/ld-i386/pr24276.dso: New file.
1436 * testsuite/ld-i386/pr24276.warn: Likewise.
1437 * testsuite/ld-x86-64/pr24276.dso: Likewise.
1438 * testsuite/ld-x86-64/pr24276.warn: Likewise.
1439
1440 2019-02-20 Eric Tsai <erictsai@cadence.com>
1441
1442 * testsuite/ld-xtensa/call_overflow.d: New test definition.
1443 * testsuite/ld-xtensa/call_overflow1.s: New test source.
1444 * testsuite/ld-xtensa/call_overflow2.s: New test source.
1445 * testsuite/ld-xtensa/call_overflow3.s: New test source.
1446 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
1447
1448 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1449
1450 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
1451
1452 2019-02-12 Nick Clifton <nickc@redhat.com>
1453
1454 * po/fr.po: Updated French translation.
1455
1456 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
1457
1458 * emultempl/arclinux.em: Delete special INIT/FINI handling.
1459
1460 2019-02-07 Nick Clifton <nickc@redhat.com>
1461
1462 PR 24175
1463 * ld.texi (Options): Add missing word to the description of the
1464 --start-group option.
1465
1466 2019-02-06 Alan Modra <amodra@gmail.com>
1467
1468 PR ld/24008
1469 * testsuite/ld-scripts/pr24008.d: Pass with extra target
1470 defined symbols.
1471
1472 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1473
1474 PR ld/24151
1475 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
1476 * testsuite/ld-x86-64/pr24151a.d: Likewise.
1477 * testsuite/ld-x86-64/pr24151a.s: Likewise.
1478 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
1479
1480 2019-01-31 Alan Modra <amodra@gmail.com>
1481
1482 * NEWS: Mention -t change.
1483 * ld.texi (--trace/-t): Expand documentation a little.
1484
1485 2019-01-29 H.J. Lu <hongjiu.lu@intel.com>
1486
1487 PR ld/24008
1488 * testsuite/ld-scripts/defined.exp: Run pr24008.
1489 * testsuite/ld-scripts/pr24008.d: New file.
1490 * testsuite/ld-scripts/pr24008.map: Likewise.
1491 * testsuite/ld-scripts/pr24008.s: Likewise.
1492 * testsuite/ld-scripts/pr24008.t: Likewise.
1493
1494 2019-01-29 Eric Botcazou <ebotcazou@adacore.com>
1495
1496 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
1497
1498 2019-01-28 Alan Modra <amodra@gmail.com>
1499
1500 PR 24008
1501 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
1502 * ldexp.c (fold_name): Move expld.assign_name check later to
1503 avoid an extra lookup.
1504 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
1505 values, and don't clear expld.assign_name.
1506 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
1507 (print_assignment): Resolve entire assignment expression.
1508 Don't access symbol u.def unless symbol is defined.
1509
1510 2019-01-25 Nick Clifton <nickc@redhat.com>
1511
1512 * po/bg.po: Updated Bulgarian translation.
1513
1514 2019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
1515
1516 * ld.texi (--wrap): Add warning that LTO may make this feature
1517 ineffective.
1518
1519 2019-01-21 Nick Clifton <nickc@redhat.com>
1520
1521 * po/uk.po: Updated Ukranian translation.
1522 * po/pr_BR.po: Updated Brazilian Portuguese translation.
1523
1524 2019-01-21 Nick Clifton <nickc@redhat.com>
1525
1526 PR 24108
1527 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
1528 expected error message.
1529
1530 2019-01-19 Nick Clifton <nickc@redhat.com>
1531
1532 * configure: Regenerate.
1533 * po/ld.pot: Regenerate.
1534
1535 2018-06-24 Nick Clifton <nickc@redhat.com>
1536
1537 2.32 branch created.
1538
1539 2019-01-16 Kito Cheng <kito@andestech.com>
1540
1541 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
1542 section.
1543 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
1544 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
1545 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
1546 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
1547 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1548 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
1549 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
1550 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1551 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
1552 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
1553 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1554 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
1555 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
1556 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
1557 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
1558 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
1559 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
1560 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
1561 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
1562 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
1563 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
1564 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
1565 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
1566 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
1567 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
1568 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
1569 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
1570 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
1571 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
1572 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
1573 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
1574 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
1575 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
1576 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
1577 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
1578 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
1579 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
1580
1581 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1582
1583 PR 20113
1584 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
1585 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
1586 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
1587 * testsuite/ld-s390/tlsbin.dd: Likewise.
1588 * testsuite/ld-s390/tlsbin.rd: Likewise.
1589 * testsuite/ld-s390/tlsbin.sd: Likewise.
1590 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
1591 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1592 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
1593 * testsuite/ld-s390/tlspic.dd: Likewise.
1594 * testsuite/ld-s390/tlspic.rd: Likewise.
1595 * testsuite/ld-s390/tlspic.sd: Likewise.
1596 * testsuite/ld-s390/tlspic_64.dd: Likewise.
1597 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1598 * testsuite/ld-s390/tlspic_64.sd: Likewise.
1599 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
1600
1601 2019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1602
1603 * ld.texi (--wrap): Add example to emphasise that only undefined
1604 references are replaced by the linker.
1605
1606 2019-01-09 Nick Clifton <nickc@redhat.com>
1607
1608 * po/es.po: Updated Spanish translation.
1609
1610 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1611
1612 * configure: Regenerate.
1613
1614 2019-01-08 Alan Modra <amodra@gmail.com>
1615
1616 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
1617 generated source file names.
1618 * testsuite/ld-m68k/m68k-got.exp: Likewise.
1619
1620 2019-01-01 Alan Modra <amodra@gmail.com>
1621
1622 Update year range in copyright notice of all files.
1623
1624 For older changes see ChangeLog-2018
1625 \f
1626 Copyright (C) 2019 Free Software Foundation, Inc.
1627
1628 Copying and distribution of this file, with or without modification,
1629 are permitted in any medium without royalty provided the copyright
1630 notice and this notice are preserved.
1631
1632 Local Variables:
1633 mode: change-log
1634 left-margin: 8
1635 fill-column: 74
1636 version-control: never
1637 End:
This page took 0.067792 seconds and 4 git commands to generate.