0c44592023200c9e5f82f9b8584f08ffedbc6ac7
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2017-08-24 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/22001
4 * testsuite/ld-i386/i386.exp: Run -z nocopyreloc tests.
5 * testsuite/ld-x86-64/x86-64.exp: Likewise.
6 * ld/testsuite/ld-i386/pr22001-1a.c: New file.
7 * ld/testsuite/ld-i386/pr22001-1b.c: Likewise.
8 * ld/testsuite/ld-i386/pr22001-1c.S: Likewise.
9 * ld/testsuite/ld-x86-64/pr22001-1a.c: Likewise.
10 * ld/testsuite/ld-x86-64/pr22001-1a.err: Likewise.
11 * ld/testsuite/ld-x86-64/pr22001-1b.c: Likewise.
12 * ld/testsuite/ld-x86-64/pr22001-1b.err: Likewise.
13 * ld/testsuite/ld-x86-64/pr22001-1c.c: Likewise.
14
15 2017-08-17 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 PR 21961
18 * ldlang.c (lang_discard_section_p): New function.
19 (lang_add_section): Checks moved out into new function, which is
20 now called.
21 (lang_place_orphans): Call lang_discard_section_p instead of
22 duplicating some of the checks from lang_add_section.
23 * testsuite/ld-elf/orphan-11.d: New file.
24 * testsuite/ld-elf/orphan-11.ld: New file.
25 * testsuite/ld-elf/orphan-11.s: New file.
26 * testsuite/ld-elf/orphan-12.d: New file.
27 * testsuite/ld-elf/orphan-12.s: New file.
28
29 2017-08-24 Alan Modra <amodra@gmail.com>
30
31 * testsuite/ld-undefined/fundef.s: New test.
32 * testsuite/ld-undefined/undefined.exp: Test that undefined
33 symbols in shared libraries are made dynamic.
34
35 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36
37 * testsuite/ld-elf/pr21903c.d: Add '\' before --.
38 * testsuite/ld-elf/pr21903d.d: Likewise.
39 * testsuite/ld-elf/pr21903e.d: Likewise.
40
41 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
42
43 * testsuite/ld-x86-64/pie2.d: Updated.
44 * testsuite/ld-x86-64/pr19719.d: Likewise.
45 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
46 * testsuite/ld-x86-64/pr19969.d: Likewise.
47
48 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
49
50 * testsuite/ld-i386/i386.exp: Run protected7.
51 * testsuite/ld-i386/protected7.d: New file.
52 * testsuite/ld-i386/protected7.s: Likewise.
53 * testsuite/ld-x86-64/protected8.d: Likewise.
54 * testsuite/ld-x86-64/protected8.s: Likewise.
55 * testsuite/ld-x86-64/x86-64.exp: Run protected8.
56
57 2017-08-23 Alan Modra <amodra@gmail.com>
58
59 * testsuite/ld-gc/pr19161.d: Don't xfail hppa.
60
61 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
62 Alan Modra <amodra@gmail.com>
63
64 * testsuite/ld-elf/pr21964-1a.c (foo): Renamed to ...
65 (foo1): This.
66 * testsuite/ld-elf/pr21964-1b.c: Rewrite.
67 * testsuite/ld-elf/pr21964-1c.c: New file.
68 * testsuite/ld-elf/pr21964-2c.c: Likewise.
69 * testsuite/ld-elf/pr21964-2a.c (foo): Renamed to ...
70 (foo1): This.
71 * testsuite/ld-elf/pr21964-2b.c: Rewrite.
72 * testsuite/ld-elf/shared.exp: Update PR ld/21964 tests.
73
74 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
75 Alan Modra <amodra@gmail.com>
76
77 PR ld/21964
78 * testsuite/ld-elf/pr21562a.d: Update for changed start/stop symbols.
79 * testsuite/ld-elf/pr21562b.d: Likewise.
80 * testsuite/ld-elf/pr21562c.d: Likewise.
81 * testsuite/ld-elf/pr21562d.d: Likewise.
82 * testsuite/ld-elf/pr21562e.d: Likewise.
83 * testsuite/ld-elf/pr21562f.d: Likewise.
84 * testsuite/ld-elf/pr21562g.d: Likewise.
85 * testsuite/ld-elf/pr21562h.d: Likewise.
86 * testsuite/ld-elf/pr21562i.d: Likewise.
87 * testsuite/ld-elf/pr21562j.d: Likewise.
88 * testsuite/ld-elf/pr21562k.d: Likewise.
89 * testsuite/ld-elf/pr21562l.d: Likewise.
90 * testsuite/ld-elf/pr21562m.d: Likewise.
91 * testsuite/ld-elf/pr21562n.d: Likewise.
92 * testsuite/ld-elf/sizeofa.d: Likewise.
93 * testsuite/ld-elf/sizeofb.d: Likewise.
94 * testsuite/ld-elf/startofa.d: Likewise.
95 * testsuite/ld-elf/startofb.d: Likewise.
96 * testsuite/ld-gc/pr20022.d: Likewise.
97 * testsuite/ld-gc/start.d: Likewise.
98 * testsuite/ld-elf/pr21964-1a.c: New file.
99 * testsuite/ld-elf/pr21964-1b.c: New file.
100 * testsuite/ld-elf/pr21964-2a.c: New file.
101 * testsuite/ld-elf/pr21964-2b.c: New file.
102 * testsuite/ld-elf/shared.exp: Run PR ld/21964 tests.
103
104 2017-08-21 Hans-Peter Nilsson <hp@bitrange.com>
105
106 PR ld/20125
107 * testsuite/ld-mmix/pr20125.d, testsuite/ld-mmix/pr20125.s: New
108 test.
109
110 2017-08-20 A. Wilcox <awilfox@adelielinux.org>
111
112 PR ld/21976
113 * testsuite/ld-x86-64/plt-main-bnd.dd: Accept '_' in symbol
114 name.
115
116 2017-08-17 Nick Clifton <nickc@redhat.com>
117
118 * po/pt_BR.po: New Brazilian Portuguese translation.
119 * configure.ac (ALL_LINGUAS): Add pt_BR.
120 * configure: Regenerate.
121
122 2017-08-14 Alan Modra <amodra@gmail.com>
123
124 PR 21441
125 * testsuite/ld-x86-64/pr21038a.d: Adjust.
126 * testsuite/ld-x86-64/pr21038a-now.d: Adjust.
127
128 2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
129
130 * testsuite/ld-i386/i386.exp: Run pr21884-nacl.
131 * testsuite/ld-x86-64/x86-64.exp: Likewise.
132 * testsuite/ld-i386/pr21884.d: Don't run on nacl targets.
133 * testsuite/ld-x86-64/pr21884.d: Likewise.
134 * testsuite/ld-i386/pr21884.t: Revert the last change.
135 * testsuite/ld-x86-64/pr21884.t: Likewise.
136 * testsuite/ld-i386/pr21884-nacl.d: New file.
137 * testsuite/ld-i386/pr21884-nacl.t: Likewise.
138 * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
139 * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
140
141 2017-08-13 Alan Modra <amodra@gmail.com>
142
143 * testsuite/ld-i386/pr21884.t: Remove unneeded format, arch and entry.
144 * testsuite/ld-x86-64/pr21884.t: Likewise.
145
146 2017-08-11 Nick Clifton <nickc@redhat.com>
147
148 * emultempl/elf32.em (handle_option): Accept the -z globalaudit
149 command line option.
150 * lexsup.c (elf_static_list_options): Add -z globalaudit.
151 * ld.texinfo: Document the support for the new command line
152 option.
153 * NEWS: Mention the new feature.
154 * testsuite/ld-elf/audit.exp: Add a test of the -z globalaudit
155 command line option.
156 * testsuite/ld-elf/globalaudit.rd: New file: Expected output from
157 readelf.
158
159 2017-08-11 H.J. Lu <hongjiu.lu@intel.com>
160
161 PR ld/21884
162 * testsuite/ld-i386/i386.exp: Run pr21884.
163 * testsuite/ld-x86-64/x86-64.exp: Likewise.
164 * testsuite/ld-i386/pr21884.d: New file.
165 * testsuite/ld-i386/pr21884.t: Likewise.
166 * testsuite/ld-x86-64/pr21884.d: Likewise.
167 * testsuite/ld-x86-64/pr21884.t: Likewise.
168
169 2017-08-10 Nick Clifton <nickc@redhat.com>
170
171 * scripttempl/pep.sc: Enclose __CTOR_LIST__, ___CTOR_LIST__,
172 __DTOR_LIST__ and ___DTOR_LIST__ in PROVIDE statements so that
173 they can be overrridden by crt input files.
174 * scripttempl/pe.sc: Likewise.
175
176 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
177
178 * testsuite/config/default.exp (LD_CLASS): Check .libs/ld-new
179 for linker first.
180
181 2017-08-09 H.J. Lu <hongjiu.lu@intel.com>
182
183 * testsuite/config/default.exp (LD_CLASS): New. Set to "64bit"
184 for 64-bit ELF linker.
185 * testsuite/ld-x86-64/pr17618.d (#notarget): Removed.
186 * testsuite/ld-x86-64/x86-64.exp: Run pr17618 only for 64-bit
187 linker.
188
189 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
190
191 PR ld/21924
192 * testsuite/ld-i386/i386.exp: Require GCC 5 or above for
193 "weakundef1 with PIE" test.
194 * testsuite/ld-x86-64/tls.exp: Require GCC 5 or above for
195 "tlsdesc1" and "tlsdesc1 with PIE" tests.
196
197 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
198
199 * configure.ac (TESTBFDLIB): Add a ',' after -Wl,--rpath.
200 * configure: Regenerated.
201
202 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
203
204 PR ld/21923
205 * configure.ac (TESTBFDLIB): Replace --rpath with -Wl,--rpath
206 for --disable-static.
207 * configure: Regenerated.
208
209 2017-08-08 Romain Geissler <romain.geissler@gmail.com>
210 Alan Modra <amodra@gmail.com>
211
212 * configure.ac: Add --enable-default-hash-style option.
213 * ldmain.c (main): Set link_info.emit_hash to DEFAULT_EMIT_SYSV_HASH.
214 Set link_info.emit_gnu_hash to DEFAULT_EMIT_GNU_HASH.
215 * configure: Regenerate.
216 * config.in: Regenerate.
217
218 2017-08-08 Alan Modra <amodra@gmail.com>
219
220 * testsuite/ld-aarch64/ifunc-1-local.d: Run ld with --hash-style=sysv.
221 * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
222 * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
223 * testsuite/ld-frv/fdpic-pie-1.d: Likewise.
224 * testsuite/ld-frv/fdpic-pie-2.d: Likewise.
225 * testsuite/ld-frv/fdpic-pie-7.d: Likewise.
226 * testsuite/ld-frv/fdpic-pie-8.d: Likewise.
227 * testsuite/ld-arm/arm-elf.exp: Add --hash-style=sysv to "Using
228 Thumb lib by another lib" test's ld options.
229 * testsuite/ld-elf/note-3.l: Match .gnu.hash.
230 * testsuite/ld-elf/note-3.t: Add .gnu.hash output section.
231
232 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
233
234 * testsuite/ld-elf/pr21903.s (start): Removed.
235 (_start): Likewise.
236 (__start): Likewise.
237 (main): Likewise.
238 (bar): New.
239
240 2017-08-07 Alan Modra <amodra@gmail.com>
241
242 * testsuite/ld-alpha/alpha.exp: Add --hash-style=sysv to various
243 test's ld options.
244 * testsuite/ld-arm/arm-elf.exp: Likewise.
245 * testsuite/ld-elf/elf.exp: Likewise.
246 * testsuite/ld-elf/readelf.exp: Likewise.
247 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
248 * testsuite/ld-i386/i386.exp: Likewise.
249 * testsuite/ld-ia64/ia64.exp: Likewise.
250 * testsuite/ld-m68k/m68k.exp: Likewise.
251 * testsuite/ld-metag/metag.exp: Likewise.
252 * testsuite/ld-powerpc/powerpc.exp: Likewise.
253 * testsuite/ld-s390/s390.exp: Likewise.
254 * testsuite/ld-sh/sh-vxworks.exp: Likewise.
255 * testsuite/ld-shared/shared.exp: Likewise.
256 * testsuite/ld-sparc/sparc.exp: Likewise.
257 * testsuite/ld-tic6x/tic6x.exp: Likewise.
258 * testsuite/ld-vax-elf/vax-elf.exp: Likewise.
259 * testsuite/ld-x86-64/mpx.exp: Likewise.
260 * testsuite/ld-x86-64/x86-64.exp: Likewise.
261 * testsuite/ld-xtensa/xtensa.exp: Likewise.
262
263 * testsuite/ld-elf/comm-data2.ld: Add .gnu.hash output section.
264 * testsuite/ld-elf/pr20828-v.ld: Likewise.
265 * testsuite/ld-elf/pr20828.ld: Likewise.
266 * testsuite/ld-elf/pr21233.ld: Likewise.
267 * testsuite/ld-elf/pr21384.ld: Likewise.
268 * testsuite/ld-elf/provide-hidden-1.ld: Likewise.
269 * testsuite/ld-elf/provide-hidden-2.ld: Likewise.
270 * testsuite/ld-elf/provide-hidden-s.ld: Likewise.
271 * testsuite/ld-scripts/cross1.t: Likewise.
272
273 * testsuite/ld-elf/stab.d: Adjust allowed section indices.
274
275 * testsuite/ld-i386/pie1.d: Don't match addresses.
276 * testsuite/ld-i386/plt-pic2.dd: Likewise.
277 * testsuite/ld-i386/pr19636-1d.d: Likewise.
278 * testsuite/ld-i386/pr19636-2c.d: Likewise.
279 * testsuite/ld-powerpc/elfv2so.d: Likewise.
280 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
281 * testsuite/ld-powerpc/tlsopt5.wf: Likewise.
282 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
283
284 * testsuite/ld-i386/pr19636-2b.d: Don't match _start.
285
286 * testsuite/ld-powerpc/ambiguousv1.d: Relax symbol count, index
287 and address match.
288 * testsuite/ld-powerpc/ambiguousv1b.d: Likewise.
289 * testsuite/ld-powerpc/ambiguousv2.d: Likewise.
290 * testsuite/ld-powerpc/ambiguousv2b.d: Likewise.
291
292 * testsuite/ld-aarch64/gc-plt-relocs.d: Run ld with --hash-style=sysv.
293 * testsuite/ld-aarch64/ifunc-1.d: Likewise.
294 * testsuite/ld-aarch64/ifunc-2.d: Likewise.
295 * testsuite/ld-aarch64/ifunc-21.d: Likewise.
296 * testsuite/ld-aarch64/relasz.d: Likewise.
297 * testsuite/ld-aarch64/tls-small-ld.d: Likewise.
298 * testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
299 * testsuite/ld-arc/tls_gd-01.d: Likewise.
300 * testsuite/ld-cris/libdso-10.d: Likewise.
301 * testsuite/ld-cris/libdso-2.d: Likewise.
302 * testsuite/ld-cris/pic-gc-72.d: Likewise.
303 * testsuite/ld-cris/pic-gc-73.d: Likewise.
304 * testsuite/ld-cris/tls-gd-1.d: Likewise.
305 * testsuite/ld-cris/tls-gd-1h.d: Likewise.
306 * testsuite/ld-cris/tls-gd-2.d: Likewise.
307 * testsuite/ld-cris/tls-gd-2h.d: Likewise.
308 * testsuite/ld-cris/tls-ie-10.d: Likewise.
309 * testsuite/ld-cris/tls-ie-11.d: Likewise.
310 * testsuite/ld-cris/tls-ie-8.d: Likewise.
311 * testsuite/ld-cris/tls-ie-9.d: Likewise.
312 * testsuite/ld-cris/tls-ld-4.d: Likewise.
313 * testsuite/ld-cris/tls-ld-5.d: Likewise.
314 * testsuite/ld-cris/tls-ld-6.d: Likewise.
315 * testsuite/ld-cris/tls-ld-7.d: Likewise.
316 * testsuite/ld-cris/tls-ldgd-14.d: Likewise.
317 * testsuite/ld-cris/tls-ldgd-15.d: Likewise.
318 * testsuite/ld-cris/tls-ldgdx-14.d: Likewise.
319 * testsuite/ld-cris/tls-ldgdx-15.d: Likewise.
320 * testsuite/ld-cris/tls-local-54.d: Likewise.
321 * testsuite/ld-cris/tls-local-60.d: Likewise.
322 * testsuite/ld-cris/tls-local-61.d: Likewise.
323 * testsuite/ld-cris/weakhiddso.d: Likewise.
324 * testsuite/ld-elf/linkinfo1a.d: Likewise.
325 * testsuite/ld-elf/linkinfo1b.d: Likewise.
326 * testsuite/ld-elf/pr19617a.d: Likewise.
327 * testsuite/ld-elfvsb/hidden2.d: Likewise.
328 * testsuite/ld-frv/fdpic-pie-6.d: Likewise.
329 * testsuite/ld-frv/fdpic-shared-2.d: Likewise.
330 * testsuite/ld-frv/fdpic-shared-5.d: Likewise.
331 * testsuite/ld-frv/fdpic-shared-6.d: Likewise.
332 * testsuite/ld-frv/fdpic-shared-8.d: Likewise.
333 * testsuite/ld-frv/fdpic-shared-local-2.d: Likewise.
334 * testsuite/ld-frv/fdpic-shared-local-8.d: Likewise.
335 * testsuite/ld-frv/tls-dynamic-2.d: Likewise.
336 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
337 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
338 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
339 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
340 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
341 * testsuite/ld-i386/pr20830.d: Likewise.
342 * testsuite/ld-ia64/merge1.d: Likewise.
343 * testsuite/ld-ia64/merge2.d: Likewise.
344 * testsuite/ld-ia64/merge3.d: Likewise.
345 * testsuite/ld-ia64/merge4.d: Likewise.
346 * testsuite/ld-ia64/merge5.d: Likewise.
347 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Likewise.
348 * testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
349 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
350 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
351 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
352 * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
353 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
354 * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
355 * testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
356 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
357 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
358 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
359 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
360 * testsuite/ld-m68k/got-1.d: Likewise.
361 * testsuite/ld-m68k/got-multigot-12-13-14-34-35-ok.d: Likewise.
362 * testsuite/ld-m68k/got-multigot-14-ok.d: Likewise.
363 * testsuite/ld-m68k/got-multigot-15-er.d: Likewise.
364 * testsuite/ld-m68k/got-negative-12-13-14-34-ok.d: Likewise.
365 * testsuite/ld-m68k/got-negative-12-13-14-35-er.d: Likewise.
366 * testsuite/ld-m68k/got-negative-14-ok.d: Likewise.
367 * testsuite/ld-m68k/got-negative-15-er.d: Likewise.
368 * testsuite/ld-m68k/got-single-12-ok.d: Likewise.
369 * testsuite/ld-m68k/got-single-13-er.d: Likewise.
370 * testsuite/ld-m68k/got-xgot-12-13-14-15-34-35-ok.d: Likewise.
371 * testsuite/ld-m68k/got-xgot-15-ok.d: Likewise.
372 * testsuite/ld-m68k/tls-gd-1.d: Likewise.
373 * testsuite/ld-m68k/tls-gd-2.d: Likewise.
374 * testsuite/ld-m68k/tls-gd-ie-1.d: Likewise.
375 * testsuite/ld-m68k/tls-ie-1.d: Likewise.
376 * testsuite/ld-m68k/tls-ld-1.d: Likewise.
377 * testsuite/ld-m68k/tls-ld-2.d: Likewise.
378 * testsuite/ld-sh/shared-2.d: Likewise.
379 * testsuite/ld-sh/tlsbin-2.d: Likewise.
380 * testsuite/ld-sh/tlspic-2.d: Likewise.
381 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
382 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
383 * testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
384 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
385 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
386 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
387 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
388 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
389 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
390 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
391 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
392 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
393 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
394 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
395 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
396 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
397 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
398 * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
399 * testsuite/ld-x86-64/ilp32-4.d: Likewise.
400 * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
401 * testsuite/ld-x86-64/load1c.d: Likewise.
402 * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
403 * testsuite/ld-x86-64/load1d.d: Likewise.
404 * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
405 * testsuite/ld-x86-64/pie3.d: Likewise.
406 * testsuite/ld-x86-64/pr14207.d: Likewise.
407 * testsuite/ld-x86-64/pr19162.d: Likewise.
408 * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
409 * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
410 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
411 * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
412 * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
413 * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
414 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
415 * testsuite/ld-x86-64/pr20830a.d: Likewise.
416 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
417 * testsuite/ld-x86-64/pr20830b.d: Likewise.
418 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
419 * testsuite/ld-x86-64/pr21038a.d: Likewise.
420 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
421 * testsuite/ld-x86-64/pr21038b.d: Likewise.
422 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
423 * testsuite/ld-x86-64/pr21038c.d: Likewise.
424
425 2017-08-06 H.J. Lu <hongjiu.lu@intel.com>
426
427 PR ld/21903:
428 * ld.h (command_line): Remove inhibit_common_definition.
429 * ldgram.y: Replace command_line.inhibit_common_definition with
430 link_info.inhibit_common_definition.
431 * ldlang.c (lang_common): Likewise.
432 * lexsup.c (parse_args): Likewise.
433 * ldmain.c (main): Only allow --no-define-common with -shared.
434 * testsuite/ld-elf/pr21903.s: New file.
435 * testsuite/ld-elf/pr21903a.d: Likewise.
436 * testsuite/ld-elf/pr21903b.d: Likewise.
437 * testsuite/ld-elf/pr21903c.d: Likewise.
438 * testsuite/ld-elf/pr21903d.d: Likewise.
439 * testsuite/ld-elf/pr21903e.d: Likewise.
440
441 2017-08-05 Alan Modra <amodra@gmail.com>
442
443 * testsuite/ld-unique/pr21529.d: Don't xfail hppa.
444
445 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
446
447 PR ld/21904
448 * testsuite/ld-elf/pr21904.d: New file.
449 * testsuite/ld-elf/pr21904.s: Likewise.
450
451 2017-08-03 Nick Clifton <nickc@redhat.com>
452
453 PR ld/21884
454 * testsuite/ld-elf/pr21884.d: Add AVR, HPPA, IA64, M68HC1x and
455 SCORE to list of targets not supporting file format changes during
456 linking.
457 * testsuite/ld-unique/pr21529.d: Likewise.
458 * emultempl/avrelf.em (_before_allocation): Skip for non-ELF
459 output formats.
460 (avr_elf_create_output_section_statements): Fail if the output
461 format is not ELF.
462 (avr_finish): Do not access the ELF header in non-ELF format
463 output bfds.
464 * emultempl/m68hc1xelf.em (_before_allocation): Skip for non-ELF
465 output formats.
466 (m68hc11elf_create_output_section_statements): Fail if the putput
467 format is not ELF.
468 (m68hc11elf_after_allocation): Skip for non-ELF output formats.
469
470 2017-08-03 Alan Modra <amodra@gmail.com>
471
472 PR ld/21884
473 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Revert
474 last change. Rename iself to elfinput. Expand comments. Condition
475 ELF checks on having both input and output ELF files. Extract..
476 (elf_orphan_compatible): ..this new function.
477
478 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
479
480 PR ld/21884
481 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Check
482 ELF section header only for ELF output.
483 * testsuite/ld-elf/pr21884.d: New test.
484 * testsuite/ld-elf/pr21884.t: Likewise.
485 * testsuite/ld-elf/pr21884a.s: Likewise.
486 * testsuite/ld-elf/pr21884b.s: Likewise.
487
488 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
489
490 * emultempl/elf32.em (_place_orphan): Revert the last change.
491
492 2017-08-02 Max Filippov <jcmvbkbc@gmail.com>
493
494 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
495 Only check for by_name sorting.
496
497 2017-08-02 Nick Clifton <nickc@redhat.com>
498
499 PR 21884
500 * emultempl/elf32.em (_place_orphan): Skip non-ELF binaries when
501 looking for sections to merge.
502
503 2017-07-31 Alan Modra <amodra@gmail.com>
504
505 * ld.texinfo (plt-localentry): Revise.
506
507 2017-07-29 Alan Modra <amodra@gmail.com>
508
509 * ld.texinfo (plt-localentry): Document.
510
511 2017-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * ldgram.y (ldgram_had_keep): Make static.
514 (ldgram_vers_current_lang): Likewise.
515 (filename_spec): New rule.
516 (input_section_spec_no_keep): Use filename_spec.
517 (wildcard_maybe_exclude): New rule.
518 (wildcard_spec): Rename to...
519 (section_name_spec): ...this.
520 (section_NAME_list): Rename to...
521 (section_name_list): ...this.
522 (section_name_spec): Simplifiy and use wildcard_maybe_exclude.
523 * ldlang.c (placed_commons): Delete.
524 (lang_add_wild): No longer set placed_commons.
525 (print_wild_statement): Use full names for SORT specifiers.
526 * testsuite/ld-scripts/align.exp: Run new tests.
527 * testsuite/ld-scripts/align3.d: New file.
528 * testsuite/ld-scripts/align3.t: New file.
529 * testsuite/ld-scripts/align4.d: New file.
530 * testsuite/ld-scripts/align4.t: New file.
531 * testsuite/ld-scripts/align5.d: New file.
532 * testsuite/ld-scripts/align5.t: New file.
533 * testsuite/ld-scripts/exclude-file-5.d: New file.
534 * testsuite/ld-scripts/exclude-file-5.map: New file.
535 * testsuite/ld-scripts/exclude-file-5.t: New file.
536 * testsuite/ld-scripts/exclude-file-6.d: New file.
537 * testsuite/ld-scripts/exclude-file-6.map: New file.
538 * testsuite/ld-scripts/exclude-file-6.t: New file.
539 * NEWS: Mention the changes.
540
541 2017-07-27 Georg-Johann Lay <gjl@gcc.gnu.org>
542
543 PR ld/21849
544 * scripttempl/avr.sc: Split .progmemx.* from .progmem.* and locate
545 former at a higher address.
546
547 2017-07-25 Alan Modra <amodra@gmail.com>
548
549 * testsuite/ld-powerpc/tlsopt5.s: Add cfi.
550 * testsuite/ld-powerpc/tlsopt5.d: Update.
551 * testsuite/ld-powerpc/tlsopt5.wf: New file.
552 * testsuite/ld-powerpc/powerpc.exp: Perform new tlsopt5 test.
553
554 2017-07-24 Claudiu Zissulescu <claziss@synopsys.com>
555
556 * testsuite/ld-arc/jli-overflow.d: Force testing for little
557 endian.
558 * testsuite/ld-arc/tls_gd-01.d: Fix string to match bigendian
559 systems.
560 * testsuite/ld-arc/tls_ie-01.d: Fix test for bigendian systems.
561
562 2017-07-19 Maciej W. Rozycki <macro@imgtec.com>
563
564 * testsuite/ld-scripts/fill.d: Adjust `xfail' entries. Add
565 `notarget' entries. Update comments.
566 * testsuite/ld-scripts/fill16.d: New test.
567 * testsuite/ld-scripts/fill16_0.s: New test source.
568 * testsuite/ld-scripts/fill16_1.s: New test source.
569 * testsuite/ld-scripts/fill16_2.s: New test source.
570 * testsuite/ld-scripts/data.exp: Run the new test.
571
572 2017-07-19 Claudiu Zissulescu <claziss@synopsys.com>
573 John Eric Martin <John.Martin@emmicro-us.com>
574
575 * emulparams/arcelf.sh (JLI_START_TABLE): Define.
576 * scripttempl/elfarc.sc: Handle jlitab section.
577 * scripttempl/elfarcv2.sc: Likewise.
578 * testsuite/ld-arc/arc.exp: Add JLI test.
579 * testsuite/ld-arc/jli-script.ld: New file.
580 * testsuite/ld-arc/jli-simple.dd: Likewise.
581 * testsuite/ld-arc/jli-simple.rd: Likewise.
582 * testsuite/ld-arc/jli-simple.s: Likewise.
583 * testsuite/ld-arc/jli-overflow.s: Likewise.
584 * testsuite/ld-arc/jli-overflow.d: Likewise.
585 * testsuite/ld-arc/jli-overflow.err: Likewise.
586
587 2017-07-19 Tristan Gingold <gingold@adacore.com>
588
589 * ldmain.c (main): Remove display of data size.
590
591 2017-07-18 Maciej W. Rozycki <macro@imgtec.com>
592
593 PR ld/16656
594 * testsuite/ld-elf/binutils.exp (binutils_test): Make the
595 expectation for `.got' in GNU_RELRO segment target-specific.
596 Handle `.got.plt' separately.
597
598 2017-07-18 Maciej W. Rozycki <macro@imgtec.com>
599
600 PR ld/16656
601 * testsuite/ld-elf/binutils.exp (binutils_test): Make the
602 expectation for `.dynamic' in GNU_RELRO segment target-specific.
603
604 2017-07-18 Nick Clifton <nickc@redhat.com>
605
606 PR 21775
607 * ld.texinfo: Fix spelling typos.
608 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
609
610 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
611
612 * testsuite/ld-i386/i386.exp: Run pie1 and pie1-nacl.
613 * testsuite/ld-i386/pie1-nacl.d: New file.
614 * testsuite/ld-i386/pie1.d: Likewise.
615 * testsuite/ld-i386/pie1.s: Likewise.
616
617 2017-07-17 H.J. Lu <hongjiu.lu@intel.com>
618
619 PR ld/21782
620 * testsuite/ld-x86-64/pie3-nacl.d: New file.
621 * testsuite/ld-x86-64/pie3.d: Likewise.
622 * testsuite/ld-x86-64/pie3.s: Likewise.
623 * testsuite/ld-x86-64/x86-64.exp: Run pie3 and pie3-nacl.
624
625 2017-07-14 Alan Modra <amodra@gmail.com>
626
627 * testsuite/ld-powerpc/powerpc.exp: Add -shared to tlsop5 tests.
628 * testsuite/ld-powerpc/tlsopt5.d: Adjust.
629 * testsuite/ld-powerpc/tlsopt1_32.s: Use r30 as GOT pointer.
630 * testsuite/ld-powerpc/tlsopt2_32.s: Likewise.
631 * testsuite/ld-powerpc/tlsopt3_32.s: Likewise.
632 * testsuite/ld-powerpc/tlsopt4_32.s: Likewise.
633 * testsuite/ld-powerpc/tlsopt5_32.s: Rewrite.
634 * testsuite/ld-powerpc/tlsopt1_32.d: Adjust.
635 * testsuite/ld-powerpc/tlsopt2_32.d: Adjust.
636 * testsuite/ld-powerpc/tlsopt3_32.d: Adjust.
637 * testsuite/ld-powerpc/tlsopt5_32.d: Adjust.
638
639 2016-07-14 Maciej W. Rozycki <macro@imgtec.com>
640
641 * testsuite/ld-unique/pr21529.ld: New test linker script.
642 * testsuite/ld-unique/pr21529.d: Use it.
643
644 2017-07-12 Alan Modra <amodra@gmail.com>
645
646 * po/bg.po: Update from translationproject.org/latest/ld/.
647 * po/da.po: Likewise.
648 * po/es.po: Likewise.
649 * po/fi.po: Likewise.
650 * po/fr.po: Likewise.
651 * po/id.po: Likewise.
652 * po/it.po: Likewise.
653 * po/ja.po: Likewise.
654 * po/tr.po: Likewise.
655 * po/uk.po: Likewise.
656 * po/vi.po: Likewise.
657 * po/zh_CN.po: Likewise.
658 * po/zh_TW.po: Likewise.
659 * po/de.po: New file from translationproject.org.
660 * po/ru.po: Likewise.
661 * configure.ac (ALL_LINGUAS): Add de, ru. Sort.
662 * configure: Regenerate.
663
664 2017-07-12 Alan Modra <amodra@gmail.com>
665
666 * testsuite/ld-scripts/align.exp: Exclude powerpc*-*-aix*.
667 * testsuite/ld-scripts/assign-loc.d: Likewise.
668 * testsuite/ld-scripts/defined3.d: Likewise.
669 * testsuite/ld-scripts/defined4.d: Likewise.
670 * testsuite/ld-scripts/defined5.d: Likewise.
671 * testsuite/ld-scripts/expr2.d: Likewise.
672 * testsuite/ld-scripts/provide.exp: Likewise.
673 * testsuite/ld-scripts/sane1.d: Likewise.
674 * testsuite/ld-scripts/size.exp: Likewise.
675 * testsuite/ld-scripts/defined2.d: Don't xfail rs6000-*-aix*.
676
677 2017-07-12 Alan Modra <amodra@gmail.com>
678
679 * testsuite/ld-arc/nps-1b.err: Update.
680 * testsuite/ld-x86-64/ilp32-11.d: Update.
681
682 2017-07-11 H.J. Lu <hongjiu.lu@intel.com>
683
684 * testsuite/ld-selective/selective.exp: Support single digit
685 GCC version.
686
687 2017-07-11 Jiong Wang <jiong.wang@arm.com>
688
689 * testsuite/ld-aarch64/dt_textrel.d: Use "#pass" instead of ".*" to
690 filter out remaining lines.
691
692 2017-07-07 Maciej W. Rozycki <macro@imgtec.com>
693
694 * emultempl/mipself.em (mips_before_allocation): Avoid ELF
695 processing if not MIPS ELF.
696 * testsuite/ld-mips-elf/binary.d: New test.
697 * testsuite/ld-mips-elf/binary.ld: New test linker script.
698 * testsuite/ld-mips-elf/binary.s: New test source.
699 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
700
701 2017-07-07 Alan Modra <amodra@gmail.com>
702
703 * testsuite/ld-powerpc/ppc476-shared.lnk: Align .bss.
704 * testsuite/ld-powerpc/ppc476-shared.d: Adjust.
705 * testsuite/ld-powerpc/ppc476-shared2.d: Adjust.
706
707 2017-07-07 Alan Modra <amodra@gmail.com>
708
709 * Makefile.am (eelf64_s390.c): Depend on emultempl/s390.em.
710
711 2017-07-04 Tristan Gingold <gingold@adacore.com>
712
713 * configure: Regenerate.
714
715 2017-07-04 Tristan Gingold <gingold@adacore.com>
716
717 * NEWS: Add marker for 2.29.
718
719 2017-07-03 Tristan Gingold <gingold@adacore.com>
720
721 * po/ld.pot: Regenerate.
722
723 2017-06-30 Maciej W. Rozycki <macro@imgtec.com>
724
725 * testsuite/ld-mips-elf/relax-offset.dd: New test.
726 * testsuite/ld-mips-elf/relax-offset.gd: New test.
727 * testsuite/ld-mips-elf/relax-offset-umips.dd: New test.
728 * testsuite/ld-mips-elf/relax-offset-umips.gd: New test.
729 * testsuite/ld-mips-elf/relax-offset.ld: New test linker script.
730 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
731 (prune_warnings): New temporary procedure.
732
733 2017-06-28 Maciej W. Rozycki <macro@imgtec.com>
734
735 * testsuite/ld-mips-elf/mips-elf-flags.exp: Add interAptiv MR2
736 tests.
737
738 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
739
740 PR ld/13402
741 * testsuite/ld-avr/pr13402.d: New test.
742 * testsuite/ld-avr/pr13402.s: New test.
743
744 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
745
746 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
747 Add an `args' final argument and examination code for `readelf
748 -A' output. Update procedure description accordingly.
749
750 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
751
752 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
753 Use `remote_exec' to call `readelf'. Log the command issued.
754
755 2017-06-27 Maciej W. Rozycki <macro@imgtec.com>
756
757 * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
758 Use `readelf -h' rather than `readelf --headers'.
759
760 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
761
762 * testsuite/ld-mips-elf/lsi-4010-isa.d: New test.
763 * ld/testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
764
765 2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
766
767 * testsuite/ld-elf/sizeofa.d: Also accept the OBJECT type for
768 the symbols examined.
769 * testsuite/ld-elf/sizeofc.d: Likewise.
770 * testsuite/ld-elf/startofa.d: Likewise.
771 * testsuite/ld-elf/startofc.d: Likewise.
772
773 2017-06-26 Alan Modra <amodra@gmail.com>
774
775 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Skip
776 --just-syms bfds when looking for a place to attach .note.gnu.build-id
777 and .eh_frame_hdr sections. Delete dead code.
778
779 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
780
781 * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 11): New test.
782 (EABI attribute merging 12): Likewise.
783 * testsuite/ld-arm/attr-merge-11a.s: New file.
784 * testsuite/ld-arm/attr-merge-11b.s: New file.
785 * testsuite/ld-arm/attr-merge-11.attr: New file.
786 * testsuite/ld-arm/attr-merge-12a.s: New file.
787 * testsuite/ld-arm/attr-merge-12b.s: New file.
788 * testsuite/ld-arm/attr-merge-12.attr: New file.
789
790 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
791
792 * testsuite/ld-i386/i386.exp: Run weakundef1 tests.
793 * testsuite/ld-i386/weakundef1.c: New file.
794
795 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
796
797 PR ld/21090
798 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Pass
799 $NOPIE_CFLAGS if non-PIE is required.
800
801 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
802
803 PR ld/21090
804 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
805 $NOPIE_LDFLAGS to "Run pr19031".
806
807 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
808
809 PR ld/21090
810 * testsuite/ld-gc/gc.exp: Compile tmpdir/pr14265.o with
811 $NOPIE_CFLAGS.
812 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
813 $NOPIE_LDFLAGS if non-PIE is required.
814 * testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New.
815 (NOPIE_LDFLAGS): Likewise.
816 Pass $NOPIE_LDFLAGS if non-PIE is required.
817 * testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with
818 $NOPIE_CFLAGS.
819
820 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
821
822 * NEWS: Mention -z shstk and GNU_PROPERTY_X86_FEATURE_1_SHSTK.
823 * emulparams/cet.sh (PARSE_AND_LIST_OPTIONS_CET): Add "-z shstk".
824 (PARSE_AND_LIST_ARGS_CASE_Z_CET): Support "-z shstk".
825 * ld.texinfo: Document -z shstk.
826 * testsuite/ld-i386/i386.exp: Run SHSTK tests.
827 * testsuite/ld-x86-64/x86-64.exp: Likewise.
828 * testsuite/ld-i386/property-x86-shstk.s: New file.
829 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
830 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
831 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
832 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
833 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
834 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
835 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
836 * testsuite/ld-x86-64/property-x86-shstk.s: Likewise.
837 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
838 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
839 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
840 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
841 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
842 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
843 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
844 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
845 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
846 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
847 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
848 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
849 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
850 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
851
852 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
853
854 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emulparams/cet.sh.
855 * Makefile.in: Regenerated.
856 * NEWS: Mention GNU_PROPERTY_X86_FEATURE_1_IBT, -z ibtplt
857 and -z ibt.
858 * emulparams/cet.sh: New file.
859 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
860 * testsuite/ld-i386/ibt-plt-1.s: Likewise.
861 * testsuite/ld-i386/ibt-plt-2.s: Likewise.
862 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
863 * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
864 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
865 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
866 * testsuite/ld-i386/ibt-plt-3.s: Likewise.
867 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
868 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
869 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
870 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
871 * testsuite/ld-i386/plt-main-ibt.dd: Likewise.
872 * testsuite/ld-i386/plt-pie-ibt.dd: Likewise.
873 * testsuite/ld-i386/property-x86-empty.s: Likewise.
874 * testsuite/ld-i386/property-x86-ibt.s: Likewise.
875 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
876 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
877 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
878 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
879 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
880 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
881 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
882 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
883 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
884 * testsuite/ld-x86-64/ibt-plt-1.s: Likewise.
885 * testsuite/ld-x86-64/ibt-plt-2.s: Likewise.
886 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
887 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
888 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
889 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
890 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
891 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
892 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
893 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
894 * testsuite/ld-x86-64/ibt-plt-3.s: Likewise.
895 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
896 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
897 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
898 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
899 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
900 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
901 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
902 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
903 * testsuite/ld-x86-64/plt-main-ibt-now.rd: Likewise.
904 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Likewise.
905 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
906 * testsuite/ld-x86-64/property-x86-empty.s: Likewise.
907 * testsuite/ld-x86-64/property-x86-ibt.s: Likewise.
908 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
909 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
910 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
911 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
912 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
913 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
914 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
915 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
916 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
917 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
918 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
919 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
920 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
921 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
922 * emulparams/elf32_x86_64.sh: Source emulparams/cet.sh.
923 (TINY_READONLY_SECTION): Add .plt.sec.
924 * emulparams/elf_i386.sh: Likewise.
925 * emulparams/elf_x86_64.sh: Source emulparams/cet.sh.
926 * ld.texinfo: Document -z ibtplt and -z ibt.
927 * testsuite/ld-i386/i386.exp: Run IBT and IBT PLT tests.
928 * testsuite/ld-x86-64/x86-64.exp: Likewise.
929 * testsuite/ld-x86-64/pr21481b.S (check): Updated for x32.
930
931 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
932
933 PR ld/21090
934 * testsuite/ld-elf/shared.exp: Pass $NOPIE_CFLAGS and
935 $NOPIE_LDFLAGS if non-PIE is required.
936
937 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
938
939 PR ld/21090
940 * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS
941 to CC.
942
943 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
944
945 PR ld/21090
946 * testsuite/ld-size/size.exp: Pass $NOPIE_LDFLAGS to size-4a,
947 size-4b, size-5a, size-5b, size-6 and size-8 tests.
948 * testsuite/ld-srec/srec.exp (NOPIE_CFLAGS): New.
949 (NOPIE_LDFLAGS): Likewise.
950 (CC): Add $NOPIE_CFLAGS $NOPIE_LDFLAGS.
951 (CXX): Likewise.
952 * testsuite/ld-x86-64/no-plt.exp (NOPIE_CFLAGS): New.
953 (NOPIE_LDFLAGS): Likewise.
954 Pass $NOPIE_LDFLAGS to "No PLT (dynamic 1a)",
955 "No PLT (dynamic 1c)" and "Run pr20253-2f".
956 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to
957 "Build gotpcrel1" and "Run pr19031".
958
959 2017-06-21 Alan Modra <amodra@gmail.com>
960
961 * testsuite/ld-powerpc/powerpc.exp: Run TOCSAVE tests.
962 * testsuite/ld-powerpc/tocsave1.s,
963 * testsuite/ld-powerpc/tocsave1a.d,
964 * testsuite/ld-powerpc/tocsave1s.d,
965 * testsuite/ld-powerpc/tocsave2.s,
966 * testsuite/ld-powerpc/tocsave2a.d,
967 * testsuite/ld-powerpc/tocsave2s.d,
968 * testsuite/ld-powerpc/tocsavelib.s: New files.
969
970 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
971
972 * Makefile.in: Add s390.em as build dependency.
973 * emulparams/elf64_s390.sh (EXTRA_EM_FILE): Add s390.em.
974 * emultempl/s390.em: New file.
975 * gen-doc.texi: Add documentation for --s390-pgste option.
976 * ld.texinfo: Likewise.
977
978 2017-06-19 H.J. Lu <hongjiu.lu@intel.com>
979
980 PR ld/21626
981 * testsuite/ld-i386/i386.exp: Run ld/21626 tests.
982 * testsuite/ld-x86-64/x86-64.exp: Likewise.
983
984 2017-06-18 Alan Modra <amodra@gmail.com>
985
986 * testsuite/lib/ld-lib.exp (is_underscore_target): New.
987 * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE.
988 * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined,
989 reference sym with prefix.
990 * testsuite/ld-elf/pr21562b.s: Likewise.
991 * testsuite/ld-elf/sizeof.s: Likewise.
992 * testsuite/ld-elf/startof.s: Likewise.
993 * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols.
994 * testsuite/ld-elf/pr21562a.d: Remove underscore target from
995 xfails, and match prefixed symbol.
996 * testsuite/ld-elf/pr21562b.d: Likewise.
997 * testsuite/ld-elf/pr21562c.d: Likewise.
998 * testsuite/ld-elf/pr21562d.d: Likewise.
999 * testsuite/ld-elf/pr21562e.d: Likewise.
1000 * testsuite/ld-elf/pr21562f.d: Likewise.
1001 * testsuite/ld-elf/pr21562g.d: Likewise.
1002 * testsuite/ld-elf/pr21562h.d: Likewise.
1003 * testsuite/ld-elf/pr21562i.d: Likewise.
1004 * testsuite/ld-elf/pr21562j.d: Likewise.
1005 * testsuite/ld-elf/pr21562k.d: Likewise.
1006 * testsuite/ld-elf/pr21562l.d: Likewise.
1007 * testsuite/ld-elf/pr21562m.d: Likewise.
1008 * testsuite/ld-elf/pr21562n.d: Likewise.
1009 * testsuite/ld-elf/sizeofa.d: Likewise.
1010 * testsuite/ld-elf/sizeofb.d: Likewise.
1011 * testsuite/ld-elf/sizeofc.d: Likewise.
1012 * testsuite/ld-elf/startofa.d: Likewise.
1013 * testsuite/ld-elf/startofb.d: Likewise.
1014 * testsuite/ld-elf/startofc.d: Likewise.
1015
1016 2017-06-16 Alan Modra <amodra@gmail.com>
1017
1018 PR ld/20022
1019 PR ld/21557
1020 PR ld/21562
1021 PR ld/21571
1022 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't set
1023 __start/__stop syms here.
1024 * ldlang.c (lang_set_startof): Delete.
1025 (start_stop_syms, start_stop_count, start_stop_alloc): New vars.
1026 (lang_define_start_stop, lang_init_start_stop, foreach_start_stop,
1027 undef_start_stop, lang_undef_start_stop, lang_init_startof_sizeof,
1028 set_start_stop, lang_finalize_start_stop): New functions.
1029 (lang_process): Call _start_stop functions.
1030 * testsuite/ld-elf/pr21562a.d: Use xfail rather than notarget.
1031 Correct typos and list of xfail targets.
1032 * testsuite/ld-elf/pr21562b.d: Likewise.
1033 * testsuite/ld-elf/pr21562c.d: Likewise.
1034 * testsuite/ld-elf/pr21562d.d: Likewise.
1035 * testsuite/ld-elf/pr21562e.d: Likewise.
1036 * testsuite/ld-elf/pr21562f.d: Likewise.
1037 * testsuite/ld-elf/pr21562g.d: Likewise.
1038 * testsuite/ld-elf/pr21562h.d: Likewise.
1039 * testsuite/ld-elf/pr21562i.d: Likewise.
1040 * testsuite/ld-elf/pr21562j.d: Likewise.
1041 * testsuite/ld-elf/pr21562k.d: Likewise.
1042 * testsuite/ld-elf/pr21562l.d: Likewise.
1043 * testsuite/ld-elf/pr21562m.d: Likewise.
1044 * testsuite/ld-elf/pr21562n.d: Likewise.
1045 * testsuite/ld-elf/sizeofa.d: Likewise. Adjust to pass for generic ELF.
1046 * testsuite/ld-elf/sizeofb.d: Likewise.
1047 * testsuite/ld-elf/startofa.d: Likewise.
1048 * testsuite/ld-elf/startofb.d: Likewise.
1049
1050 2017-06-16 Jiong Wang <jiong.wang@arm.com>
1051
1052 * testsuite/ld-aarch64/aarch64-elf.exp: Update test name
1053 * testsuite/ld-aarch64/pcrel.s: Add new testcases.
1054 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Update the expected
1055 warnings.
1056 * testsuite/ld-aarch64/pcrel_pic_defined_local.d: Rename ...
1057 * testsuite/ld-aarch64/pcrel_pic_defined.d: ... to this.
1058 Update expected warnings.
1059
1060 2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
1061
1062 * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
1063 instead of "-z stacksize=SIZE".
1064
1065 2017-06-15 Jiong Wang <jiong.wang@arm.com>
1066
1067 * testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
1068 * testsuite/ld-aarch64/copy-reloc-2.d: New test.
1069 * testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source file.
1070 * testsuite/ld-aarch64/copy-reloc-eliminate.d: New test.
1071 * testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects.
1072 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
1073
1074 2017-06-14 Nick Clifton <nickc@redhat.com>
1075
1076 PR binutils/21580
1077 * testsuite/ld-nds32/diff.d: Adjust expected output.
1078
1079 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
1080
1081 PR ld/20022
1082 * testsuite/ld-gc/pr20022.d: Skip on targets without dynamic
1083 relocations in .text section.
1084
1085 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
1086
1087 * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
1088 in in symbol name or without --gc-sections.
1089 * testsuite/ld-elf/pr21562b.d: Likewise.
1090 * testsuite/ld-elf/pr21562c.d: Likewise.
1091 * testsuite/ld-elf/pr21562d.d: Likewise.
1092 * testsuite/ld-elf/pr21562i.d: Likewise.
1093 * testsuite/ld-elf/pr21562j.d: Likewise.
1094 * testsuite/ld-elf/pr21562k.d: Likewise.
1095 * testsuite/ld-elf/pr21562l.d: Likewise.
1096 * testsuite/ld-elf/pr21562m.d: Likewise.
1097 * testsuite/ld-elf/pr21562n.d: Likewise.
1098 * testsuite/ld-elf/pr21562e.d: Skip on targets with leading char
1099 in symbol name.
1100 * testsuite/ld-elf/pr21562f.d: Likewise.
1101 * testsuite/ld-elf/pr21562g.d: Likewise.
1102 * testsuite/ld-elf/pr21562h.d: Likewise.
1103
1104 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
1105
1106 * testsuite/ld-gc/pr20022a.s: Add size to bar.
1107
1108 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
1109
1110 * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
1111 in symbol name.
1112 * testsuite/ld-elf/sizeofb.d: Likewise.
1113 * testsuite/ld-elf/startofa.d: Likewise.
1114 * testsuite/ld-elf/startofb.d: Likewise.
1115
1116 2017-06-14 Georg-Johann Lay <gjl@gcc.gnu.org>
1117
1118 PR ld/21583
1119 * scripttempl/avr.sc (.jumptables): Move down in text section.
1120 (.hightext): New in text.
1121
1122 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
1123
1124 * configure.tgt (epiphany-*-elf): Accept epiphany-*-*.
1125
1126 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1127
1128 * ldlang.c (lang_set_startof): Skip if config.build_constructors
1129 is FALSE.
1130 * testsuite/ld-elf/sizeofc.d: New file.
1131 * testsuite/ld-elf/startofc.d: Likewise.
1132
1133 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1134
1135 * testsuite/ld-elf/sizeof.d: Renamed to ...
1136 * testsuite/ld-elf/sizeofa.d: This. Updated.
1137 * testsuite/ld-elf/startof.d: Renamed to ...
1138 * testsuite/ld-elf/startofa.d: This. Updated.
1139 * testsuite/ld-elf/sizeofb.d: New file.
1140 * testsuite/ld-elf/startofb.d: Likewise.
1141
1142 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1143
1144 PR ld/20022
1145 PR ld/21557
1146 PR ld/21562
1147 PR ld/21571
1148 * ld.texinfo: Update __start_SECNAME/__stop_SECNAME symbols.
1149 * ldlang.c (lang_insert_orphan): Move handling of __start_SECNAME
1150 and __stop_SECNAME symbols to ...
1151 (lang_set_startof): Here. Also define __start_SECNAME and
1152 __stop_SECNAME for -Ur.
1153 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Mark
1154 referenced __start_SECNAME and __stop_SECNAME symbols as hidden
1155 and set start_stop for garbage collection.
1156 * testsuite/ld-elf/pr21562a.d: New file.
1157 * testsuite/ld-elf/pr21562a.s: Likewise.
1158 * testsuite/ld-elf/pr21562a.t: Likewise.
1159 * testsuite/ld-elf/pr21562b.d: Likewise.
1160 * testsuite/ld-elf/pr21562b.s: Likewise.
1161 * testsuite/ld-elf/pr21562b.t: Likewise.
1162 * testsuite/ld-elf/pr21562c.d: Likewise.
1163 * testsuite/ld-elf/pr21562c.t: Likewise.
1164 * testsuite/ld-elf/pr21562d.d: Likewise.
1165 * testsuite/ld-elf/pr21562d.t: Likewise.
1166 * testsuite/ld-elf/pr21562e.d: Likewise.
1167 * testsuite/ld-elf/pr21562f.d: Likewise.
1168 * testsuite/ld-elf/pr21562g.d: Likewise.
1169 * testsuite/ld-elf/pr21562h.d: Likewise.
1170 * testsuite/ld-elf/pr21562i.d: Likewise.
1171 * testsuite/ld-elf/pr21562j.d: Likewise.
1172 * testsuite/ld-elf/pr21562k.d: Likewise.
1173 * testsuite/ld-elf/pr21562l.d: Likewise.
1174 * testsuite/ld-elf/pr21562m.d: Likewise.
1175 * testsuite/ld-elf/pr21562n.d: Likewise.
1176 * testsuite/ld-gc/pr20022.d: Likewise.
1177 * testsuite/ld-gc/pr20022a.s: Likewise.
1178 * testsuite/ld-gc/pr20022b.s: Likewise.
1179 * testsuite/ld-gc/gc.exp: Run PR ld/20022 tests.
1180 * testsuite/ld-gc/pr19161.d: Also accept local __start_SECNAME
1181 symbol.
1182 * testsuite/ld-gc/start.d: Likewise.
1183 * testsuite/ld-x86-64/lea1a.d: Updated.
1184 * testsuite/ld-x86-64/lea1b.d: Updated.
1185 * testsuite/ld-x86-64/lea1d.d: Updated.
1186 * testsuite/ld-x86-64/lea1e.d: Likewise.
1187
1188 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
1189
1190 * testsuite/ld-elf/sizeof.d: New file.
1191 * testsuite/ld-elf/sizeof.s: Likewise.
1192 * testsuite/ld-elf/startof.d: Likewise.
1193 * testsuite/ld-elf/startof.s: Likewise.
1194
1195 2017-06-13 Renlin Li <renlin.li@arm.com>
1196
1197 * testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker
1198 option to rdynamic-1 and dynamic-1 tests.
1199
1200 2017-06-09 H.J. Lu <hongjiu.lu@intel.com>
1201
1202 * testsuite/ld-x86-64/property-x86-3-x32.d: New file.
1203 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
1204 * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise.
1205 * testsuite/ld-x86-64/property-x86-3.d: Also pass
1206 -defsym __64_bit__=1 to asssembler.
1207 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
1208 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
1209 * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if
1210 __64_bit__ isn't defined.
1211 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
1212 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
1213 * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32,
1214 property-x86-4a-x32 and property-x86-4b-x32.
1215
1216 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
1217
1218 * testsuite/ld-arc/tls_ie-01.d: Changed expected result.
1219
1220 2017-06-08 H.J. Lu <hongjiu.lu@intel.com>
1221
1222 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Pass
1223 "-Map tmpdir/ifunc-1-local-x86.map" to ld and check
1224 ifunc-1-local-x86.map.
1225 * testsuite/ld-ifunc/ifunc-1-x86.d: Pass
1226 "-Map tmpdir/ifunc-1-x86.map" to ld and check ifunc-1-x86.map.
1227 * testsuite/ld-ifunc/ifunc-1-local-x86.map: New file.
1228 * testsuite/ld-ifunc/ifunc-1-x86.map: Likewise.
1229
1230 2017-06-07 Alan Modra <amodra@gmail.com>
1231
1232 * testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
1233 nds32, and score. Match any output.
1234
1235 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * ld.h (struct args_type): Fix typo in comment.
1238
1239 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
1240
1241 * ld.h (struct args_type): Add force_group_allocation field.
1242 * ldgram.y: Add support for FORCE_GROUP_ALLOCATION.
1243 * ldlex.h: Likewise.
1244 * ldlex.l: Likewise.
1245 * lexsup.c: Likewise.
1246 * ldlang.c (unique_section_p): Check resolve_section_groups flag
1247 not the relaxable link flag.
1248 (lang_add_section): Discard section groups when we're resolving
1249 groups. Clear the SEC_LINK_ONCE flag if we're resolving section
1250 groups.
1251 * ldmain.c (main): Initialise resolve_section_groups flag in
1252 link_info based on command line flags.
1253 * testsuite/ld-elf/group11.d: New file.
1254 * testsuite/ld-elf/group12.d: New file.
1255 * testsuite/ld-elf/group12.ld: New file.
1256 * NEWS: Mention new features.
1257 * ld.texinfo (Options): Document --force-group-allocation.
1258 (Miscellaneous Commands): Document FORCE_GROUP_ALLOCATION.
1259
1260 2017-06-05 H.J. Lu <hongjiu.lu@intel.com>
1261
1262 PR ld/21529
1263 * testsuite/ld-unique/pr21529.d: New file.
1264 * testsuite/ld-unique/pr21529.s: Likewise.
1265 * testsuite/ld-unique/unique.exp: Run *.d.
1266
1267 2017-06-05 Alan Modra <amodra@gmail.com>
1268
1269 * ldmain.c (main): Correct setting of link_indo.new_dtags.
1270 * testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
1271 * testsuite/ld-elf/now-4.d: Likewise.
1272 * testsuite/ld-elf/rpath-1.d: Likewise.
1273 * testsuite/ld-elf/rpath-2.d: Likewise.
1274
1275 2017-06-05 Slava Barinov <v.barinov@samsung.com>
1276
1277 * configure.ac: Add --enable-new-dtags option.
1278 * ldmain.c (main): Set link_info.new_dtags to 1 if when
1279 --enable-new-dtags is switched on.
1280 * configure: Regenerate.
1281 * config.in: Regenerate.
1282
1283 2017-06-02 H.J. Lu <hongjiu.lu@intel.com>
1284
1285 * emulparams/call_nop.sh: Remove -z prefix-nop.
1286 * ld.texinfo: Likewise.
1287 * testsuite/ld-i386/call3c.d: Check for linker error.
1288 * testsuite/ld-x86-64/call1c.d: Likewise.
1289
1290 2017-06-01 Alan Modra <amodra@gmail.com>
1291
1292 * emultempl/ppc64elf.em (params): Init plt_localentry0 field.
1293 (enum ppc64_opt): New, replacing OPTION_* defines. Add
1294 OPTION_PLT_LOCALENTRY, and OPTION_NO_PLT_LOCALENTRY.
1295 (PARSE_AND_LIST_*): Support --plt-localentry and --no-plt-localentry.
1296 * testsuite/ld-powerpc/elfv2so.d: Update.
1297 * testsuite/ld-powerpc/powerpc.exp (TLS opt 5): Use --no-plt-localentry.
1298 * testsuite/ld-powerpc/tlsopt5.d: Update.
1299
1300 2017-05-31 Alan Modra <amodra@gmail.com>
1301
1302 * emultempl/ppc64elf.em (plt-static-chain help): Fix quoting.
1303
1304 2017-05-22 Jiong Wang <jiong.wang@arm.com>
1305
1306 * configure.tgt: Set "targ_emul" to "aarch64linux32b" for
1307 aarch64_be-*-linux-gnu_ilp32. Set "targ_emul" to "aarch64linux32" for
1308 aarch64-*-linux-gnu_ilp32.
1309
1310 2017-05-19 H.J. Lu <hongjiu.lu@intel.com>
1311
1312 * testsuite/ld-i386/i386.exp: Run property-x86-4a and
1313 property-x86-4b.
1314 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1315 * testsuite/ld-i386/property-x86-4a.d: New file.
1316 * testsuite/ld-i386/property-x86-4a.s: Likewise.
1317 * testsuite/ld-i386/property-x86-4b.d: Likewise.
1318 * testsuite/ld-i386/property-x86-4b.s: Likewise.
1319 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
1320 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
1321 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
1322 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
1323
1324 2017-05-19 Georg-Johann Lay <avr@gjlay.de>
1325
1326 PR ld/21472
1327 * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
1328 * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]:
1329 Use RODATA_PM_OFFSET as default if not already defined.
1330 (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
1331 (.rodata) [RODATA_PM_OFFSET]: Put at an offset of
1332 __RODATA_PM_OFFSET__.
1333
1334 2017-05-18 Nick Clifton <nickc@redhat.com>
1335
1336 PR ld/21251
1337 * ldfile.c (ldfile_add_library_path): If the path starts with
1338 $SYSROOT then use the sysroot as the real prefix.
1339 * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
1340 way as =.
1341 * ldlex.l: Add $SYSROOT as allow prefix for a filename.
1342 * ld.texinfo (-L): Document that $SYSROOT acts like = when
1343 prefixing a library search path.
1344 (INPUT): Likewise.
1345 * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
1346 tests.
1347
1348 2017-05-18 Alan Modra <amodra@gmail.com>
1349
1350 * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
1351 * emultempl/pe.em: Likewise.
1352 * emultempl/pep.em: Likewise.
1353 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
1354 Don't compare enum against TRUE.
1355
1356 2017-05-18 Alan Modra <amodra@gmail.com>
1357
1358 PR ld/20882
1359 * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
1360 Allow for 16-bit address targets and match expected data fully.
1361 * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
1362 * testsuite/ld-gc/pr20882b.s: Likewise.
1363 * testsuite/ld-gc/pr20882c.s: Likewise.
1364
1365 2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
1366
1367 PR ld/20882
1368 * testsuite/ld-gc/gc.exp: Run pr20882.
1369 * testsuite/ld-gc/pr20882.d: New file.
1370 * testsuite/ld-gc/pr20882a.s: Likewise.
1371 * testsuite/ld-gc/pr20882b.s: Likewise.
1372 * testsuite/ld-gc/pr20882c.s: Likewise.
1373
1374 2017-05-16 H.J. Lu <hongjiu.lu@intel.com>
1375
1376 PR ld/21481
1377 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
1378 if IFUNC is supported by run-time.
1379
1380 2017-05-16 Alan Modra <amodra@gmail.com>
1381
1382 * plugin.c: Rename occurrences of non_ir_ref.
1383
1384 2017-05-16 Alan Modra <amodra@gmail.com>
1385
1386 * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic.
1387 (plugin_notice): Set non_ir_ref for references from regular
1388 objects, non_ir_ref_dynamic for references from dynamic objects.
1389
1390 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
1391
1392 * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: New test.
1393 * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: New test.
1394 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: New test.
1395 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: New test.
1396 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: New test.
1397 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: New test.
1398 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: New test.
1399 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: New test.
1400 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1401
1402 2017-05-15 Nick Clifton <nickc@redhat.com>
1403
1404 PR ld/21459
1405 * scripttempl/pe.sc: Add .debug_gdb_scripts section.
1406 * scripttempl/pep.sc: Likewise.
1407
1408 2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
1409
1410 * testsuite/ld-i386/i386.exp: Run property-x86-3.
1411 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1412 * testsuite/ld-i386/property-x86-3.d: New file.
1413 * testsuite/ld-i386/property-x86-3.s: Likewise.
1414 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
1415 * testsuite/ld-x86-64/property-x86-3.s: Likewise.
1416
1417 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
1418
1419 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Replace
1420 .plt.bnd with .plt.sec.
1421 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1422 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1423 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1424 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1425 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1426 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1427 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1428 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1429 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1430 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
1431 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1432 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1433 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1434 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1435
1436 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
1437
1438 * testsuite/ld-i386/plt-pic2.dd: Updated.
1439 * testsuite/ld-i386/plt2.dd: Likewise.
1440 * testsuite/ld-i386/plt2.rd: Likewise.
1441 * testsuite/ld-i386/pr17689now.rd: Likewise.
1442 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
1443 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
1444 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1445 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1446 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1447 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1448 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1449 * testsuite/ld-x86-64/plt2.dd: Likewise.
1450 * testsuite/ld-x86-64/plt2.rd: Likewise.
1451 * testsuite/ld-x86-64/pr17689now.rd: Likewise.
1452 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1453 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1454
1455 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
1456
1457 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
1458 to yes.
1459 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
1460 Likewise.
1461 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
1462
1463 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
1464
1465 PR ld/21481
1466 * testsuite/ld-x86-64/pr21481a.c: New file.
1467 * testsuite/ld-x86-64/pr21481b.S: Likewise.
1468 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
1469
1470 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
1471
1472 * testsuite/ld-arc/attr-merge-0.d: New file.
1473 * testsuite/ld-arc/attr-merge-0.s: Likewise.
1474 * testsuite/ld-arc/attr-merge-0e.s: Likewise.
1475 * testsuite/ld-arc/attr-merge-1.d: Likewise.
1476 * testsuite/ld-arc/attr-merge-1.s: Likewise.
1477 * testsuite/ld-arc/attr-merge-1e.s: Likewise.
1478 * testsuite/ld-arc/attr-merge-2.d: Likewise.
1479 * testsuite/ld-arc/attr-merge-2.s: Likewise.
1480 * testsuite/ld-arc/attr-merge-3.d: Likewise.
1481 * testsuite/ld-arc/attr-merge-3.s: Likewise.
1482 * testsuite/ld-arc/attr-merge-3e.s: Likewise.
1483 * testsuite/ld-arc/attr-merge-4.s: Likewise.
1484 * testsuite/ld-arc/attr-merge-5.d: Likewise.
1485 * testsuite/ld-arc/attr-merge-5a.s: Likewise.
1486 * testsuite/ld-arc/attr-merge-5b.s: Likewise.
1487 * testsuite/ld-arc/attr-merge-conflict-isa.d: Likewise.
1488 * testsuite/ld-arc/attr-merge-err-isa.d: Likewise.
1489 * testsuite/ld-arc/attr-merge-incompatible-cpu.d: Likewise.
1490 * testsuite/ld-arc/got-01.d: Update test.
1491 * testsuite/ld-arc/attr-merge-err-quarkse.d: New file.
1492 * testsuite/ld-arc/attr-quarkse.s: Likewise.
1493 * testsuite/ld-arc/attr-quarkse2.s: Likewise.
1494
1495 2017-05-09 Awson <kyrab@mail.ru>
1496
1497 PR ld/21471
1498 * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
1499
1500 2017-05-09 Benjamin Peterson <bp@benjamin.pe>
1501
1502 * ld.texinfo (orphan sections): Grammar fix.
1503
1504 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
1505
1506 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: New file.
1507 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1508 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1509 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1510 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1511 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1512 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1513 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1514 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1515 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1516 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
1517 * testsuite/ld-x86-64/plt2.dd: Likewise.
1518 * testsuite/ld-x86-64/plt2.rd: Likewise.
1519 * testsuite/ld-x86-64/plt2.s: Likewise.
1520 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
1521 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
1522 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
1523 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1524 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1525 * testsuite/ld-x86-64/load1b-nacl.d: Updated.
1526 * testsuite/ld-x86-64/load1b.d: Likewise.
1527 * testsuite/ld-x86-64/plt-main-bnd.dd: Likewise.
1528 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1529 * testsuite/ld-x86-64/pr20830a.d: Update the .plt.got section
1530 with func@plt.
1531 * testsuite/ld-x86-64/pr20830b.d: Likewise.
1532 * testsuite/ld-x86-64/pr21038a.d: Likewise.
1533 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1534 * testsuite/ld-x86-64/mpx.exp: Add some -z now tests.
1535 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1536
1537 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
1538
1539 * testsuite/ld-i386/i386.exp: Add some -z now tests.
1540 * testsuite/ld-i386/plt-pic2.dd: New file.
1541 * testsuite/ld-i386/plt2.dd: Likewise.
1542 * testsuite/ld-i386/plt2.rd: Likewise.
1543 * testsuite/ld-i386/plt2.s: Likewise.
1544 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
1545 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1546 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1547 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1548 * testsuite/ld-i386/pr20830.d: Update the .plt.got section
1549 with func@plt.
1550
1551 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
1552
1553 * testsuite/ld-arm/arm-elf.exp
1554 (Secure gateway import library generation): Check e_type field
1555 of import library and executable produced.
1556 * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
1557
1558 2017-04-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1559
1560 PR ld/21404
1561 * testsuite/ld-avr/pr21404-1.d: New test.
1562 * testsuite/ld-avr/pr21404-1.s: New test.
1563 * testsuite/ld-avr/pr21404-2.d: New test.
1564 * testsuite/ld-avr/pr21404-2.s: New test.
1565 * testsuite/ld-avr/pr21404-3.d: New test.
1566 * testsuite/ld-avr/pr21404-3.s: New test.
1567 * testsuite/ld-avr/pr21404-4.d: New test.
1568 * testsuite/ld-avr/pr21404-4.s: New test.
1569 * testsuite/ld-avr/pr21404-5.d: New test.
1570 * testsuite/ld-avr/pr21404-5.s: New test.
1571 * testsuite/ld-avr/pr21404-6.d: New test.
1572 * testsuite/ld-avr/pr21404-6.s: New test.
1573 * testsuite/ld-avr/pr21404-7.d: New test.
1574 * testsuite/ld-avr/pr21404-7.s: New test.
1575 * testsuite/ld-avr/pr21404-8.d: New test.
1576 * testsuite/ld-avr/pr21404-8.s: New test.
1577
1578 2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
1579
1580 * testsuite/ld-mips-elf/mips16-pcrel-0.d: New test.
1581 * testsuite/ld-mips-elf/mips16-pcrel-1.d: New test.
1582 * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: New test.
1583 * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: New test.
1584 * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: New test.
1585 * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: New test.
1586 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: New test.
1587 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: New test.
1588 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1589
1590 2017-05-03 H.J. Lu <hongjiu.lu@intel.com>
1591
1592 * testsuite/ld-elf/pr21384.d: Adjusted to accommodate
1593 additional dynamic symbols on some targets.
1594
1595 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
1596
1597 * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test.
1598 * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test.
1599 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New
1600 test.
1601 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New
1602 test.
1603 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New
1604 test.
1605 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
1606 New test.
1607 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New
1608 test.
1609 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New
1610 test.
1611 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
1612 New test.
1613 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1614
1615 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
1616
1617 * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
1618 "TLS without PLT (1)" and "TLS without PLT (3)".
1619 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
1620 to "TLS without PLT (3)".
1621
1622 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
1623
1624 PR ld/21384
1625 * testsuite/ld-elf/pr21384.d: New file.
1626 * testsuite/ld-elf/pr21384.dl: Likewise.
1627 * testsuite/ld-elf/pr21384.ld: Likewise.
1628 * testsuite/ld-elf/pr21384.s: Likewise.
1629
1630 2017-05-01 H.J. Lu <hongjiu.lu@intel.com>
1631
1632 * testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
1633 is working GNU2 TLS support.
1634 * testsuite/ld-x86-64/tls.exp: Likewise.
1635 * testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
1636
1637 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
1638
1639 * testsuite/config/default.exp (GNU2_CFLAGS): New. Set
1640 to -mtls-dialect=gnu2 if target compiler supports it.
1641 * testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
1642 * testsuite/ld-x86-64/tls.exp: Likewise.
1643 * testsuite/ld-i386/tlsdesc1a.c: New file.
1644 * testsuite/ld-i386/tlsdesc1b.c: Likewise.
1645 * testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
1646 * testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
1647
1648 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
1649
1650 * testsuite/ld-elf/shared.exp: Add run-time tests for -z now.
1651 * testsuite/ld-i386/tls.exp: Likewise.
1652 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1653 * testsuite/ld-x86-64/tls.exp: Likewise.
1654
1655 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
1656
1657 * testsuite/ld-x86-64/pr21038a.d: Update DW_CFA_nop paddings
1658 in .eh_frame section.
1659 * testsuite/ld-x86-64/pr21038c.d: Update .eh_frame order.
1660
1661 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
1662
1663 * testsuite/ld-i386/tlsdesc2.d: New test.
1664 * testsuite/ld-x86-64/tlsdesc2.d: Likewise.
1665
1666 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
1667
1668 PR ld/21334
1669 * testsuite/ld-mips-elf/pr21334.dd: New test.
1670 * testsuite/ld-mips-elf/pr21334.gd: New test.
1671 * testsuite/ld-mips-elf/pr21334.ld: New test linker script.
1672 * testsuite/ld-mips-elf/pr21334.s: New test source.
1673 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1674
1675 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1676
1677 * testsuite/ld-x86-64/no-plt.exp: Also check no-plt-1e.nd.
1678 * testsuite/ld-x86-64/no-plt-1e.nd: New file.
1679
1680 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1681
1682 * testsuite/ld-i386/pr12570a.d: Skip for nacl targets.
1683 * testsuite/ld-i386/pr12570b.d: Likewise.
1684
1685 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
1686
1687 PR ld/20815
1688 * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
1689
1690 2017-04-24 Jose E. Marchesi <jose.marchesi@oracle.com>
1691
1692 * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
1693 instead of `rett' in V9.
1694 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1695 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1696
1697 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
1698
1699 PR ld/21402
1700 * testsuite/ld-elf/indirect.exp: Don't skip PIE indirect5 and
1701 indirect6 tests on i386.
1702
1703 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
1704
1705 PR ld/19617
1706 PR ld/21086
1707 * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
1708 * testsuite/ld-elf/pr19617b.d: Likewise.
1709 * testsuite/ld-elf/pr19617c.d: Likewise.
1710 *testsuite/ld-i386/pr19636-4d.d: Likewise.
1711 * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
1712 with --export-dynamic.
1713 * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
1714 with -E.
1715
1716 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
1717
1718 PR ld/21402
1719 * testsuite/ld-elf/indirect.exp: Pass $NOPIE_LDFLAGS and
1720 $NOPIE_CFLAGS to non-PIE indirect5 and indirect6 tests. Skip
1721 PIE indirect5 and indirect6 tests on i386.
1722
1723 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
1724
1725 * testsuite/ld-mips-elf/mips-elf.exp: Join `__ehdr_start' tests.
1726
1727 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
1728
1729 PR ld/21382
1730 * plugin.c (is_visible_from_outside): Symbol may be visible
1731 from outside if dynamic_ref_after_ir_def is set.
1732 (plugin_notice): Set dynamic_ref_after_ir_def if the symbol is
1733 defined in an IR object and referenced in a dynamic object.
1734 * testsuite/ld-plugin/lto.exp: Run PR ld/21382 tests.
1735 * testsuite/ld-plugin/pr21382a.c: New file.
1736 * testsuite/ld-plugin/pr21382b.c: Likewise.
1737
1738 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
1739
1740 PR ld/21401
1741 * testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
1742 -z now.
1743
1744 2017-04-19 Alan Modra <amodra@gmail.com>
1745
1746 * ld.texinfo (dynamic-undefined-weak): Document.
1747 (nodynamic-undefined-weak): Document that this option now can
1748 be used with shared libs.
1749 * emulparams/dynamic_undefined_weak.sh: Support -z
1750 dynamic-undefined-weak.
1751 * emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
1752 * testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
1753 (undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
1754 and -z nodynamic-undefined-weak tests.
1755 * Makefile.am: Update powerpc dependencies.
1756 * Makefile.in: Regenerate.
1757
1758 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
1759
1760 PR ld/21389
1761 * testsuite/ld-elf/pr21389.map: New file.
1762 * testsuite/ld-elf/pr21389.s: Likewise.
1763 * testsuite/ld-elf/pr21389a.d: Likewise.
1764 * testsuite/ld-elf/pr21389b.d: Likewise.
1765 * testsuite/ld-elf/pr21389c.d: Likewise.
1766
1767 2017-04-17 Alan Modra <amodra@gmail.com>
1768
1769 * testsuite/ld-elf/indirect5a.c,
1770 * testsuite/ld-elf/indirect5b.c,
1771 * testsuite/ld-elf/indirect5.map,
1772 * testsuite/ld-elf/indirect5.out: New test.
1773 * testsuite/ld-elf/indirect6a.c: Likewise.
1774 * testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
1775 Run new tests and check dynsyms.
1776
1777 2017-04-11 Alan Modra <amodra@gmail.com>
1778
1779 PR 21274
1780 PR 18466
1781 * emultempl/pe.em (pe_find_data_imports): Don't use fixed size
1782 symbol buffer. Instead, xmalloc max size needed with space for
1783 prefix. Wrap overlong lines. Formatting. Pass symbol buffer
1784 copy of name to pe_walk_relocs_of_symbol.
1785 (make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
1786 * emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
1787 (make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
1788 Use bfd_get_signed_* and remove unnecessary casts. Formatting.
1789 * pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
1790 callback.
1791 (make_import_fixup_mark): Add "name" param. Make use of prefix
1792 space rather than xmalloc here.
1793 (pe_create_import_fixup): Likewise.
1794 * pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
1795 (pe_create_import_fixup): Likewise.
1796 * pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
1797 (pep_create_import_fixup): Likewise.
1798
1799 2017-04-10 Nick Clifton <nickc@redhat.com>
1800
1801 * ld.texinfo (--strip-discarded): Document.
1802 (--embedded-relocs): Document.
1803 (--spare-dynamic-tags): Document.
1804 (--task-link): Document.
1805
1806 2017-04-10 Alan Modra <amodra@gmail.com>
1807
1808 PR 21287
1809 * testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
1810 * testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
1811 section types.
1812 * testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
1813 warnings about "ignoring incorrect section type".
1814 (run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
1815
1816 2017-04-10 Alan Modra <amodra@gmail.com>
1817
1818 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
1819 sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
1820 remote_file host exists rather than file exists.
1821
1822 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
1823
1824 PR ld/21090
1825 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
1826 NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
1827 version of the test.
1828
1829 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
1830
1831 PR ld/19579
1832 PR ld/21306
1833 * testsuite/ld-elf/pr19579a.c (main): Updated.
1834
1835 2017-04-07 Nick Clifton <nickc@redhat.com>
1836
1837 PR 21090
1838 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
1839 disable PIE for the non-pie version of the test.
1840
1841 2017-04-07 Alan Modra <amodra@gmail.com>
1842
1843 * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
1844
1845 2017-04-07 gingold <gingold@gingold-Precision-7510>
1846
1847 * testsuite/ld-pe/pe.exp: New test.
1848 * testsuite/ld-pe/weakdef-1.s: New test source.
1849 * testsuite/ld-pe/weakdef-1.d: New test.
1850
1851 2017-04-07 Alan Modra <amodra@gmail.com>
1852
1853 * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
1854 * testsuite/ld-elf/mbind1b.d: Likewise.
1855 * testsuite/ld-elf/mbind1c.d: Likewise.
1856
1857 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
1858
1859 PR ld/21233
1860 * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
1861 indentation issue introduced with last commit.
1862
1863 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
1864
1865 PR ld/21233
1866 * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
1867 first test for cris*-*-*.
1868
1869 2017-04-04 Maciej W. Rozycki <macro@imgtec.com>
1870
1871 PR ld/21233
1872 * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
1873 * testsuite/ld-elf/pr21233.sd: New test.
1874 * testsuite/ld-elf/pr21233-l.sd: New test.
1875 * testsuite/ld-elf/pr21233.ld: New test linker script.
1876 * testsuite/ld-elf/pr21233-e.ld: New test linker script.
1877 * testsuite/ld-elf/pr21233.s: New test source.
1878 * testsuite/ld-elf/pr21233-l.s: New test source.
1879 * testsuite/ld-elf/shared.exp: Run the new tests.
1880
1881 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
1882
1883 * NEWS: Mention support for ELF SHF_GNU_MBIND and
1884 PT_GNU_MBIND_XXX.
1885 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1886 input GNU_MBIND sections with the same type, attributes and
1887 sh_info field into a single output GNU_MBIND section.
1888 * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
1889 * testsuite/ld-elf/mbind1.s: New file.
1890 * testsuite/ld-elf/mbind1a.d: Likewise.
1891 * testsuite/ld-elf/mbind1b.d: Likewise.
1892 * testsuite/ld-elf/mbind1c.d: Likewise.
1893 * testsuite/ld-elf/mbind2a.s: Likewise.
1894 * testsuite/ld-elf/mbind2b.c: Likewise.
1895
1896 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
1897
1898 * NEWS: Mention support for ELF GNU program properties.
1899 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1900 ELF setup_gnu_properties.
1901 * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
1902 * testsuite/ld-i386/pass.c: New file.
1903 * testsuite/ld-i386/property-1.r: Likewise.
1904 * testsuite/ld-i386/property-2.r: Likewise.
1905 * testsuite/ld-i386/property-3.r: Likewise.
1906 * testsuite/ld-i386/property-4.r: Likewise.
1907 * testsuite/ld-i386/property-5.r: Likewise.
1908 * testsuite/ld-i386/property-6.r: Likewise.
1909 * testsuite/ld-i386/property-6a.c: Likewise.
1910 * testsuite/ld-i386/property-6b.c: Likewise.
1911 * testsuite/ld-i386/property-6c.S: Likewise.
1912 * testsuite/ld-i386/property-7.r: Likewise.
1913 * testsuite/ld-i386/property-no-copy.S: Likewise.
1914 * testsuite/ld-i386/property-stack.S: Likewise.
1915 * testsuite/ld-i386/property-unsorted-1.S: Likewise.
1916 * testsuite/ld-i386/property-unsorted-2.S: Likewise.
1917 * testsuite/ld-i386/property-x86-1.S: Likewise.
1918 * testsuite/ld-i386/property-x86-2.S: Likewise.
1919 * testsuite/ld-x86-64/pass.c: Likewise.
1920 * testsuite/ld-x86-64/property-1.r: Likewise.
1921 * testsuite/ld-x86-64/property-2.r: Likewise.
1922 * testsuite/ld-x86-64/property-3.r: Likewise.
1923 * testsuite/ld-x86-64/property-4.r: Likewise.
1924 * testsuite/ld-x86-64/property-5.r: Likewise.
1925 * testsuite/ld-x86-64/property-6.r: Likewise.
1926 * testsuite/ld-x86-64/property-6a.c: Likewise.
1927 * testsuite/ld-x86-64/property-6b.c: Likewise.
1928 * testsuite/ld-x86-64/property-6c.S: Likewise.
1929 * testsuite/ld-x86-64/property-7.r: Likewise.
1930 * testsuite/ld-x86-64/property-no-copy.S: Likewise.
1931 * testsuite/ld-x86-64/property-stack.S: Likewise.
1932 * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
1933 * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
1934 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
1935 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
1936 * testsuite/ld-x86-64/x86-64.exp: Run property tests for
1937 Linux/x86-64.
1938
1939 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
1940
1941 PR ld/16044
1942 * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
1943 testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
1944
1945 2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
1946
1947 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
1948 false for nios2-*-elf.
1949
1950 2017-03-21 gingold <gingold@gingold-Precision-7510>
1951
1952 * ldlang.c (lang_check_section_addresses): Check only for
1953 allocated sections.
1954
1955 2017-03-17 Alan Modra <amodra@gmail.com>
1956
1957 * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
1958
1959 2017-03-15 Tristan Gingold <gingold@adacore.com>
1960
1961 * testsuite/ld-checks/checks.exp (overflow_check): Disable for
1962 non-elf targets.
1963
1964 2017-03-14 H.J. Lu <hongjiu.lu@intel.com>
1965
1966 * ldlang.c (lang_check_section_addresses): Use addr_mask to
1967 check VMA and LMA.
1968
1969 2017-03-13 Nick Clifton <nickc@redhat.com>
1970
1971 PR binutils/21202
1972 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
1973
1974 2017-03-13 Tristan Gingold <gingold@adacore.com>
1975
1976 * ldlang.c (lang_check_section_addresses): Check for address space
1977 overflow.
1978 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
1979 * testsuite/ld-checks/over.s: New test source.
1980 * testsuite/ld-checks/over.d: New test.
1981 * testsuite/ld-checks/over2.s: New test source.
1982 * testsuite/ld-checks/over2.d: New test.
1983
1984 2017-03-13 Alexey Neyman <stilor@att.net>
1985
1986 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
1987 cpu, not host.
1988
1989 2017-03-11 Alan Modra <amodra@gmail.com>
1990
1991 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
1992 sysroot for -rpath search.
1993
1994 2017-03-11 Alan Modra <amodra@gmail.com>
1995
1996 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
1997 Only prefix absolute paths with sysroot. Handle DOS paths.
1998 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
1999 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
2000 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
2001 searches. Rename variable. Simplify get_runpath search.
2002
2003 2017-03-11 Alan Modra <amodra@gmail.com>
2004
2005 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
2006 than -rdynamic.
2007
2008 2017-03-11 Alan Modra <amodra@gmail.com>
2009
2010 * ld.texinfo (Orphan Sections): Mention that not all targets
2011 handle orphans well.
2012 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
2013 * testsuite/ld-elf/orphan-10.d: Likewise.
2014
2015 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 * ldlang.c (lang_size_sections_1): Shortcut loop only after
2018 tracking changes to the default regions LMA.
2019 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
2020 * testsuite/ld-elf/orphan-10.d: New file.
2021 * testsuite/ld-elf/orphan-10.s: New file.
2022 * NEWS: Mention change in behaviour.
2023
2024 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2025
2026 * ldlang.c (lang_leave_output_section_statement): Move lma_region
2027 logic to...
2028 (lang_propagate_lma_regions): ...this new function.
2029 (lang_process): Call new function.
2030 * testsuite/ld-elf/orphan-9.d: New file.
2031 * testsuite/ld-elf/orphan-9.ld: New file.
2032 * testsuite/ld-elf/orphan-9.s: New file.
2033 * NEWS: Mention change in behaviour.
2034
2035 2017-03-07 Alan Modra <amodra@gmail.com>
2036
2037 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
2038 is not an assert before referencing defsym.
2039
2040 2017-03-05 Alan Modra <amodra@gmail.com>
2041
2042 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
2043 * testsuite/ld-elf/eh6.d: Likewise.
2044 * testsuite/ld-alpha/tlsbin.dd: Likewise.
2045 * testsuite/ld-alpha/tlsbin.td: Likewise.
2046 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
2047 * testsuite/ld-alpha/tlspic.dd: Likewise.
2048 * testsuite/ld-alpha/tlspic.rd: Likewise.
2049 * testsuite/ld-alpha/tlspic.sd: Likewise.
2050 * testsuite/ld-alpha/tlspic.td: Likewise.
2051 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
2052 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
2053 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
2054 * testsuite/ld-x86-64/pr20830a.d: Likewise.
2055 * testsuite/ld-x86-64/pr21038a.d: Likewise.
2056 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2057 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2058
2059 2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
2060
2061 PR 12969
2062 * pe-dll.c (generate_edata): Fail if the input file(s) require too
2063 many ordinals.
2064
2065 2017-03-02 Alan Modra <amodra@gmail.com>
2066
2067 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
2068 and dl3.cc.
2069
2070 2017-02-28 Alan Modra <amodra@gmail.com>
2071
2072 * testsuite/ld-elf/merge.d: xfail for nios.
2073
2074 2017-02-28 Alan Modra <amodra@gmail.com>
2075
2076 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
2077 limits of addpcis range.
2078
2079 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
2080
2081 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
2082 instructions.
2083 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
2084 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
2085
2086 2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
2087
2088 PR target/20849
2089 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
2090 (.rodata): New section.
2091 (.data): Remove .rodata*.
2092
2093 2017-02-25 Alan Modra <amodra@gmail.com>
2094
2095 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
2096 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
2097 defining HPUX where necessary. Define HPUX for implib tests.
2098 * testsuite/ld-elf/comm-data4.d: Run for hpux.
2099 * testsuite/ld-elf/endsym.d: Likewise.
2100 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
2101 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
2102 * testsuite/ld-elf/comm-data5.s: Likewise.
2103 * testsuite/ld-elf/endsym.s: Likewise.
2104 * testsuite/ld-elf/pr14170c.s: Likewise.
2105 * testsuite/ld-elf/symbol3.s: Likewise.
2106 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
2107 in first column.
2108 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
2109 * testsuite/ld-elf/warn3.d: Run for hpux.
2110 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
2111 * testsuite/ld-scripts/rgn-at11.d: Likewise.
2112 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
2113
2114 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
2115
2116 * testsuite/ld-elf/ver_def.vd: New test.
2117 * testsuite/ld-elf/ver_def-tic6x.vd: New test.
2118 * testsuite/ld-elf/ver_def.ld: New test linker script.
2119 * testsuite/ld-elf/ver_def.ver: New test version script.
2120 * testsuite/ld-elf/ver_def.s: New test source.
2121 * testsuite/ld-elf/readelf.exp: New test script.
2122
2123 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2124
2125 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
2126 option.
2127 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
2128 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
2129 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
2130
2131 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
2132
2133 * testsuite/ld-mips-elf/jalr4.dd: New test.
2134 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
2135
2136 2017-02-23 Alan Modra <amodra@gmail.com>
2137
2138 PR 20744
2139 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
2140 each group.
2141 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
2142 and sdarel reloc fix.
2143
2144 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
2145
2146 PR ld/20828
2147 * testsuite/ld-elf/pr20828-d.sd: New test.
2148 * testsuite/ld-elf/pr20828-e.sd: New test.
2149 * testsuite/ld-elf/pr20828-v.od: New test.
2150 * testsuite/ld-elf/pr20828-v.ver: New test version script.
2151 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
2152 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
2153 `.gnu.version_d'.
2154 * testsuite/ld-elf/shared.exp: Run the new tests.
2155
2156 2017-02-21 Nick Clifton <nickc@redhat.com>
2157
2158 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
2159 about non-void function returning without a result.
2160
2161 2017-02-17 Alan Modra <amodra@gmail.com>
2162
2163 PR 15041
2164 * scripttempl/pe.sc: Don't combine sections for ld -r.
2165 * scripttempl/pep.sc: Likewise.
2166
2167 2017-02-17 Alan Modra <amodra@gmail.com>
2168
2169 PR 21099
2170 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
2171 rather than using OTHER_SECTIONS.
2172 * emulparams/elf32mt.sh: Likewise.
2173 * emulparams/elf32rx.sh: Likewise.
2174 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
2175 define __rl78_abs__.
2176 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
2177 rather than using OTHER_SECTIONS.
2178 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
2179 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
2180 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
2181 * emulparams/shelf_uclinux.sh: Likewise.
2182 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
2183 to define _stack, not OTHER_SECTIONS.
2184 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
2185 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
2186 * scripttempl/arclinux.sc: Likewise.
2187 * scripttempl/elf64hppa.sc: Likewise.
2188 * scripttempl/elfxtensa.sc: Likewise.
2189 * scripttempl/nds32elf.sc: Likewise.
2190 * scripttempl/armbpabi.sc: Move STACK before debug sections.
2191 * scripttempl/elf_chaos.sc: Likewise.
2192 * scripttempl/elfarc.sc: Delete STACK.
2193 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
2194 TINY_BSS_SECTION, and .stack before debug sections.
2195
2196 2017-02-17 Nick Clifton <nickc@redhat.com>
2197
2198 PR ld/20825
2199 * ld.texinfo (Options): Add missing @item entry for --pop-state.
2200
2201 2017-02-17 Alan Modra <amodra@gmail.com>
2202
2203 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
2204 multiple definition errors.
2205
2206 2017-02-17 Alan Modra <amodra@gmail.com>
2207
2208 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
2209 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
2210
2211 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2212
2213 * testsuite/ld-elf/shared.exp: Update expected results.
2214 * testsuite/ld-elf/dwarf2.err: Likewise
2215
2216 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2217
2218 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
2219 * testsuite/ld-elf/dwarf2.err: New file.
2220 * testsuite/ld-elf/dwarf2a.c: New file.
2221 * testsuite/ld-elf/dwarf2b.c: New file.
2222 * testsuite/ld-elf/dwarf3.c: New file.
2223 * testsuite/ld-elf/dwarf3.err: New file.
2224
2225 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
2226
2227 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
2228 error, warning_output, and error_output actions. Remove separate
2229 warnings parameter.
2230 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
2231 'warning' action.
2232 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
2233
2234 2017-02-16 Alan Modra <amodra@gmail.com>
2235
2236 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
2237 from void pointers to function pointers.
2238 * testsuite/ld-elf/pr18718.c: Update to suit.
2239 * testsuite/ld-elf/pr18720a.c: Update to suit.
2240
2241 2017-02-16 Alan Modra <amodra@gmail.com>
2242
2243 PR 21000
2244 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
2245 * testsuite/ld-elf/loadaddr2.d: Likewise.
2246 * testsuite/ld-elf/loadaddr3a.d: Likewise.
2247 * testsuite/ld-scripts/rgn-at5.d: Likewise.
2248
2249 2017-02-16 Alan Modra <amodra@gmail.com>
2250
2251 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
2252 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
2253
2254 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
2255
2256 PR ld/21168
2257 * testsuite/ld-i386/i386.exp: Run pr21168.
2258 * testsuite/ld-i386/pr21168a.c: New file.
2259 * testsuite/ld-i386/pr21168b.S: Likewise.
2260
2261 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
2262
2263 PR ld/20244
2264 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
2265 pr20244-4c.
2266 * testsuite/ld-i386/pr20244-4.s: New file.
2267 * testsuite/ld-i386/pr20244-4a.d: Likewise.
2268 * testsuite/ld-i386/pr20244-4b.d: Likewise.
2269 * testsuite/ld-i386/pr20244-4c.d: Likewise.
2270
2271 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
2272
2273 * ldmisc.c (vfinfo): Don't print the function name again either
2274 if no source file name has been found both now and previously.
2275 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
2276 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
2277 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
2278 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
2279 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
2280 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
2281 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
2282 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
2283 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
2284 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
2285 Likewise.
2286 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
2287 Likewise.
2288 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
2289 Likewise.
2290 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
2291 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
2292 Likewise.
2293 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
2294 Likewise.
2295 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
2296 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
2297 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
2298 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
2299 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
2300 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
2301 * testsuite/ld-powerpc/tocopt.out: Likewise.
2302 * testsuite/ld-powerpc/tocopt7.out: Likewise.
2303
2304 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
2305
2306 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
2307
2308 2017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
2309
2310 * testsuite/ld-scripts/sysroot-prefix.exp
2311 (get_base_dir_for_scripts): New function.
2312 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
2313
2314 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
2315
2316 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
2317 _gp to __global_pointer$
2318
2319 2017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * configure.tgt (arc*-*-linux*): Change the default linker
2322 emulation based on --with-cpu selection.
2323 * NEWS: Mention new configuration option.
2324
2325 2017-02-06 Jiong Wang <jiong.wang@arm.com>
2326
2327 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
2328 "readelf -w".
2329
2330 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2331
2332 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
2333
2334 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
2335
2336 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
2337 s/regexp/regex/.
2338
2339 2017-02-02 Jiong Wang <jiong.wang@arm.com>
2340
2341 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
2342 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
2343 dlopen support into "dlopen_run_tests". These tests include dl1*main
2344 and dl6*main.
2345 (dlopen_run_tests): New and only run it when check_libdl_available
2346 returns true. XFAIL on *-*-netbsdelf*.
2347
2348 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
2349
2350 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
2351 presentation of relocation addends.
2352 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
2353 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
2354 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
2355
2356 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
2357
2358 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
2359 in `.tdata' section.
2360 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
2361 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
2362
2363 2017-02-01 Jiong Wang <jiong.wang@arm.com>
2364
2365 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
2366 Append $board_cflags to link commands.
2367
2368 2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
2369
2370 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
2371 check for digit in second decimal place.
2372
2373 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
2374
2375 PR ld/20828
2376 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
2377 indentation.
2378
2379 2017-01-31 Nick Clifton <nickc@redhat.com>
2380
2381 * ldmain.c (add_archive_element): Eliminate string buffer.
2382 * ldlang.c (lang_print_asneeded): Likewise.
2383
2384 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
2385
2386 * emultempl/mipself.em (ignore_branch_isa): New variable.
2387 (mips_create_output_section_statements): Rename
2388 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
2389 add `ignore_branch_isa' argument.
2390 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
2391 OPTION_NO_IGNORE_BRANCH_ISA enum values.
2392 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
2393 "no-ignore-branch-isa" options.
2394 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
2395 `--no-ignore-branch-isa'.
2396 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
2397 OPTION_NO_IGNORE_BRANCH_ISA.
2398
2399 * ld.texinfo (Options specific to MIPS targets): Add
2400 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
2401 (ld and the MIPS family): Likewise.
2402
2403 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
2404 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
2405 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
2406 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
2407 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
2408 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
2409 test.
2410 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
2411 test.
2412 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
2413
2414 2017-01-29 Hans-Peter Nilsson <hp@axis.com>
2415
2416 PR binutils/19935
2417 Fix long-standing buglet and fallout from now-default initfini-array.
2418 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
2419 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
2420
2421 2017-01-27 Jiong Wang <jiong.wang@arm.com>
2422
2423 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
2424 arm*-*-eabi*.
2425
2426 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
2427 Nick Clifton <nickc@redhat.com>
2428
2429 PR 20343
2430 * ld.texinfo (Options): Extend documentation of the --plugin
2431 option. Include a description of where the plugins should be
2432 located.
2433
2434 2017-01-27 Nick Clifton <nickc@redhat.com>
2435
2436 * po/sr.po: New Serbian translation.
2437 * configure.ac (ALL_LINGUAS): Add sr.
2438 * configure: Regenerate.
2439
2440 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2441
2442 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
2443 (bfin-*-rtems*): Move to (bfin*-*-elf*).
2444 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
2445 (m68*-*-rtems*): Move to (m68*-*-elf*).
2446 (mips*-*-rtems*): Move to (mips*-*-elf*).
2447 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
2448 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
2449 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
2450 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
2451
2452 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
2453
2454 * configure.tgt (h8300-*-rtemscoff*): Remove.
2455 (i960-*-rtems*): Likewise.
2456 (m68*-*-rtemscoff*): Likewise.
2457 (sh-*-rtemscoff*): Likewise.
2458
2459 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
2460
2461 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
2462 add implicit version nodes if an anonymous version tag is being
2463 used.
2464
2465 2017-01-24 Jiong Wang <jiong.wang@arm.com>
2466
2467 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
2468 "Compile 8a", "Compile 8b"...
2469 (lto_compile_elf_tests): ...to here. Always run these tests.
2470 (lto_run_elf_tests): Move "LTO 7"...
2471 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
2472 environment where share library is supported.
2473
2474 2017-01-24 Alan Modra <amodra@gmail.com>
2475
2476 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
2477 and symbols.
2478 * testsuite/ld-powerpc/tlsexe.d: Likewise.
2479 * testsuite/ld-powerpc/tlsexe.g: Likewise.
2480
2481 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
2482
2483 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
2484 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
2485 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
2486 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
2487 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
2488 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
2489 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
2490 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
2491 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
2492 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
2493 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
2494 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
2495 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
2496
2497 2017-01-23 Nick Clifton <nickc@redhat.com>
2498
2499 * po/ga.po: Updated Irish translation.
2500
2501 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
2502
2503 PR ld/20828
2504 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
2505
2506 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
2507
2508 PR ld/20828
2509 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
2510 `fdata' and `edata' respectively.
2511 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
2512 * testsuite/ld-elf/pr20828-a.sd: Likewise.
2513 * testsuite/ld-elf/pr20828-b.sd: Likewise.
2514 * testsuite/ld-elf/pr20828-c.sd: Likewise.
2515
2516 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
2517
2518 PR ld/20828
2519 * testsuite/ld-elf/pr20828-1.sd: Remove test.
2520 * testsuite/ld-elf/pr20828-a.sd: New test.
2521 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
2522 * testsuite/ld-elf/pr20828-b.sd: ... this.
2523 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
2524 * testsuite/ld-elf/pr20828-c.sd: ... this.
2525 * testsuite/ld-elf/shared.exp: Adjust accordingly.
2526
2527 2017-01-23 Jiong Wang <jiong.wang@arm.com>
2528
2529 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
2530 board_cflags as gcc is used as linker driver.
2531 * testsuite/ld-unique/unique.exp: Likewise
2532
2533 2017-01-20 Jiong Wang <jiong.wang@arm.com>
2534
2535 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
2536 * testsuite/ld-aarch64/func-in-so.s: New test source file.
2537 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
2538 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
2539
2540 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
2543
2544 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
2545
2546 PR ld/20995
2547 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
2548 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
2549
2550 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
2551
2552 PR ld/20828
2553 * testsuite/ld-elf/pr20828-1.sd: New test.
2554 * testsuite/ld-elf/pr20828-2a.sd: New test.
2555 * testsuite/ld-elf/pr20828-2b.sd: New test.
2556 * testsuite/ld-elf/pr20828.ld: New test linker script.
2557 * testsuite/ld-elf/pr20828.ver: New test version script.
2558 * testsuite/ld-elf/pr20828.s: New test source.
2559 * testsuite/ld-elf/shared.exp: Run the new test.
2560
2561 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
2562
2563 PR gas/20649
2564 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
2565 relocation pairing link test.
2566
2567 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
2568
2569 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
2570 uniqeue.exp, as not all targets have such support.
2571
2572 2017-01-16 Nick Clifton <nickc@redhat.com>
2573
2574 * po/sv.po: Updated Swedish translation.
2575
2576 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
2577
2578 PR ld/21038
2579 * testsuite/ld-x86-64/pr21038b.d: Updated.
2580 * testsuite/ld-x86-64/pr21038c.d: New file.
2581 * testsuite/ld-x86-64/pr21038c.s: Likewise.
2582 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
2583
2584 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
2585
2586 PR ld/21038
2587 * testsuite/ld-x86-64/pr21038a.d: New file.
2588 * testsuite/ld-x86-64/pr21038a.s: Likewise.
2589 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2590 * testsuite/ld-x86-64/pr21038b.s: Likewise.
2591 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
2592
2593 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
2594
2595 * configure.tgt: Add entries for x86-redox and x86_64-redox.
2596
2597 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2598
2599 * testsuite/ld-x86-64/pr20830b.d: Updated.
2600
2601 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2602
2603 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
2604 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
2605 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
2606 * testsuite/ld-x86-64/pr20830b.d: New file.
2607 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
2608 Run pr20830b.
2609
2610 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2611
2612 PR ld/20830
2613 * testsuite/ld-i386/i386.exp: Run pr20830.
2614 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2615 * testsuite/ld-i386/pr20830.d: New file.
2616 * testsuite/ld-i386/pr20830.s: Likewise.
2617 * testsuite/ld-x86-64/pr20830.d: Likewise.
2618 * testsuite/ld-x86-64/pr20830.s: Likewise.
2619
2620 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
2621
2622 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
2623 -Wl,--as-needed to $CC.
2624 * testsuite/ld-i386/tls.exp: Likewise.
2625
2626 2017-01-10 Nick Clifton <nickc@redhat.com>
2627
2628 * po/sv.po: Updated Swedish translation.
2629
2630 2016-12-09 Graham Markall <graham.markall@embecosm.com>
2631 Andrew Burgess <andrew.burgess@embecosm.com>
2632
2633 * Makefile.am: Add earclinux_nps.c target and add to
2634 ALL_EMULATION_SOURCES.
2635 * Makefile.in: Likewise, regenerated.
2636 * configure.tgt: Add arclinux_nps as an extra emulation for
2637 arc*-*-elf* and arc*-*-linux*.
2638 * emulparams/arc-nps.sh: New file.
2639 * emulparams/arclinux_nps.sh: New file.
2640 * testsuite/ld-arc/arclinux-nps.d,
2641 * testsuite/ld-arc/arclinux-nps.s: New test.
2642
2643 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
2644
2645 PR 20958
2646 * ldlex.l (option): Add noyywrap
2647 (yywrap): Delete.
2648 * ldlex.h (yywrap): Delete prototype.
2649
2650 2017-01-04 Alan Modra <amodra@gmail.com>
2651
2652 * testsuite/ld-elf/audit.exp: Check for shared lib support.
2653 * testsuite/ld-elf/compress.exp: Likewise.
2654 * testsuite/ld-elf/dwarf.exp: Likewise.
2655 * testsuite/ld-elf/shared.exp: Likewise.
2656 * testsuite/ld-elf/wrap.exp: Likewise.
2657 * testsuite/ld-ifunc/ifunc.exp: Likewise.
2658 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
2659
2660 2017-01-03 Alan Modra <amodra@gmail.com>
2661
2662 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
2663 allow test to continue after compilation errors.
2664 (run_cc_link_tests): Likewise.
2665
2666 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
2667
2668 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
2669 (epruelf.c): Remove unneeded dependencies.
2670 * Makefile.in: Regenerate
2671
2672 2017-01-03 Alan Modra <amodra@gmail.com>
2673
2674 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
2675 to various tests.
2676 * testsuite/ld-elfweak/elfweak.exp: Likewise.
2677 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
2678
2679 2017-01-03 Alan Modra <amodra@gmail.com>
2680
2681 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
2682 * testsuite/ld-pie/pie.exp: Likewise.
2683 * testsuite/ld-plugin/lto.exp: Likewise.
2684
2685 2017-01-02 Alan Modra <amodra@gmail.com>
2686
2687 * Makefile.am (bootstrap): Delete rule.
2688 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
2689 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
2690 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
2691 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
2692 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
2693 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
2694 * Makefile.in: Regenerate.
2695 * configure: Regenerate.
2696 * testsuite/config/default.exp (get_link_files): Delete.
2697 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
2698 define.
2699 (ld_simple_link): Delete.
2700 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
2701 (default_ld_simple_link): Rename to default_ld_link.
2702 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
2703 (run_ld_link_tests): Use ld_link, not ld_simple_link.
2704 (run_cc_link_tests): Likewise.
2705 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
2706 Don't run exe when not native, and return unsupported.
2707 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
2708 Link ld1 etc. using $CC.
2709 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
2710 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
2711 * testsuite/ld-cygwin/exe-export.exp: Likewise.
2712 * testsuite/ld-elf/binutils.exp: Likewise.
2713 * testsuite/ld-elf/eh-group.exp: Likewise.
2714 * testsuite/ld-elf/exclude.exp: Likewise.
2715 * testsuite/ld-elf/frame.exp: Likewise.
2716 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
2717 * testsuite/ld-elf/tls_common.exp: Likewise.
2718 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
2719 * testsuite/ld-fastcall/fastcall.exp: Likewise.
2720 * testsuite/ld-gc/gc.exp: Likewise.
2721 * testsuite/ld-ifunc/binutils.exp: Likewise.
2722 * testsuite/ld-mep/mep.exp: Likewise.
2723 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
2724 * testsuite/ld-mn10300/mn10300.exp: Likewise.
2725 * testsuite/ld-nios2/nios2.exp: Likewise.
2726 * testsuite/ld-pe/pe-compile.exp: Likewise.
2727 * testsuite/ld-pe/pe-run.exp: Likewise.
2728 * testsuite/ld-pe/pe-run2.exp: Likewise.
2729 * testsuite/ld-plugin/plugin.exp: Likewise.
2730 * testsuite/ld-scripts/align.exp: Likewise.
2731 * testsuite/ld-scripts/alignof.exp: Likewise.
2732 * testsuite/ld-scripts/assert.exp: Likewise.
2733 * testsuite/ld-scripts/defined.exp: Likewise.
2734 * testsuite/ld-scripts/extern.exp: Likewise.
2735 * testsuite/ld-scripts/log2.exp: Likewise.
2736 * testsuite/ld-scripts/map-address.exp: Likewise.
2737 * testsuite/ld-scripts/phdrs.exp: Likewise.
2738 * testsuite/ld-scripts/phdrs2.exp: Likewise.
2739 * testsuite/ld-scripts/script.exp: Likewise.
2740 * testsuite/ld-scripts/section-flags.exp: Likewise.
2741 * testsuite/ld-scripts/sizeof.exp: Likewise.
2742 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
2743 * testsuite/ld-scripts/weak.exp: Likewise.
2744 * testsuite/ld-selective/selective.exp: Likewise.
2745 * testsuite/ld-sh/sh.exp: Likewise.
2746 * testsuite/ld-sh/sh64/relax.exp: Likewise.
2747 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
2748 * testsuite/ld-srec/srec.exp: Likewise.
2749 * testsuite/ld-tic6x/tic6x.exp: Likewise.
2750 * testsuite/ld-undefined/weak-undef.exp: Likewise.
2751 * testsuite/ld-versados/versados.exp: Likewise.
2752 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
2753 * testsuite/ld-xtensa/coalesce.exp: Likewise.
2754 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
2755 * testsuite/ld-xtensa/lcall.exp: Likewise.
2756 * testsuite/ld-elf/audit.exp: Run non-native too.
2757 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
2758 gcc -Wl, options.
2759 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
2760 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
2761 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
2762 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
2763 -Wl,--no-as-needed to most tests.
2764 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
2765 to simplify quoting. Set run_tests using [list] rather than
2766 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
2767 to many test. Prefix ld options with -Wl,.
2768 (mix_pic_and_non_pic): Don't run exe if not native.
2769 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
2770 -Wl,--no-as-needed and prefix ld options with -Wl,.
2771 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
2772 not ld_simple_link.
2773 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
2774 (visibility_test): Don't run exe if not native.
2775 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
2776 not ld_simple_link.
2777 (build_exec): Don't run exe if not native.
2778 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
2779 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
2780 to some tests and prefix ld options with -Wl,. Expect GNU
2781 for hppa-linux even when no ifuncs. Delete cleanup.
2782 * testsuite/ld-pie/pie.exp: Run non-native too.
2783 * testsuite/ld-plugin/lto.exp: Likewise.
2784 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
2785 not ld_simple_link.
2786 (shared_test): Don't run exe if not native.
2787 * testsuite/ld-size/size.exp: Run non-native too. Add
2788 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
2789 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
2790 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
2791 to some tests and prefix ld options with -Wl,. Expect GNU
2792 for hppa-linux even when no unique syms. Delete cleanup.
2793 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
2794 tests and prefix ld options with -Wl,.
2795 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
2796 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
2797
2798 2017-01-02 Alan Modra <amodra@gmail.com>
2799
2800 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
2801
2802 2017-01-02 Alan Modra <amodra@gmail.com>
2803
2804 PR ld/21000
2805 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
2806 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
2807 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
2808 is already defined.
2809
2810 2017-01-02 Alan Modra <amodra@gmail.com>
2811
2812 Update year range in copyright notice of all files.
2813
2814 For older changes see ChangeLog-2016
2815 \f
2816 Copyright (C) 2017 Free Software Foundation, Inc.
2817
2818 Copying and distribution of this file, with or without modification,
2819 are permitted in any medium without royalty provided the copyright
2820 notice and this notice are preserved.
2821
2822 Local Variables:
2823 mode: change-log
2824 left-margin: 8
2825 fill-column: 74
2826 version-control: never
2827 End:
This page took 0.08797 seconds and 4 git commands to generate.