Add pgste marker changelog
[binutils-gdb.git] / ld / ChangeLog
1 2017-06-26 Alan Modra <amodra@gmail.com>
2
3 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Skip
4 --just-syms bfds when looking for a place to attach .note.gnu.build-id
5 and .eh_frame_hdr sections. Delete dead code.
6
7 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
8
9 * testsuite/ld-arm/arm-elf.exp (EABI attribute merging 11): New test.
10 (EABI attribute merging 12): Likewise.
11 * testsuite/ld-arm/attr-merge-11a.s: New file.
12 * testsuite/ld-arm/attr-merge-11b.s: New file.
13 * testsuite/ld-arm/attr-merge-11.attr: New file.
14 * testsuite/ld-arm/attr-merge-12a.s: New file.
15 * testsuite/ld-arm/attr-merge-12b.s: New file.
16 * testsuite/ld-arm/attr-merge-12.attr: New file.
17
18 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
19
20 * testsuite/ld-i386/i386.exp: Run weakundef1 tests.
21 * testsuite/ld-i386/weakundef1.c: New file.
22
23 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
24
25 PR ld/21090
26 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Pass
27 $NOPIE_CFLAGS if non-PIE is required.
28
29 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
30
31 PR ld/21090
32 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
33 $NOPIE_LDFLAGS to "Run pr19031".
34
35 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR ld/21090
38 * testsuite/ld-gc/gc.exp: Compile tmpdir/pr14265.o with
39 $NOPIE_CFLAGS.
40 * testsuite/ld-i386/i386.exp: Pass $NOPIE_CFLAGS and
41 $NOPIE_LDFLAGS if non-PIE is required.
42 * testsuite/ld-i386/no-plt.exp (NOPIE_CFLAGS): New.
43 (NOPIE_LDFLAGS): Likewise.
44 Pass $NOPIE_LDFLAGS if non-PIE is required.
45 * testsuite/ld-shared/shared.exp: Compile tmpdir/sh1np.o with
46 $NOPIE_CFLAGS.
47
48 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
49
50 * NEWS: Mention -z shstk and GNU_PROPERTY_X86_FEATURE_1_SHSTK.
51 * emulparams/cet.sh (PARSE_AND_LIST_OPTIONS_CET): Add "-z shstk".
52 (PARSE_AND_LIST_ARGS_CASE_Z_CET): Support "-z shstk".
53 * ld.texinfo: Document -z shstk.
54 * testsuite/ld-i386/i386.exp: Run SHSTK tests.
55 * testsuite/ld-x86-64/x86-64.exp: Likewise.
56 * testsuite/ld-i386/property-x86-shstk.s: New file.
57 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
58 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
59 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
60 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
61 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
62 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
63 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
64 * testsuite/ld-x86-64/property-x86-shstk.s: Likewise.
65 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
66 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
67 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
68 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
69 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
70 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
71 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
72 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
73 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
74 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
75 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
76 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
77 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
78 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
79
80 2017-06-22 H.J. Lu <hongjiu.lu@intel.com>
81
82 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emulparams/cet.sh.
83 * Makefile.in: Regenerated.
84 * NEWS: Mention GNU_PROPERTY_X86_FEATURE_1_IBT, -z ibtplt
85 and -z ibt.
86 * emulparams/cet.sh: New file.
87 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
88 * testsuite/ld-i386/ibt-plt-1.s: Likewise.
89 * testsuite/ld-i386/ibt-plt-2.s: Likewise.
90 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
91 * testsuite/ld-i386/ibt-plt-2b.d: Likewise.
92 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
93 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
94 * testsuite/ld-i386/ibt-plt-3.s: Likewise.
95 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
96 * testsuite/ld-i386/ibt-plt-3b.d: Likewise.
97 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
98 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
99 * testsuite/ld-i386/plt-main-ibt.dd: Likewise.
100 * testsuite/ld-i386/plt-pie-ibt.dd: Likewise.
101 * testsuite/ld-i386/property-x86-empty.s: Likewise.
102 * testsuite/ld-i386/property-x86-ibt.s: Likewise.
103 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
104 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
105 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
106 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
107 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
108 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
109 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
110 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
111 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
112 * testsuite/ld-x86-64/ibt-plt-1.s: Likewise.
113 * testsuite/ld-x86-64/ibt-plt-2.s: Likewise.
114 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
115 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
116 * testsuite/ld-x86-64/ibt-plt-2b-x32.d: Likewise.
117 * testsuite/ld-x86-64/ibt-plt-2b.d: Likewise.
118 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
119 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
120 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
121 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
122 * testsuite/ld-x86-64/ibt-plt-3.s: Likewise.
123 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
124 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
125 * testsuite/ld-x86-64/ibt-plt-3b-x32.d: Likewise.
126 * testsuite/ld-x86-64/ibt-plt-3b.d: Likewise.
127 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
128 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
129 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
130 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
131 * testsuite/ld-x86-64/plt-main-ibt-now.rd: Likewise.
132 * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Likewise.
133 * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
134 * testsuite/ld-x86-64/property-x86-empty.s: Likewise.
135 * testsuite/ld-x86-64/property-x86-ibt.s: Likewise.
136 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
137 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
138 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
139 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
140 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
141 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
142 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
143 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
144 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
145 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
146 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
147 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
148 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
149 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
150 * emulparams/elf32_x86_64.sh: Source emulparams/cet.sh.
151 (TINY_READONLY_SECTION): Add .plt.sec.
152 * emulparams/elf_i386.sh: Likewise.
153 * emulparams/elf_x86_64.sh: Source emulparams/cet.sh.
154 * ld.texinfo: Document -z ibtplt and -z ibt.
155 * testsuite/ld-i386/i386.exp: Run IBT and IBT PLT tests.
156 * testsuite/ld-x86-64/x86-64.exp: Likewise.
157 * testsuite/ld-x86-64/pr21481b.S (check): Updated for x32.
158
159 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
160
161 PR ld/21090
162 * testsuite/ld-elf/shared.exp: Pass $NOPIE_CFLAGS and
163 $NOPIE_LDFLAGS if non-PIE is required.
164
165 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
166
167 PR ld/21090
168 * testsuite/ld-scripts/crossref.exp: Also pass $NOPIE_CFLAGS
169 to CC.
170
171 2017-06-21 H.J. Lu <hongjiu.lu@intel.com>
172
173 PR ld/21090
174 * testsuite/ld-size/size.exp: Pass $NOPIE_LDFLAGS to size-4a,
175 size-4b, size-5a, size-5b, size-6 and size-8 tests.
176 * testsuite/ld-srec/srec.exp (NOPIE_CFLAGS): New.
177 (NOPIE_LDFLAGS): Likewise.
178 (CC): Add $NOPIE_CFLAGS $NOPIE_LDFLAGS.
179 (CXX): Likewise.
180 * testsuite/ld-x86-64/no-plt.exp (NOPIE_CFLAGS): New.
181 (NOPIE_LDFLAGS): Likewise.
182 Pass $NOPIE_LDFLAGS to "No PLT (dynamic 1a)",
183 "No PLT (dynamic 1c)" and "Run pr20253-2f".
184 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS to
185 "Build gotpcrel1" and "Run pr19031".
186
187 2017-06-21 Alan Modra <amodra@gmail.com>
188
189 * testsuite/ld-powerpc/powerpc.exp: Run TOCSAVE tests.
190 * testsuite/ld-powerpc/tocsave1.s,
191 * testsuite/ld-powerpc/tocsave1a.d,
192 * testsuite/ld-powerpc/tocsave1s.d,
193 * testsuite/ld-powerpc/tocsave2.s,
194 * testsuite/ld-powerpc/tocsave2a.d,
195 * testsuite/ld-powerpc/tocsave2s.d,
196 * testsuite/ld-powerpc/tocsavelib.s: New files.
197
198 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
199
200 * Makefile.in: Add s390.em as build dependency.
201 * emulparams/elf64_s390.sh (EXTRA_EM_FILE): Add s390.em.
202 * emultempl/s390.em: New file.
203 * gen-doc.texi: Add documentation for --s390-pgste option.
204 * ld.texinfo: Likewise.
205
206 2017-06-19 H.J. Lu <hongjiu.lu@intel.com>
207
208 PR ld/21626
209 * testsuite/ld-i386/i386.exp: Run ld/21626 tests.
210 * testsuite/ld-x86-64/x86-64.exp: Likewise.
211
212 2017-06-18 Alan Modra <amodra@gmail.com>
213
214 * testsuite/lib/ld-lib.exp (is_underscore_target): New.
215 * testsuite/ld-elf/elf.exp (ASFLAGS): Define UNDERSCORE.
216 * testsuite/ld-elf/pr21562a.s: If UNDERSCORE defined,
217 reference sym with prefix.
218 * testsuite/ld-elf/pr21562b.s: Likewise.
219 * testsuite/ld-elf/sizeof.s: Likewise.
220 * testsuite/ld-elf/startof.s: Likewise.
221 * testsuite/ld-elf/pr14156a.d: Adjust for extra symbols.
222 * testsuite/ld-elf/pr21562a.d: Remove underscore target from
223 xfails, and match prefixed symbol.
224 * testsuite/ld-elf/pr21562b.d: Likewise.
225 * testsuite/ld-elf/pr21562c.d: Likewise.
226 * testsuite/ld-elf/pr21562d.d: Likewise.
227 * testsuite/ld-elf/pr21562e.d: Likewise.
228 * testsuite/ld-elf/pr21562f.d: Likewise.
229 * testsuite/ld-elf/pr21562g.d: Likewise.
230 * testsuite/ld-elf/pr21562h.d: Likewise.
231 * testsuite/ld-elf/pr21562i.d: Likewise.
232 * testsuite/ld-elf/pr21562j.d: Likewise.
233 * testsuite/ld-elf/pr21562k.d: Likewise.
234 * testsuite/ld-elf/pr21562l.d: Likewise.
235 * testsuite/ld-elf/pr21562m.d: Likewise.
236 * testsuite/ld-elf/pr21562n.d: Likewise.
237 * testsuite/ld-elf/sizeofa.d: Likewise.
238 * testsuite/ld-elf/sizeofb.d: Likewise.
239 * testsuite/ld-elf/sizeofc.d: Likewise.
240 * testsuite/ld-elf/startofa.d: Likewise.
241 * testsuite/ld-elf/startofb.d: Likewise.
242 * testsuite/ld-elf/startofc.d: Likewise.
243
244 2017-06-16 Alan Modra <amodra@gmail.com>
245
246 PR ld/20022
247 PR ld/21557
248 PR ld/21562
249 PR ld/21571
250 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't set
251 __start/__stop syms here.
252 * ldlang.c (lang_set_startof): Delete.
253 (start_stop_syms, start_stop_count, start_stop_alloc): New vars.
254 (lang_define_start_stop, lang_init_start_stop, foreach_start_stop,
255 undef_start_stop, lang_undef_start_stop, lang_init_startof_sizeof,
256 set_start_stop, lang_finalize_start_stop): New functions.
257 (lang_process): Call _start_stop functions.
258 * testsuite/ld-elf/pr21562a.d: Use xfail rather than notarget.
259 Correct typos and list of xfail targets.
260 * testsuite/ld-elf/pr21562b.d: Likewise.
261 * testsuite/ld-elf/pr21562c.d: Likewise.
262 * testsuite/ld-elf/pr21562d.d: Likewise.
263 * testsuite/ld-elf/pr21562e.d: Likewise.
264 * testsuite/ld-elf/pr21562f.d: Likewise.
265 * testsuite/ld-elf/pr21562g.d: Likewise.
266 * testsuite/ld-elf/pr21562h.d: Likewise.
267 * testsuite/ld-elf/pr21562i.d: Likewise.
268 * testsuite/ld-elf/pr21562j.d: Likewise.
269 * testsuite/ld-elf/pr21562k.d: Likewise.
270 * testsuite/ld-elf/pr21562l.d: Likewise.
271 * testsuite/ld-elf/pr21562m.d: Likewise.
272 * testsuite/ld-elf/pr21562n.d: Likewise.
273 * testsuite/ld-elf/sizeofa.d: Likewise. Adjust to pass for generic ELF.
274 * testsuite/ld-elf/sizeofb.d: Likewise.
275 * testsuite/ld-elf/startofa.d: Likewise.
276 * testsuite/ld-elf/startofb.d: Likewise.
277
278 2017-06-16 Jiong Wang <jiong.wang@arm.com>
279
280 * testsuite/ld-aarch64/aarch64-elf.exp: Update test name
281 * testsuite/ld-aarch64/pcrel.s: Add new testcases.
282 * testsuite/ld-aarch64/pcrel_pic_undefined.d: Update the expected
283 warnings.
284 * testsuite/ld-aarch64/pcrel_pic_defined_local.d: Rename ...
285 * testsuite/ld-aarch64/pcrel_pic_defined.d: ... to this.
286 Update expected warnings.
287
288 2017-06-15 H.J. Lu <hongjiu.lu@intel.com>
289
290 * exsup.c (elf_shlib_list_options): Display "-z stack-size=SIZE"
291 instead of "-z stacksize=SIZE".
292
293 2017-06-15 Jiong Wang <jiong.wang@arm.com>
294
295 * testsuite/ld-aarch64/copy-reloc-exe-2.s: New test source file.
296 * testsuite/ld-aarch64/copy-reloc-2.d: New test.
297 * testsuite/ld-aarch64/copy-reloc-exe-eliminate.s: New test source file.
298 * testsuite/ld-aarch64/copy-reloc-eliminate.d: New test.
299 * testsuite/ld-aarch64/copy-reloc-so.s: Define new global objects.
300 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
301
302 2017-06-14 Nick Clifton <nickc@redhat.com>
303
304 PR binutils/21580
305 * testsuite/ld-nds32/diff.d: Adjust expected output.
306
307 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
308
309 PR ld/20022
310 * testsuite/ld-gc/pr20022.d: Skip on targets without dynamic
311 relocations in .text section.
312
313 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
314
315 * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
316 in in symbol name or without --gc-sections.
317 * testsuite/ld-elf/pr21562b.d: Likewise.
318 * testsuite/ld-elf/pr21562c.d: Likewise.
319 * testsuite/ld-elf/pr21562d.d: Likewise.
320 * testsuite/ld-elf/pr21562i.d: Likewise.
321 * testsuite/ld-elf/pr21562j.d: Likewise.
322 * testsuite/ld-elf/pr21562k.d: Likewise.
323 * testsuite/ld-elf/pr21562l.d: Likewise.
324 * testsuite/ld-elf/pr21562m.d: Likewise.
325 * testsuite/ld-elf/pr21562n.d: Likewise.
326 * testsuite/ld-elf/pr21562e.d: Skip on targets with leading char
327 in symbol name.
328 * testsuite/ld-elf/pr21562f.d: Likewise.
329 * testsuite/ld-elf/pr21562g.d: Likewise.
330 * testsuite/ld-elf/pr21562h.d: Likewise.
331
332 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
333
334 * testsuite/ld-gc/pr20022a.s: Add size to bar.
335
336 2017-06-14 H.J. Lu <hongjiu.lu@intel.com>
337
338 * testsuite/ld-elf/sizeofa.d: Skip on targets with leading char
339 in symbol name.
340 * testsuite/ld-elf/sizeofb.d: Likewise.
341 * testsuite/ld-elf/startofa.d: Likewise.
342 * testsuite/ld-elf/startofb.d: Likewise.
343
344 2017-06-14 Georg-Johann Lay <gjl@gcc.gnu.org>
345
346 PR ld/21583
347 * scripttempl/avr.sc (.jumptables): Move down in text section.
348 (.hightext): New in text.
349
350 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
351
352 * configure.tgt (epiphany-*-elf): Accept epiphany-*-*.
353
354 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
355
356 * ldlang.c (lang_set_startof): Skip if config.build_constructors
357 is FALSE.
358 * testsuite/ld-elf/sizeofc.d: New file.
359 * testsuite/ld-elf/startofc.d: Likewise.
360
361 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
362
363 * testsuite/ld-elf/sizeof.d: Renamed to ...
364 * testsuite/ld-elf/sizeofa.d: This. Updated.
365 * testsuite/ld-elf/startof.d: Renamed to ...
366 * testsuite/ld-elf/startofa.d: This. Updated.
367 * testsuite/ld-elf/sizeofb.d: New file.
368 * testsuite/ld-elf/startofb.d: Likewise.
369
370 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
371
372 PR ld/20022
373 PR ld/21557
374 PR ld/21562
375 PR ld/21571
376 * ld.texinfo: Update __start_SECNAME/__stop_SECNAME symbols.
377 * ldlang.c (lang_insert_orphan): Move handling of __start_SECNAME
378 and __stop_SECNAME symbols to ...
379 (lang_set_startof): Here. Also define __start_SECNAME and
380 __stop_SECNAME for -Ur.
381 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Mark
382 referenced __start_SECNAME and __stop_SECNAME symbols as hidden
383 and set start_stop for garbage collection.
384 * testsuite/ld-elf/pr21562a.d: New file.
385 * testsuite/ld-elf/pr21562a.s: Likewise.
386 * testsuite/ld-elf/pr21562a.t: Likewise.
387 * testsuite/ld-elf/pr21562b.d: Likewise.
388 * testsuite/ld-elf/pr21562b.s: Likewise.
389 * testsuite/ld-elf/pr21562b.t: Likewise.
390 * testsuite/ld-elf/pr21562c.d: Likewise.
391 * testsuite/ld-elf/pr21562c.t: Likewise.
392 * testsuite/ld-elf/pr21562d.d: Likewise.
393 * testsuite/ld-elf/pr21562d.t: Likewise.
394 * testsuite/ld-elf/pr21562e.d: Likewise.
395 * testsuite/ld-elf/pr21562f.d: Likewise.
396 * testsuite/ld-elf/pr21562g.d: Likewise.
397 * testsuite/ld-elf/pr21562h.d: Likewise.
398 * testsuite/ld-elf/pr21562i.d: Likewise.
399 * testsuite/ld-elf/pr21562j.d: Likewise.
400 * testsuite/ld-elf/pr21562k.d: Likewise.
401 * testsuite/ld-elf/pr21562l.d: Likewise.
402 * testsuite/ld-elf/pr21562m.d: Likewise.
403 * testsuite/ld-elf/pr21562n.d: Likewise.
404 * testsuite/ld-gc/pr20022.d: Likewise.
405 * testsuite/ld-gc/pr20022a.s: Likewise.
406 * testsuite/ld-gc/pr20022b.s: Likewise.
407 * testsuite/ld-gc/gc.exp: Run PR ld/20022 tests.
408 * testsuite/ld-gc/pr19161.d: Also accept local __start_SECNAME
409 symbol.
410 * testsuite/ld-gc/start.d: Likewise.
411 * testsuite/ld-x86-64/lea1a.d: Updated.
412 * testsuite/ld-x86-64/lea1b.d: Updated.
413 * testsuite/ld-x86-64/lea1d.d: Updated.
414 * testsuite/ld-x86-64/lea1e.d: Likewise.
415
416 2017-06-13 H.J. Lu <hongjiu.lu@intel.com>
417
418 * testsuite/ld-elf/sizeof.d: New file.
419 * testsuite/ld-elf/sizeof.s: Likewise.
420 * testsuite/ld-elf/startof.d: Likewise.
421 * testsuite/ld-elf/startof.s: Likewise.
422
423 2017-06-13 Renlin Li <renlin.li@arm.com>
424
425 * testsuite/ld-elf/shared.exp (build_tests): Add --no-dynamic-linker
426 option to rdynamic-1 and dynamic-1 tests.
427
428 2017-06-09 H.J. Lu <hongjiu.lu@intel.com>
429
430 * testsuite/ld-x86-64/property-x86-3-x32.d: New file.
431 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
432 * testsuite/ld-x86-64/property-x86-4b-x32.d: Likewise.
433 * testsuite/ld-x86-64/property-x86-3.d: Also pass
434 -defsym __64_bit__=1 to asssembler.
435 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
436 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
437 * testsuite/ld-x86-64/property-x86-3.s: Align to 4 bytes if
438 __64_bit__ isn't defined.
439 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
440 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
441 * testsuite/ld-x86-64/x86-64.exp: Run property-x86-3-x32,
442 property-x86-4a-x32 and property-x86-4b-x32.
443
444 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com>
445
446 * testsuite/ld-arc/tls_ie-01.d: Changed expected result.
447
448 2017-06-08 H.J. Lu <hongjiu.lu@intel.com>
449
450 * testsuite/ld-ifunc/ifunc-1-local-x86.d: Pass
451 "-Map tmpdir/ifunc-1-local-x86.map" to ld and check
452 ifunc-1-local-x86.map.
453 * testsuite/ld-ifunc/ifunc-1-x86.d: Pass
454 "-Map tmpdir/ifunc-1-x86.map" to ld and check ifunc-1-x86.map.
455 * testsuite/ld-ifunc/ifunc-1-local-x86.map: New file.
456 * testsuite/ld-ifunc/ifunc-1-x86.map: Likewise.
457
458 2017-06-07 Alan Modra <amodra@gmail.com>
459
460 * testsuite/ld-unique/pr21529.d: xfail aarch64, arm, hppa, ia64,
461 nds32, and score. Match any output.
462
463 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 * ld.h (struct args_type): Fix typo in comment.
466
467 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * ld.h (struct args_type): Add force_group_allocation field.
470 * ldgram.y: Add support for FORCE_GROUP_ALLOCATION.
471 * ldlex.h: Likewise.
472 * ldlex.l: Likewise.
473 * lexsup.c: Likewise.
474 * ldlang.c (unique_section_p): Check resolve_section_groups flag
475 not the relaxable link flag.
476 (lang_add_section): Discard section groups when we're resolving
477 groups. Clear the SEC_LINK_ONCE flag if we're resolving section
478 groups.
479 * ldmain.c (main): Initialise resolve_section_groups flag in
480 link_info based on command line flags.
481 * testsuite/ld-elf/group11.d: New file.
482 * testsuite/ld-elf/group12.d: New file.
483 * testsuite/ld-elf/group12.ld: New file.
484 * NEWS: Mention new features.
485 * ld.texinfo (Options): Document --force-group-allocation.
486 (Miscellaneous Commands): Document FORCE_GROUP_ALLOCATION.
487
488 2017-06-05 H.J. Lu <hongjiu.lu@intel.com>
489
490 PR ld/21529
491 * testsuite/ld-unique/pr21529.d: New file.
492 * testsuite/ld-unique/pr21529.s: Likewise.
493 * testsuite/ld-unique/unique.exp: Run *.d.
494
495 2017-06-05 Alan Modra <amodra@gmail.com>
496
497 * ldmain.c (main): Correct setting of link_indo.new_dtags.
498 * testsuite/ld-elf/now-3.d: Pass --disable-new-dtags to ld
499 * testsuite/ld-elf/now-4.d: Likewise.
500 * testsuite/ld-elf/rpath-1.d: Likewise.
501 * testsuite/ld-elf/rpath-2.d: Likewise.
502
503 2017-06-05 Slava Barinov <v.barinov@samsung.com>
504
505 * configure.ac: Add --enable-new-dtags option.
506 * ldmain.c (main): Set link_info.new_dtags to 1 if when
507 --enable-new-dtags is switched on.
508 * configure: Regenerate.
509 * config.in: Regenerate.
510
511 2017-06-02 H.J. Lu <hongjiu.lu@intel.com>
512
513 * emulparams/call_nop.sh: Remove -z prefix-nop.
514 * ld.texinfo: Likewise.
515 * testsuite/ld-i386/call3c.d: Check for linker error.
516 * testsuite/ld-x86-64/call1c.d: Likewise.
517
518 2017-06-01 Alan Modra <amodra@gmail.com>
519
520 * emultempl/ppc64elf.em (params): Init plt_localentry0 field.
521 (enum ppc64_opt): New, replacing OPTION_* defines. Add
522 OPTION_PLT_LOCALENTRY, and OPTION_NO_PLT_LOCALENTRY.
523 (PARSE_AND_LIST_*): Support --plt-localentry and --no-plt-localentry.
524 * testsuite/ld-powerpc/elfv2so.d: Update.
525 * testsuite/ld-powerpc/powerpc.exp (TLS opt 5): Use --no-plt-localentry.
526 * testsuite/ld-powerpc/tlsopt5.d: Update.
527
528 2017-05-31 Alan Modra <amodra@gmail.com>
529
530 * emultempl/ppc64elf.em (plt-static-chain help): Fix quoting.
531
532 2017-05-22 Jiong Wang <jiong.wang@arm.com>
533
534 * configure.tgt: Set "targ_emul" to "aarch64linux32b" for
535 aarch64_be-*-linux-gnu_ilp32. Set "targ_emul" to "aarch64linux32" for
536 aarch64-*-linux-gnu_ilp32.
537
538 2017-05-19 H.J. Lu <hongjiu.lu@intel.com>
539
540 * testsuite/ld-i386/i386.exp: Run property-x86-4a and
541 property-x86-4b.
542 * testsuite/ld-x86-64/x86-64.exp: Likewise.
543 * testsuite/ld-i386/property-x86-4a.d: New file.
544 * testsuite/ld-i386/property-x86-4a.s: Likewise.
545 * testsuite/ld-i386/property-x86-4b.d: Likewise.
546 * testsuite/ld-i386/property-x86-4b.s: Likewise.
547 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
548 * testsuite/ld-x86-64/property-x86-4a.s: Likewise.
549 * testsuite/ld-x86-64/property-x86-4b.d: Likewise.
550 * testsuite/ld-x86-64/property-x86-4b.s: Likewise.
551
552 2017-05-19 Georg-Johann Lay <avr@gjlay.de>
553
554 PR ld/21472
555 * emulparams/avrxmega3.sh (RODATA_PM_OFFSET): Set to 0x8000.
556 * scripttempl/avr.sc (__RODATA_PM_OFFSET__) [RODATA_PM_OFFSET]:
557 Use RODATA_PM_OFFSET as default if not already defined.
558 (.data) [!RODATA_PM_OFFSET]: Don't include .rodata and friends.
559 (.rodata) [RODATA_PM_OFFSET]: Put at an offset of
560 __RODATA_PM_OFFSET__.
561
562 2017-05-18 Nick Clifton <nickc@redhat.com>
563
564 PR ld/21251
565 * ldfile.c (ldfile_add_library_path): If the path starts with
566 $SYSROOT then use the sysroot as the real prefix.
567 * ldlang.c (lang_add_input_file): Treat $SYSROOT in the same
568 way as =.
569 * ldlex.l: Add $SYSROOT as allow prefix for a filename.
570 * ld.texinfo (-L): Document that $SYSROOT acts like = when
571 prefixing a library search path.
572 (INPUT): Likewise.
573 * testsuite/ld-scripts/sysroot-prefix.exp: Add $SYSROOT prefix
574 tests.
575
576 2017-05-18 Alan Modra <amodra@gmail.com>
577
578 * emultempl/elf32.em: Don't compare boolean values against TRUE or FALSE.
579 * emultempl/pe.em: Likewise.
580 * emultempl/pep.em: Likewise.
581 * emultempl/xtensaelf.em (xtensa_wild_group_interleave_callback):
582 Don't compare enum against TRUE.
583
584 2017-05-18 Alan Modra <amodra@gmail.com>
585
586 PR ld/20882
587 * testsuite/ld-gc/pr20882.d: Don't pass -gdwarf-sections to gas.
588 Allow for 16-bit address targets and match expected data fully.
589 * testsuite/ld-gc/pr20882a.s: Delete .debug_line section.
590 * testsuite/ld-gc/pr20882b.s: Likewise.
591 * testsuite/ld-gc/pr20882c.s: Likewise.
592
593 2017-05-17 H.J. Lu <hongjiu.lu@intel.com>
594
595 PR ld/20882
596 * testsuite/ld-gc/gc.exp: Run pr20882.
597 * testsuite/ld-gc/pr20882.d: New file.
598 * testsuite/ld-gc/pr20882a.s: Likewise.
599 * testsuite/ld-gc/pr20882b.s: Likewise.
600 * testsuite/ld-gc/pr20882c.s: Likewise.
601
602 2017-05-16 H.J. Lu <hongjiu.lu@intel.com>
603
604 PR ld/21481
605 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests only
606 if IFUNC is supported by run-time.
607
608 2017-05-16 Alan Modra <amodra@gmail.com>
609
610 * plugin.c: Rename occurrences of non_ir_ref.
611
612 2017-05-16 Alan Modra <amodra@gmail.com>
613
614 * plugin.c (is_visible_from_outside): Use non_ir_ref_dynamic.
615 (plugin_notice): Set non_ir_ref for references from regular
616 objects, non_ir_ref_dynamic for references from dynamic objects.
617
618 2017-05-15 Maciej W. Rozycki <macro@imgtec.com>
619
620 * testsuite/ld-mips-elf/mips16e2-pcrel-0.d: New test.
621 * testsuite/ld-mips-elf/mips16e2-pcrel-1.d: New test.
622 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-2.d: New test.
623 * testsuite/ld-mips-elf/mips16e2-pcrel-addend-6.d: New test.
624 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-0.d: New test.
625 * testsuite/ld-mips-elf/mips16e2-pcrel-n32-1.d: New test.
626 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-0.d: New test.
627 * testsuite/ld-mips-elf/mips16e2-pcrel-n64-sym32-1.d: New test.
628 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
629
630 2017-05-15 Nick Clifton <nickc@redhat.com>
631
632 PR ld/21459
633 * scripttempl/pe.sc: Add .debug_gdb_scripts section.
634 * scripttempl/pep.sc: Likewise.
635
636 2017-05-12 H.J. Lu <hongjiu.lu@intel.com>
637
638 * testsuite/ld-i386/i386.exp: Run property-x86-3.
639 * testsuite/ld-x86-64/x86-64.exp: Likewise.
640 * testsuite/ld-i386/property-x86-3.d: New file.
641 * testsuite/ld-i386/property-x86-3.s: Likewise.
642 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
643 * testsuite/ld-x86-64/property-x86-3.s: Likewise.
644
645 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
646
647 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): Replace
648 .plt.bnd with .plt.sec.
649 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
650 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
651 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
652 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
653 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
654 * testsuite/ld-x86-64/mpx3.dd: Likewise.
655 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
656 * testsuite/ld-x86-64/mpx4.dd: Likewise.
657 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
658 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
659 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
660 * testsuite/ld-x86-64/pr21038b.d: Likewise.
661 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
662 * testsuite/ld-x86-64/pr21038c.d: Likewise.
663
664 2017-05-11 H.J. Lu <hongjiu.lu@intel.com>
665
666 * testsuite/ld-i386/plt-pic2.dd: Updated.
667 * testsuite/ld-i386/plt2.dd: Likewise.
668 * testsuite/ld-i386/plt2.rd: Likewise.
669 * testsuite/ld-i386/pr17689now.rd: Likewise.
670 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
671 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
672 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
673 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
674 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
675 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
676 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
677 * testsuite/ld-x86-64/plt2.dd: Likewise.
678 * testsuite/ld-x86-64/plt2.rd: Likewise.
679 * testsuite/ld-x86-64/pr17689now.rd: Likewise.
680 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
681 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
682
683 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
684
685 * emulparams/i386lynx.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Set
686 to yes.
687 * emulparams/i386moss.sh (CHECK_RELOCS_AFTER_OPEN_INPUT):
688 Likewise.
689 * emulparams/i386nw.sh (CHECK_RELOCS_AFTER_OPEN_INPUT): Likewise.
690
691 2017-05-10 H.J. Lu <hongjiu.lu@intel.com>
692
693 PR ld/21481
694 * testsuite/ld-x86-64/pr21481a.c: New file.
695 * testsuite/ld-x86-64/pr21481b.S: Likewise.
696 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/21481 tests.
697
698 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
699
700 * testsuite/ld-arc/attr-merge-0.d: New file.
701 * testsuite/ld-arc/attr-merge-0.s: Likewise.
702 * testsuite/ld-arc/attr-merge-0e.s: Likewise.
703 * testsuite/ld-arc/attr-merge-1.d: Likewise.
704 * testsuite/ld-arc/attr-merge-1.s: Likewise.
705 * testsuite/ld-arc/attr-merge-1e.s: Likewise.
706 * testsuite/ld-arc/attr-merge-2.d: Likewise.
707 * testsuite/ld-arc/attr-merge-2.s: Likewise.
708 * testsuite/ld-arc/attr-merge-3.d: Likewise.
709 * testsuite/ld-arc/attr-merge-3.s: Likewise.
710 * testsuite/ld-arc/attr-merge-3e.s: Likewise.
711 * testsuite/ld-arc/attr-merge-4.s: Likewise.
712 * testsuite/ld-arc/attr-merge-5.d: Likewise.
713 * testsuite/ld-arc/attr-merge-5a.s: Likewise.
714 * testsuite/ld-arc/attr-merge-5b.s: Likewise.
715 * testsuite/ld-arc/attr-merge-conflict-isa.d: Likewise.
716 * testsuite/ld-arc/attr-merge-err-isa.d: Likewise.
717 * testsuite/ld-arc/attr-merge-incompatible-cpu.d: Likewise.
718 * testsuite/ld-arc/got-01.d: Update test.
719 * testsuite/ld-arc/attr-merge-err-quarkse.d: New file.
720 * testsuite/ld-arc/attr-quarkse.s: Likewise.
721 * testsuite/ld-arc/attr-quarkse2.s: Likewise.
722
723 2017-05-09 Awson <kyrab@mail.ru>
724
725 PR ld/21471
726 * pe-dll.c (pe_detail_list): Add entry for pe-bigobj-x86-64.
727
728 2017-05-09 Benjamin Peterson <bp@benjamin.pe>
729
730 * ld.texinfo (orphan sections): Grammar fix.
731
732 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
733
734 * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: New file.
735 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
736 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
737 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
738 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
739 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
740 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
741 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
742 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
743 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
744 * testsuite/ld-x86-64/plt-main-bnd-now.rd: Likewise.
745 * testsuite/ld-x86-64/plt2.dd: Likewise.
746 * testsuite/ld-x86-64/plt2.rd: Likewise.
747 * testsuite/ld-x86-64/plt2.s: Likewise.
748 * testsuite/ld-x86-64/pr20830a-now.d: Likewise.
749 * testsuite/ld-x86-64/pr20830b-now.d: Likewise.
750 * testsuite/ld-x86-64/pr21038a-now.d: Likewise.
751 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
752 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
753 * testsuite/ld-x86-64/load1b-nacl.d: Updated.
754 * testsuite/ld-x86-64/load1b.d: Likewise.
755 * testsuite/ld-x86-64/plt-main-bnd.dd: Likewise.
756 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
757 * testsuite/ld-x86-64/pr20830a.d: Update the .plt.got section
758 with func@plt.
759 * testsuite/ld-x86-64/pr20830b.d: Likewise.
760 * testsuite/ld-x86-64/pr21038a.d: Likewise.
761 * testsuite/ld-x86-64/pr21038c.d: Likewise.
762 * testsuite/ld-x86-64/mpx.exp: Add some -z now tests.
763 * testsuite/ld-x86-64/x86-64.exp: Likewise.
764
765 2017-05-08 H.J. Lu <hongjiu.lu@intel.com>
766
767 * testsuite/ld-i386/i386.exp: Add some -z now tests.
768 * testsuite/ld-i386/plt-pic2.dd: New file.
769 * testsuite/ld-i386/plt2.dd: Likewise.
770 * testsuite/ld-i386/plt2.rd: Likewise.
771 * testsuite/ld-i386/plt2.s: Likewise.
772 * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
773 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
774 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
775 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
776 * testsuite/ld-i386/pr20830.d: Update the .plt.got section
777 with func@plt.
778
779 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
780
781 * testsuite/ld-arm/arm-elf.exp
782 (Secure gateway import library generation): Check e_type field
783 of import library and executable produced.
784 * testsuite/ld-arm/cmse-implib.type: Expectations for e_type field.
785
786 2017-04-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
787
788 PR ld/21404
789 * testsuite/ld-avr/pr21404-1.d: New test.
790 * testsuite/ld-avr/pr21404-1.s: New test.
791 * testsuite/ld-avr/pr21404-2.d: New test.
792 * testsuite/ld-avr/pr21404-2.s: New test.
793 * testsuite/ld-avr/pr21404-3.d: New test.
794 * testsuite/ld-avr/pr21404-3.s: New test.
795 * testsuite/ld-avr/pr21404-4.d: New test.
796 * testsuite/ld-avr/pr21404-4.s: New test.
797 * testsuite/ld-avr/pr21404-5.d: New test.
798 * testsuite/ld-avr/pr21404-5.s: New test.
799 * testsuite/ld-avr/pr21404-6.d: New test.
800 * testsuite/ld-avr/pr21404-6.s: New test.
801 * testsuite/ld-avr/pr21404-7.d: New test.
802 * testsuite/ld-avr/pr21404-7.s: New test.
803 * testsuite/ld-avr/pr21404-8.d: New test.
804 * testsuite/ld-avr/pr21404-8.s: New test.
805
806 2017-05-03 Maciej W. Rozycki <macro@imgtec.com>
807
808 * testsuite/ld-mips-elf/mips16-pcrel-0.d: New test.
809 * testsuite/ld-mips-elf/mips16-pcrel-1.d: New test.
810 * testsuite/ld-mips-elf/mips16-pcrel-addend-2.d: New test.
811 * testsuite/ld-mips-elf/mips16-pcrel-addend-6.d: New test.
812 * testsuite/ld-mips-elf/mips16-pcrel-n32-0.d: New test.
813 * testsuite/ld-mips-elf/mips16-pcrel-n32-1.d: New test.
814 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-0.d: New test.
815 * testsuite/ld-mips-elf/mips16-pcrel-n64-sym32-1.d: New test.
816 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
817
818 2017-05-03 H.J. Lu <hongjiu.lu@intel.com>
819
820 * testsuite/ld-elf/pr21384.d: Adjusted to accommodate
821 additional dynamic symbols on some targets.
822
823 2017-05-02 Maciej W. Rozycki <macro@imgtec.com>
824
825 * testsuite/ld-mips-elf/mips16-branch-absolute-1.d: New test.
826 * testsuite/ld-mips-elf/mips16-branch-absolute-2.d: New test.
827 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-1.d: New
828 test.
829 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-1.d: New
830 test.
831 * testsuite/ld-mips-elf/mips16-branch-absolute-n32-2.d: New
832 test.
833 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n32-1.d:
834 New test.
835 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-1.d: New
836 test.
837 * testsuite/ld-mips-elf/mips16-branch-absolute-n64-2.d: New
838 test.
839 * testsuite/ld-mips-elf/mips16-branch-absolute-addend-n64-1.d:
840 New test.
841 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
842
843 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
844
845 * testsuite/ld-i386/tls.exp: Add -Wl,--no-as-needed to
846 "TLS without PLT (1)" and "TLS without PLT (3)".
847 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to
848 to "TLS without PLT (3)".
849
850 2017-05-02 H.J. Lu <hongjiu.lu@intel.com>
851
852 PR ld/21384
853 * testsuite/ld-elf/pr21384.d: New file.
854 * testsuite/ld-elf/pr21384.dl: Likewise.
855 * testsuite/ld-elf/pr21384.ld: Likewise.
856 * testsuite/ld-elf/pr21384.s: Likewise.
857
858 2017-05-01 H.J. Lu <hongjiu.lu@intel.com>
859
860 * testsuite/ld-i386/tls.exp: Run GNU2 TLS tests only if there
861 is working GNU2 TLS support.
862 * testsuite/ld-x86-64/tls.exp: Likewise.
863 * testsuite/lib/ld-lib.exp (check_gnu2_tls_available): New proc.
864
865 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
866
867 * testsuite/config/default.exp (GNU2_CFLAGS): New. Set
868 to -mtls-dialect=gnu2 if target compiler supports it.
869 * testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
870 * testsuite/ld-x86-64/tls.exp: Likewise.
871 * testsuite/ld-i386/tlsdesc1a.c: New file.
872 * testsuite/ld-i386/tlsdesc1b.c: Likewise.
873 * testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
874 * testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
875
876 2017-04-28 H.J. Lu <hongjiu.lu@intel.com>
877
878 * testsuite/ld-elf/shared.exp: Add run-time tests for -z now.
879 * testsuite/ld-i386/tls.exp: Likewise.
880 * testsuite/ld-ifunc/ifunc.exp: Likewise.
881 * testsuite/ld-x86-64/tls.exp: Likewise.
882
883 2017-04-27 H.J. Lu <hongjiu.lu@intel.com>
884
885 * testsuite/ld-x86-64/pr21038a.d: Update DW_CFA_nop paddings
886 in .eh_frame section.
887 * testsuite/ld-x86-64/pr21038c.d: Update .eh_frame order.
888
889 2017-04-26 H.J. Lu <hongjiu.lu@intel.com>
890
891 * testsuite/ld-i386/tlsdesc2.d: New test.
892 * testsuite/ld-x86-64/tlsdesc2.d: Likewise.
893
894 2017-04-26 Maciej W. Rozycki <macro@imgtec.com>
895
896 PR ld/21334
897 * testsuite/ld-mips-elf/pr21334.dd: New test.
898 * testsuite/ld-mips-elf/pr21334.gd: New test.
899 * testsuite/ld-mips-elf/pr21334.ld: New test linker script.
900 * testsuite/ld-mips-elf/pr21334.s: New test source.
901 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
902
903 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
904
905 * testsuite/ld-x86-64/no-plt.exp: Also check no-plt-1e.nd.
906 * testsuite/ld-x86-64/no-plt-1e.nd: New file.
907
908 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
909
910 * testsuite/ld-i386/pr12570a.d: Skip for nacl targets.
911 * testsuite/ld-i386/pr12570b.d: Likewise.
912
913 2017-04-24 H.J. Lu <hongjiu.lu@intel.com>
914
915 PR ld/20815
916 * testsuite/ld-i386/vxworks2.sd: Add space for program headers.
917
918 2017-04-24 Jose E. Marchesi <jose.marchesi@oracle.com>
919
920 * testsuite/ld-sparc/tlssunbin64.dd: Expect `return' instructions
921 instead of `rett' in V9.
922 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
923 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
924
925 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
926
927 PR ld/21402
928 * testsuite/ld-elf/indirect.exp: Don't skip PIE indirect5 and
929 indirect6 tests on i386.
930
931 2017-04-21 H.J. Lu <hongjiu.lu@intel.com>
932
933 PR ld/19617
934 PR ld/21086
935 * testsuite/ld-elf/pr19617a.d: Pass --no-dynamic-linker to ld.
936 * testsuite/ld-elf/pr19617b.d: Likewise.
937 * testsuite/ld-elf/pr19617c.d: Likewise.
938 *testsuite/ld-i386/pr19636-4d.d: Likewise.
939 * testsuite/ld-elf/readelf.exp: Pass --no-dynamic-linker to ld
940 with --export-dynamic.
941 * testsuite/ld-elf/shared.exp: Pass --no-dynamic-linker to ld
942 with -E.
943
944 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
945
946 PR ld/21402
947 * testsuite/ld-elf/indirect.exp: Pass $NOPIE_LDFLAGS and
948 $NOPIE_CFLAGS to non-PIE indirect5 and indirect6 tests. Skip
949 PIE indirect5 and indirect6 tests on i386.
950
951 2017-04-20 Maciej W. Rozycki <macro@imgtec.com>
952
953 * testsuite/ld-mips-elf/mips-elf.exp: Join `__ehdr_start' tests.
954
955 2017-04-20 H.J. Lu <hongjiu.lu@intel.com>
956
957 PR ld/21382
958 * plugin.c (is_visible_from_outside): Symbol may be visible
959 from outside if dynamic_ref_after_ir_def is set.
960 (plugin_notice): Set dynamic_ref_after_ir_def if the symbol is
961 defined in an IR object and referenced in a dynamic object.
962 * testsuite/ld-plugin/lto.exp: Run PR ld/21382 tests.
963 * testsuite/ld-plugin/pr21382a.c: New file.
964 * testsuite/ld-plugin/pr21382b.c: Likewise.
965
966 2017-04-19 H.J. Lu <hongjiu.lu@intel.com>
967
968 PR ld/21401
969 * testsuite/ld-ifunc/ifunc.exp: Add a libtest-2-now.so test with
970 -z now.
971
972 2017-04-19 Alan Modra <amodra@gmail.com>
973
974 * ld.texinfo (dynamic-undefined-weak): Document.
975 (nodynamic-undefined-weak): Document that this option now can
976 be used with shared libs.
977 * emulparams/dynamic_undefined_weak.sh: Support -z
978 dynamic-undefined-weak.
979 * emulparams/elf32ppccommon.sh: Include dynamic_undefined_weak.sh.
980 * testsuite/ld-undefined/weak-undef.exp (undef_weak_so),
981 (undef_weak_exe): New. Use them. Add -z dynamic-undefined-weak
982 and -z nodynamic-undefined-weak tests.
983 * Makefile.am: Update powerpc dependencies.
984 * Makefile.in: Regenerate.
985
986 2017-04-17 H.J. Lu <hongjiu.lu@intel.com>
987
988 PR ld/21389
989 * testsuite/ld-elf/pr21389.map: New file.
990 * testsuite/ld-elf/pr21389.s: Likewise.
991 * testsuite/ld-elf/pr21389a.d: Likewise.
992 * testsuite/ld-elf/pr21389b.d: Likewise.
993 * testsuite/ld-elf/pr21389c.d: Likewise.
994
995 2017-04-17 Alan Modra <amodra@gmail.com>
996
997 * testsuite/ld-elf/indirect5a.c,
998 * testsuite/ld-elf/indirect5b.c,
999 * testsuite/ld-elf/indirect5.map,
1000 * testsuite/ld-elf/indirect5.out: New test.
1001 * testsuite/ld-elf/indirect6a.c: Likewise.
1002 * testsuite/ld-elf/indirect.exp (check_dynamic_syms): New proc.
1003 Run new tests and check dynsyms.
1004
1005 2017-04-11 Alan Modra <amodra@gmail.com>
1006
1007 PR 21274
1008 PR 18466
1009 * emultempl/pe.em (pe_find_data_imports): Don't use fixed size
1010 symbol buffer. Instead, xmalloc max size needed with space for
1011 prefix. Wrap overlong lines. Formatting. Pass symbol buffer
1012 copy of name to pe_walk_relocs_of_symbol.
1013 (make_inport_fixup): Add "name" param, pass to pe_create_import_fixup.
1014 * emultempl/pe.em (pep_find_data_imports): As for pe_find_data_imports.
1015 (make_import_fixup): Add "name" param, pass to pep_create_import_fixup.
1016 Use bfd_get_signed_* and remove unnecessary casts. Formatting.
1017 * pe-dll.c (pe_walk_relocs_of_symbol): Add "name" param. Pass to
1018 callback.
1019 (make_import_fixup_mark): Add "name" param. Make use of prefix
1020 space rather than xmalloc here.
1021 (pe_create_import_fixup): Likewise.
1022 * pe-dll.h (pe_walk_relocs_of_symbol): Update prototype.
1023 (pe_create_import_fixup): Likewise.
1024 * pep-dll.h (pep_walk_relocs_of_symbol): Likewise.
1025 (pep_create_import_fixup): Likewise.
1026
1027 2017-04-10 Nick Clifton <nickc@redhat.com>
1028
1029 * ld.texinfo (--strip-discarded): Document.
1030 (--embedded-relocs): Document.
1031 (--spare-dynamic-tags): Document.
1032 (--task-link): Document.
1033
1034 2017-04-10 Alan Modra <amodra@gmail.com>
1035
1036 PR 21287
1037 * testsuite/ld-elf/init-fini-arrays.d: Match INIT_ARRAY and FINI_ARRAY.
1038 * testsuite/ld-elf/init-fini-arrays.s: Use %init_array and %fini_array
1039 section types.
1040 * testsuite/lib/ld-lib.exp (default_ld_compile): Trim assembler
1041 warnings about "ignoring incorrect section type".
1042 (run_ld_link_exec_tests, run_cc_link_tests): Delete old comment.
1043
1044 2017-04-10 Alan Modra <amodra@gmail.com>
1045
1046 * testsuite/ld-elfvsb/elfvsb.exp (visibility_run): Delete
1047 sh1p.o, sh2p.o, sh1np.o and sh2np.o before compiling. Use
1048 remote_file host exists rather than file exists.
1049
1050 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
1051
1052 PR ld/21090
1053 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Use
1054 NOPIE_CFLAGS and NOPIE_LDFLAGS to disable PIE for the non-pie
1055 version of the test.
1056
1057 2017-04-07 H.J. Lu <hongjiu.lu@intel.com>
1058
1059 PR ld/19579
1060 PR ld/21306
1061 * testsuite/ld-elf/pr19579a.c (main): Updated.
1062
1063 2017-04-07 Nick Clifton <nickc@redhat.com>
1064
1065 PR 21090
1066 * testsuite/ld-x86-64/x86-64.exp (undefined_weak): Explicitly
1067 disable PIE for the non-pie version of the test.
1068
1069 2017-04-07 Alan Modra <amodra@gmail.com>
1070
1071 * testsuite/ld-elf/mbind2a.s: Don't use @, the ARM comment char.
1072
1073 2017-04-07 gingold <gingold@gingold-Precision-7510>
1074
1075 * testsuite/ld-pe/pe.exp: New test.
1076 * testsuite/ld-pe/weakdef-1.s: New test source.
1077 * testsuite/ld-pe/weakdef-1.d: New test.
1078
1079 2017-04-07 Alan Modra <amodra@gmail.com>
1080
1081 * testsuite/ld-elf/mbind1a.d: Remove matches for PT_LOAD segments.
1082 * testsuite/ld-elf/mbind1b.d: Likewise.
1083 * testsuite/ld-elf/mbind1c.d: Likewise.
1084
1085 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
1086
1087 PR ld/21233
1088 * testsuite/ld-elf/shared.exp: Change xfails to kfails and fix
1089 indentation issue introduced with last commit.
1090
1091 2017-04-05 Hans-Peter Nilsson <hp@axis.com>
1092
1093 PR ld/21233
1094 * testsuite/ld-elf/shared.exp: Xfail all PR21233 tests but the
1095 first test for cris*-*-*.
1096
1097 2017-04-04 Maciej W. Rozycki <macro@imgtec.com>
1098
1099 PR ld/21233
1100 * ldlang.c (insert_undefined): Set `mark' for ELF symbols.
1101 * testsuite/ld-elf/pr21233.sd: New test.
1102 * testsuite/ld-elf/pr21233-l.sd: New test.
1103 * testsuite/ld-elf/pr21233.ld: New test linker script.
1104 * testsuite/ld-elf/pr21233-e.ld: New test linker script.
1105 * testsuite/ld-elf/pr21233.s: New test source.
1106 * testsuite/ld-elf/pr21233-l.s: New test source.
1107 * testsuite/ld-elf/shared.exp: Run the new tests.
1108
1109 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
1110
1111 * NEWS: Mention support for ELF SHF_GNU_MBIND and
1112 PT_GNU_MBIND_XXX.
1113 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
1114 input GNU_MBIND sections with the same type, attributes and
1115 sh_info field into a single output GNU_MBIND section.
1116 * testsuite/ld-elf/elf.exp: Run mbind2a and mbind2b.
1117 * testsuite/ld-elf/mbind1.s: New file.
1118 * testsuite/ld-elf/mbind1a.d: Likewise.
1119 * testsuite/ld-elf/mbind1b.d: Likewise.
1120 * testsuite/ld-elf/mbind1c.d: Likewise.
1121 * testsuite/ld-elf/mbind2a.s: Likewise.
1122 * testsuite/ld-elf/mbind2b.c: Likewise.
1123
1124 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
1125
1126 * NEWS: Mention support for ELF GNU program properties.
1127 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call
1128 ELF setup_gnu_properties.
1129 * testsuite/ld-i386/i386.exp: Run property tests for Linux/i386.
1130 * testsuite/ld-i386/pass.c: New file.
1131 * testsuite/ld-i386/property-1.r: Likewise.
1132 * testsuite/ld-i386/property-2.r: Likewise.
1133 * testsuite/ld-i386/property-3.r: Likewise.
1134 * testsuite/ld-i386/property-4.r: Likewise.
1135 * testsuite/ld-i386/property-5.r: Likewise.
1136 * testsuite/ld-i386/property-6.r: Likewise.
1137 * testsuite/ld-i386/property-6a.c: Likewise.
1138 * testsuite/ld-i386/property-6b.c: Likewise.
1139 * testsuite/ld-i386/property-6c.S: Likewise.
1140 * testsuite/ld-i386/property-7.r: Likewise.
1141 * testsuite/ld-i386/property-no-copy.S: Likewise.
1142 * testsuite/ld-i386/property-stack.S: Likewise.
1143 * testsuite/ld-i386/property-unsorted-1.S: Likewise.
1144 * testsuite/ld-i386/property-unsorted-2.S: Likewise.
1145 * testsuite/ld-i386/property-x86-1.S: Likewise.
1146 * testsuite/ld-i386/property-x86-2.S: Likewise.
1147 * testsuite/ld-x86-64/pass.c: Likewise.
1148 * testsuite/ld-x86-64/property-1.r: Likewise.
1149 * testsuite/ld-x86-64/property-2.r: Likewise.
1150 * testsuite/ld-x86-64/property-3.r: Likewise.
1151 * testsuite/ld-x86-64/property-4.r: Likewise.
1152 * testsuite/ld-x86-64/property-5.r: Likewise.
1153 * testsuite/ld-x86-64/property-6.r: Likewise.
1154 * testsuite/ld-x86-64/property-6a.c: Likewise.
1155 * testsuite/ld-x86-64/property-6b.c: Likewise.
1156 * testsuite/ld-x86-64/property-6c.S: Likewise.
1157 * testsuite/ld-x86-64/property-7.r: Likewise.
1158 * testsuite/ld-x86-64/property-no-copy.S: Likewise.
1159 * testsuite/ld-x86-64/property-stack.S: Likewise.
1160 * testsuite/ld-x86-64/property-unsorted-1.S: Likewise.
1161 * testsuite/ld-x86-64/property-unsorted-2.S: Likewise.
1162 * testsuite/ld-x86-64/property-x86-1.S: Likewise.
1163 * testsuite/ld-x86-64/property-x86-2.S: Likewise.
1164 * testsuite/ld-x86-64/x86-64.exp: Run property tests for
1165 Linux/x86-64.
1166
1167 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
1168
1169 PR ld/16044
1170 * testsuite/ld-cris/pr16044.d, testsuite/ld-cris/dso-1c.s,
1171 testsuite/ld-cris/dso-2b.s, testsuite/ld-cris/dso-4.s: New test.
1172
1173 2017-03-21 Sandra Loosemore <sandra@codesourcery.com>
1174
1175 * testsuite/lib/ld-lib.exp (check_shared_lib_support): Return
1176 false for nios2-*-elf.
1177
1178 2017-03-21 gingold <gingold@gingold-Precision-7510>
1179
1180 * ldlang.c (lang_check_section_addresses): Check only for
1181 allocated sections.
1182
1183 2017-03-17 Alan Modra <amodra@gmail.com>
1184
1185 * testsuite/ld-elf/sec64k.exp: Don't run on h8300 and ip2k.
1186
1187 2017-03-15 Tristan Gingold <gingold@adacore.com>
1188
1189 * testsuite/ld-checks/checks.exp (overflow_check): Disable for
1190 non-elf targets.
1191
1192 2017-03-14 H.J. Lu <hongjiu.lu@intel.com>
1193
1194 * ldlang.c (lang_check_section_addresses): Use addr_mask to
1195 check VMA and LMA.
1196
1197 2017-03-13 Nick Clifton <nickc@redhat.com>
1198
1199 PR binutils/21202
1200 * testsuite/ld-aarch64/ifunc-5r-local.d: Update regexp.
1201
1202 2017-03-13 Tristan Gingold <gingold@adacore.com>
1203
1204 * ldlang.c (lang_check_section_addresses): Check for address space
1205 overflow.
1206 * testsuite/ld-checks/checks.exp (overflow_check): New procedure
1207 * testsuite/ld-checks/over.s: New test source.
1208 * testsuite/ld-checks/over.d: New test.
1209 * testsuite/ld-checks/over2.s: New test source.
1210 * testsuite/ld-checks/over2.d: New test.
1211
1212 2017-03-13 Alexey Neyman <stilor@att.net>
1213
1214 * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Set from target
1215 cpu, not host.
1216
1217 2017-03-11 Alan Modra <amodra@gmail.com>
1218
1219 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Add
1220 sysroot for -rpath search.
1221
1222 2017-03-11 Alan Modra <amodra@gmail.com>
1223
1224 * emultempl/elf32.em (gld${EMULATION_NAME}_add_sysroot): Rewrite.
1225 Only prefix absolute paths with sysroot. Handle DOS paths.
1226 (gld${EMULATION_NAME}_check_ld_elf_hints): Constify variable.
1227 (gld${EMULATION_NAME}_check_ld_so_conf): Likewise.
1228 (gld${EMULATION_NAME}_after_open): Short-circuit NULL path
1229 searches. Rename variable. Simplify get_runpath search.
1230
1231 2017-03-11 Alan Modra <amodra@gmail.com>
1232
1233 * testsuite/ld-elf/shared.exp: Use -Wl,-export-dynamic rather
1234 than -rdynamic.
1235
1236 2017-03-11 Alan Modra <amodra@gmail.com>
1237
1238 * ld.texinfo (Orphan Sections): Mention that not all targets
1239 handle orphans well.
1240 * testsuite/ld-elf/orphan-9.d: Don't run for i860 and i960.
1241 * testsuite/ld-elf/orphan-10.d: Likewise.
1242
1243 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * ldlang.c (lang_size_sections_1): Shortcut loop only after
1246 tracking changes to the default regions LMA.
1247 * testsuite/ld-elf/orphan-9.ld: Extend header comment.
1248 * testsuite/ld-elf/orphan-10.d: New file.
1249 * testsuite/ld-elf/orphan-10.s: New file.
1250 * NEWS: Mention change in behaviour.
1251
1252 2017-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1253
1254 * ldlang.c (lang_leave_output_section_statement): Move lma_region
1255 logic to...
1256 (lang_propagate_lma_regions): ...this new function.
1257 (lang_process): Call new function.
1258 * testsuite/ld-elf/orphan-9.d: New file.
1259 * testsuite/ld-elf/orphan-9.ld: New file.
1260 * testsuite/ld-elf/orphan-9.s: New file.
1261 * NEWS: Mention change in behaviour.
1262
1263 2017-03-07 Alan Modra <amodra@gmail.com>
1264
1265 * ldlang.c (open_input_bfds): Check that lang_assignment_statement
1266 is not an assert before referencing defsym.
1267
1268 2017-03-05 Alan Modra <amodra@gmail.com>
1269
1270 * testsuite/ld-elf/eh3.d: Adjust for eh_frame alignment change.
1271 * testsuite/ld-elf/eh6.d: Likewise.
1272 * testsuite/ld-alpha/tlsbin.dd: Likewise.
1273 * testsuite/ld-alpha/tlsbin.td: Likewise.
1274 * testsuite/ld-alpha/tlsbinr.dd: Likewise.
1275 * testsuite/ld-alpha/tlspic.dd: Likewise.
1276 * testsuite/ld-alpha/tlspic.rd: Likewise.
1277 * testsuite/ld-alpha/tlspic.sd: Likewise.
1278 * testsuite/ld-alpha/tlspic.td: Likewise.
1279 * testsuite/ld-mips-elf/eh-frame1-n64.d: Likewise.
1280 * testsuite/ld-mips-elf/eh-frame2-n64.d: Likewise.
1281 * testsuite/ld-mips-elf/eh-frame3.d: Likewise.
1282 * testsuite/ld-x86-64/pr20830a.d: Likewise.
1283 * testsuite/ld-x86-64/pr21038a.d: Likewise.
1284 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1285 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1286
1287 2017-03-03 Max Bolingbroke <batterseapower@hotmail.com>
1288
1289 PR 12969
1290 * pe-dll.c (generate_edata): Fail if the input file(s) require too
1291 many ordinals.
1292
1293 2017-03-02 Alan Modra <amodra@gmail.com>
1294
1295 * testsuite/ld-elf/shared.exp: Pass -ansi when compiling new.cc
1296 and dl3.cc.
1297
1298 2017-02-28 Alan Modra <amodra@gmail.com>
1299
1300 * testsuite/ld-elf/merge.d: xfail for nios.
1301
1302 2017-02-28 Alan Modra <amodra@gmail.com>
1303
1304 * testsuite/ld-powerpc/addpcis.d: Define ext1 and ext2 at
1305 limits of addpcis range.
1306
1307 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
1308
1309 * testsuite/ld-mips-elf/jalr4.dd: Adjust for `jalr $0, $25'
1310 instructions.
1311 * testsuite/ld-mips-elf/jalr4-r6.dd: New test.
1312 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1313
1314 2017-02-27 Georg-Johann Lay <gjl@gcc.gnu.org>
1315
1316 PR target/20849
1317 * scripttempl/avrtiny.sc (__RODATA_PM_OFFSET__): New define.
1318 (.rodata): New section.
1319 (.data): Remove .rodata*.
1320
1321 2017-02-25 Alan Modra <amodra@gmail.com>
1322
1323 * testsuite/ld-elf/elf.exp: Xfail pr20995 tests on hppa64-hpux.
1324 Set up HPUX defsym. Run pr14170 tests and build symbol3 objects,
1325 defining HPUX where necessary. Define HPUX for implib tests.
1326 * testsuite/ld-elf/comm-data4.d: Run for hpux.
1327 * testsuite/ld-elf/endsym.d: Likewise.
1328 * testsuite/ld-elf/linkoncerdiff.d: Likewise.
1329 * testsuite/ld-elf/comm-data4.s: Add alternate .comm when HPUX.
1330 * testsuite/ld-elf/comm-data5.s: Likewise.
1331 * testsuite/ld-elf/endsym.s: Likewise.
1332 * testsuite/ld-elf/pr14170c.s: Likewise.
1333 * testsuite/ld-elf/symbol3.s: Likewise.
1334 * testsuite/ld-elf/implib.s: Likewise. Don't start directives
1335 in first column.
1336 * testsuite/ld-elf/linkoncerdiff2.s: Don't use numeric labels.
1337 * testsuite/ld-elf/warn3.d: Run for hpux.
1338 * testsuite/ld-scripts/rgn-at10.d: Xfail for hpux.
1339 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1340 * testsuite/ld-scripts/size-2.d: Remove xfail for hpux.
1341
1342 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
1343
1344 * testsuite/ld-elf/ver_def.vd: New test.
1345 * testsuite/ld-elf/ver_def-tic6x.vd: New test.
1346 * testsuite/ld-elf/ver_def.ld: New test linker script.
1347 * testsuite/ld-elf/ver_def.ver: New test version script.
1348 * testsuite/ld-elf/ver_def.s: New test source.
1349 * testsuite/ld-elf/readelf.exp: New test script.
1350
1351 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1352
1353 * testsuite/ld-mips-elf/relax-jalr-n32.d: Remove `--relax'
1354 option.
1355 * testsuite/ld-mips-elf/relax-jalr-n32-shared.d: Likewise.
1356 * testsuite/ld-mips-elf/relax-jalr-n64.d: Likewise.
1357 * testsuite/ld-mips-elf/relax-jalr-n64-shared.d: Likewise.
1358
1359 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
1360
1361 * testsuite/ld-mips-elf/jalr4.dd: New test.
1362 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1363
1364 2017-02-23 Alan Modra <amodra@gmail.com>
1365
1366 PR 20744
1367 * testsuite/ld-powerpc/vle-reloc-2.s: Use r6 for last insn of
1368 each group.
1369 * testsuite/ld-powerpc/vle-reloc-2.d: Update for above change
1370 and sdarel reloc fix.
1371
1372 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1373
1374 PR ld/20828
1375 * testsuite/ld-elf/pr20828-d.sd: New test.
1376 * testsuite/ld-elf/pr20828-e.sd: New test.
1377 * testsuite/ld-elf/pr20828-v.od: New test.
1378 * testsuite/ld-elf/pr20828-v.ver: New test version script.
1379 * testsuite/ld-elf/pr20828-v.ld: New test linker script.
1380 * testsuite/ld-elf/pr20828.ld: Add `.gnu.version' and
1381 `.gnu.version_d'.
1382 * testsuite/ld-elf/shared.exp: Run the new tests.
1383
1384 2017-02-21 Nick Clifton <nickc@redhat.com>
1385
1386 * testsuite/ld-ifunc/pr18808b.c (bar): Fix compile time warning
1387 about non-void function returning without a result.
1388
1389 2017-02-17 Alan Modra <amodra@gmail.com>
1390
1391 PR 15041
1392 * scripttempl/pe.sc: Don't combine sections for ld -r.
1393 * scripttempl/pep.sc: Likewise.
1394
1395 2017-02-17 Alan Modra <amodra@gmail.com>
1396
1397 PR 21099
1398 * emulparams/elf32m32c.sh: Define STACK_ADDR and STACK_SENTINEL
1399 rather than using OTHER_SECTIONS.
1400 * emulparams/elf32mt.sh: Likewise.
1401 * emulparams/elf32rx.sh: Likewise.
1402 * emulparams/elf32rl78.sh: Likewise. Use OTHER_SYMBOLS to
1403 define __rl78_abs__.
1404 * emulparams/shelf.sh: Define STACK_ADDR and STACK_SENTINEL
1405 rather than using OTHER_SECTIONS.
1406 * emulparams/shelf32.sh: Likewise. Use OTHER_SECTIONS for .cranges.
1407 * emulparams/shelf64.sh: Unset OTHER_SECTIONS.
1408 * emulparams/shelf_nbsd.sh: Unset STACK_ADDR not OTHER_SECTIONS.
1409 * emulparams/shelf_uclinux.sh: Likewise.
1410 * emulparams/shlsymbian.sh: Unset STACK_ADDR. Use OTHER_SYMBOLS
1411 to define _stack, not OTHER_SECTIONS.
1412 * scripttempl/elf.sc: Move STACK, TINY_DATA_SECTION, and
1413 TINY_BSS_SECTION before debug sections. Add STACK_SENTINEL.
1414 * scripttempl/arclinux.sc: Likewise.
1415 * scripttempl/elf64hppa.sc: Likewise.
1416 * scripttempl/elfxtensa.sc: Likewise.
1417 * scripttempl/nds32elf.sc: Likewise.
1418 * scripttempl/armbpabi.sc: Move STACK before debug sections.
1419 * scripttempl/elf_chaos.sc: Likewise.
1420 * scripttempl/elfarc.sc: Delete STACK.
1421 * scripttempl/epiphany_4x4.sc: Delete STACK. Move TINY_DATA_SECTION,
1422 TINY_BSS_SECTION, and .stack before debug sections.
1423
1424 2017-02-17 Nick Clifton <nickc@redhat.com>
1425
1426 PR ld/20825
1427 * ld.texinfo (Options): Add missing @item entry for --pop-state.
1428
1429 2017-02-17 Alan Modra <amodra@gmail.com>
1430
1431 * testsuite/ld-elf/dwarf2.err: Accept other errors between the
1432 multiple definition errors.
1433
1434 2017-02-17 Alan Modra <amodra@gmail.com>
1435
1436 * testsuite/ld-elf/dwarf2.err: Add missing newline at end.
1437 * testsuite/ld-elf/dwarf3.err: Likewise. Allow match without filename.
1438
1439 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 * testsuite/ld-elf/shared.exp: Update expected results.
1442 * testsuite/ld-elf/dwarf2.err: Likewise
1443
1444 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * testsuite/ld-elf/dwarf.exp (build_tests): Add new tests.
1447 * testsuite/ld-elf/dwarf2.err: New file.
1448 * testsuite/ld-elf/dwarf2a.c: New file.
1449 * testsuite/ld-elf/dwarf2b.c: New file.
1450 * testsuite/ld-elf/dwarf3.c: New file.
1451 * testsuite/ld-elf/dwarf3.err: New file.
1452
1453 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1454
1455 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Add warning,
1456 error, warning_output, and error_output actions. Remove separate
1457 warnings parameter.
1458 * testsuite/ld-elf/shared.exp (build_tests): Updated to use
1459 'warning' action.
1460 * testsuite/ld-plugin/lto.exp (lto_link_tests): Likewise.
1461
1462 2017-02-16 Alan Modra <amodra@gmail.com>
1463
1464 * testsuite/ld-elf/check-ptr-eq.c (check_ptr_eq): Change params
1465 from void pointers to function pointers.
1466 * testsuite/ld-elf/pr18718.c: Update to suit.
1467 * testsuite/ld-elf/pr18720a.c: Update to suit.
1468
1469 2017-02-16 Alan Modra <amodra@gmail.com>
1470
1471 PR 21000
1472 * testsuite/ld-elf/loadaddr1.d: Adjust for hppa file offsets.
1473 * testsuite/ld-elf/loadaddr2.d: Likewise.
1474 * testsuite/ld-elf/loadaddr3a.d: Likewise.
1475 * testsuite/ld-scripts/rgn-at5.d: Likewise.
1476
1477 2017-02-16 Alan Modra <amodra@gmail.com>
1478
1479 * testsuite/ld-powerpc/vxworks1-lib.s: Correct addi to addic.
1480 * testsuite/ld-powerpc/vxworks1-lib.dd: Adjust to suit.
1481
1482 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1483
1484 PR ld/21168
1485 * testsuite/ld-i386/i386.exp: Run pr21168.
1486 * testsuite/ld-i386/pr21168a.c: New file.
1487 * testsuite/ld-i386/pr21168b.S: Likewise.
1488
1489 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1490
1491 PR ld/20244
1492 * testsuite/ld-i386/i386.exp: Run pr20244-4a, pr20244-4b and
1493 pr20244-4c.
1494 * testsuite/ld-i386/pr20244-4.s: New file.
1495 * testsuite/ld-i386/pr20244-4a.d: Likewise.
1496 * testsuite/ld-i386/pr20244-4b.d: Likewise.
1497 * testsuite/ld-i386/pr20244-4c.d: Likewise.
1498
1499 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
1500
1501 * ldmisc.c (vfinfo): Don't print the function name again either
1502 if no source file name has been found both now and previously.
1503 * testsuite/ld-cris/tls-err-20x.d: Adjust accordingly.
1504 * testsuite/ld-mips-elf/mode-change-error-1.d: Likewise.
1505 * testsuite/ld-mips-elf/unaligned-branch.d: Likewise.
1506 * testsuite/ld-mips-elf/unaligned-branch-mips16.d: Likewise.
1507 * testsuite/ld-mips-elf/unaligned-branch-micromips.d: Likewise.
1508 * testsuite/ld-mips-elf/unaligned-branch-r6-1.d: Likewise.
1509 * testsuite/ld-mips-elf/unaligned-branch-2.d: Likewise.
1510 * testsuite/ld-mips-elf/unaligned-branch-r6-2.d: Likewise.
1511 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: Likewise.
1512 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16.d:
1513 Likewise.
1514 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips.d:
1515 Likewise.
1516 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1.d:
1517 Likewise.
1518 * testsuite/ld-mips-elf/unaligned-jalx-addend-1.d: Likewise.
1519 * testsuite/ld-mips-elf/unaligned-jalx-addend-mips16-1.d:
1520 Likewise.
1521 * testsuite/ld-mips-elf/unaligned-jalx-addend-micromips-1.d:
1522 Likewise.
1523 * testsuite/ld-mips-elf/unaligned-jalx-addend-3.d: Likewise.
1524 * testsuite/ld-mips-elf/unaligned-jump.d: Likewise.
1525 * testsuite/ld-mips-elf/unaligned-jump-mips16.d: Likewise.
1526 * testsuite/ld-mips-elf/unaligned-jump-micromips.d: Likewise.
1527 * testsuite/ld-mips-elf/unaligned-lwpc-1.d: Likewise.
1528 * testsuite/ld-mips-elf/unaligned-ldpc-1.d: Likewise.
1529 * testsuite/ld-powerpc/tocopt.out: Likewise.
1530 * testsuite/ld-powerpc/tocopt7.out: Likewise.
1531
1532 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
1533
1534 * ldmisc.c (vfinfo) <'H'>: Remove static NULL initializers.
1535
1536 2017-02-15 Igor Kudrin <ikudrin@accesssoftek.com>
1537
1538 * testsuite/ld-scripts/sysroot-prefix.exp
1539 (get_base_dir_for_scripts): New function.
1540 (run_sysroot_prefix_test): Use get_base_dir_for_scripts.
1541
1542 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
1543
1544 * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
1545 _gp to __global_pointer$
1546
1547 2017-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1548
1549 * configure.tgt (arc*-*-linux*): Change the default linker
1550 emulation based on --with-cpu selection.
1551 * NEWS: Mention new configuration option.
1552
1553 2017-02-06 Jiong Wang <jiong.wang@arm.com>
1554
1555 * testsuite/ld-elf/compress.exp: Don't print to stdout for all
1556 "readelf -w".
1557
1558 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1559
1560 * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
1561
1562 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1563
1564 * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
1565 s/regexp/regex/.
1566
1567 2017-02-02 Jiong Wang <jiong.wang@arm.com>
1568
1569 * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
1570 * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
1571 dlopen support into "dlopen_run_tests". These tests include dl1*main
1572 and dl6*main.
1573 (dlopen_run_tests): New and only run it when check_libdl_available
1574 returns true. XFAIL on *-*-netbsdelf*.
1575
1576 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
1577
1578 * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
1579 presentation of relocation addends.
1580 * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
1581 * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
1582 * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
1583
1584 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
1585
1586 * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
1587 in `.tdata' section.
1588 * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
1589 * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
1590
1591 2017-02-01 Jiong Wang <jiong.wang@arm.com>
1592
1593 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
1594 Append $board_cflags to link commands.
1595
1596 2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1597
1598 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
1599 check for digit in second decimal place.
1600
1601 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
1602
1603 PR ld/20828
1604 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
1605 indentation.
1606
1607 2017-01-31 Nick Clifton <nickc@redhat.com>
1608
1609 * ldmain.c (add_archive_element): Eliminate string buffer.
1610 * ldlang.c (lang_print_asneeded): Likewise.
1611
1612 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1613
1614 * emultempl/mipself.em (ignore_branch_isa): New variable.
1615 (mips_create_output_section_statements): Rename
1616 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
1617 add `ignore_branch_isa' argument.
1618 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
1619 OPTION_NO_IGNORE_BRANCH_ISA enum values.
1620 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
1621 "no-ignore-branch-isa" options.
1622 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
1623 `--no-ignore-branch-isa'.
1624 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
1625 OPTION_NO_IGNORE_BRANCH_ISA.
1626
1627 * ld.texinfo (Options specific to MIPS targets): Add
1628 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
1629 (ld and the MIPS family): Likewise.
1630
1631 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
1632 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
1633 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
1634 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
1635 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
1636 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
1637 test.
1638 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
1639 test.
1640 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1641
1642 2017-01-29 Hans-Peter Nilsson <hp@axis.com>
1643
1644 PR binutils/19935
1645 Fix long-standing buglet and fallout from now-default initfini-array.
1646 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
1647 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
1648
1649 2017-01-27 Jiong Wang <jiong.wang@arm.com>
1650
1651 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
1652 arm*-*-eabi*.
1653
1654 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
1655 Nick Clifton <nickc@redhat.com>
1656
1657 PR 20343
1658 * ld.texinfo (Options): Extend documentation of the --plugin
1659 option. Include a description of where the plugins should be
1660 located.
1661
1662 2017-01-27 Nick Clifton <nickc@redhat.com>
1663
1664 * po/sr.po: New Serbian translation.
1665 * configure.ac (ALL_LINGUAS): Add sr.
1666 * configure: Regenerate.
1667
1668 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1669
1670 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
1671 (bfin-*-rtems*): Move to (bfin*-*-elf*).
1672 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
1673 (m68*-*-rtems*): Move to (m68*-*-elf*).
1674 (mips*-*-rtems*): Move to (mips*-*-elf*).
1675 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
1676 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
1677 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
1678 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
1679
1680 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1681
1682 * configure.tgt (h8300-*-rtemscoff*): Remove.
1683 (i960-*-rtems*): Likewise.
1684 (m68*-*-rtemscoff*): Likewise.
1685 (sh-*-rtemscoff*): Likewise.
1686
1687 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
1688
1689 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
1690 add implicit version nodes if an anonymous version tag is being
1691 used.
1692
1693 2017-01-24 Jiong Wang <jiong.wang@arm.com>
1694
1695 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
1696 "Compile 8a", "Compile 8b"...
1697 (lto_compile_elf_tests): ...to here. Always run these tests.
1698 (lto_run_elf_tests): Move "LTO 7"...
1699 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
1700 environment where share library is supported.
1701
1702 2017-01-24 Alan Modra <amodra@gmail.com>
1703
1704 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
1705 and symbols.
1706 * testsuite/ld-powerpc/tlsexe.d: Likewise.
1707 * testsuite/ld-powerpc/tlsexe.g: Likewise.
1708
1709 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
1710
1711 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
1712 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
1713 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
1714 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
1715 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
1716 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
1717 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
1718 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
1719 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
1720 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
1721 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
1722 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
1723 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
1724
1725 2017-01-23 Nick Clifton <nickc@redhat.com>
1726
1727 * po/ga.po: Updated Irish translation.
1728
1729 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
1730
1731 PR ld/20828
1732 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
1733
1734 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
1735
1736 PR ld/20828
1737 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
1738 `fdata' and `edata' respectively.
1739 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
1740 * testsuite/ld-elf/pr20828-a.sd: Likewise.
1741 * testsuite/ld-elf/pr20828-b.sd: Likewise.
1742 * testsuite/ld-elf/pr20828-c.sd: Likewise.
1743
1744 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
1745
1746 PR ld/20828
1747 * testsuite/ld-elf/pr20828-1.sd: Remove test.
1748 * testsuite/ld-elf/pr20828-a.sd: New test.
1749 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
1750 * testsuite/ld-elf/pr20828-b.sd: ... this.
1751 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
1752 * testsuite/ld-elf/pr20828-c.sd: ... this.
1753 * testsuite/ld-elf/shared.exp: Adjust accordingly.
1754
1755 2017-01-23 Jiong Wang <jiong.wang@arm.com>
1756
1757 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
1758 board_cflags as gcc is used as linker driver.
1759 * testsuite/ld-unique/unique.exp: Likewise
1760
1761 2017-01-20 Jiong Wang <jiong.wang@arm.com>
1762
1763 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
1764 * testsuite/ld-aarch64/func-in-so.s: New test source file.
1765 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
1766 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
1767
1768 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
1769
1770 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
1771
1772 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1773
1774 PR ld/20995
1775 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
1776 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
1777
1778 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1779
1780 PR ld/20828
1781 * testsuite/ld-elf/pr20828-1.sd: New test.
1782 * testsuite/ld-elf/pr20828-2a.sd: New test.
1783 * testsuite/ld-elf/pr20828-2b.sd: New test.
1784 * testsuite/ld-elf/pr20828.ld: New test linker script.
1785 * testsuite/ld-elf/pr20828.ver: New test version script.
1786 * testsuite/ld-elf/pr20828.s: New test source.
1787 * testsuite/ld-elf/shared.exp: Run the new test.
1788
1789 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1790
1791 PR gas/20649
1792 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
1793 relocation pairing link test.
1794
1795 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
1796
1797 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
1798 uniqeue.exp, as not all targets have such support.
1799
1800 2017-01-16 Nick Clifton <nickc@redhat.com>
1801
1802 * po/sv.po: Updated Swedish translation.
1803
1804 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
1805
1806 PR ld/21038
1807 * testsuite/ld-x86-64/pr21038b.d: Updated.
1808 * testsuite/ld-x86-64/pr21038c.d: New file.
1809 * testsuite/ld-x86-64/pr21038c.s: Likewise.
1810 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
1811
1812 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
1813
1814 PR ld/21038
1815 * testsuite/ld-x86-64/pr21038a.d: New file.
1816 * testsuite/ld-x86-64/pr21038a.s: Likewise.
1817 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1818 * testsuite/ld-x86-64/pr21038b.s: Likewise.
1819 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
1820
1821 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
1822
1823 * configure.tgt: Add entries for x86-redox and x86_64-redox.
1824
1825 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1826
1827 * testsuite/ld-x86-64/pr20830b.d: Updated.
1828
1829 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1830
1831 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
1832 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
1833 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
1834 * testsuite/ld-x86-64/pr20830b.d: New file.
1835 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
1836 Run pr20830b.
1837
1838 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1839
1840 PR ld/20830
1841 * testsuite/ld-i386/i386.exp: Run pr20830.
1842 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1843 * testsuite/ld-i386/pr20830.d: New file.
1844 * testsuite/ld-i386/pr20830.s: Likewise.
1845 * testsuite/ld-x86-64/pr20830.d: Likewise.
1846 * testsuite/ld-x86-64/pr20830.s: Likewise.
1847
1848 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1849
1850 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
1851 -Wl,--as-needed to $CC.
1852 * testsuite/ld-i386/tls.exp: Likewise.
1853
1854 2017-01-10 Nick Clifton <nickc@redhat.com>
1855
1856 * po/sv.po: Updated Swedish translation.
1857
1858 2016-12-09 Graham Markall <graham.markall@embecosm.com>
1859 Andrew Burgess <andrew.burgess@embecosm.com>
1860
1861 * Makefile.am: Add earclinux_nps.c target and add to
1862 ALL_EMULATION_SOURCES.
1863 * Makefile.in: Likewise, regenerated.
1864 * configure.tgt: Add arclinux_nps as an extra emulation for
1865 arc*-*-elf* and arc*-*-linux*.
1866 * emulparams/arc-nps.sh: New file.
1867 * emulparams/arclinux_nps.sh: New file.
1868 * testsuite/ld-arc/arclinux-nps.d,
1869 * testsuite/ld-arc/arclinux-nps.s: New test.
1870
1871 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
1872
1873 PR 20958
1874 * ldlex.l (option): Add noyywrap
1875 (yywrap): Delete.
1876 * ldlex.h (yywrap): Delete prototype.
1877
1878 2017-01-04 Alan Modra <amodra@gmail.com>
1879
1880 * testsuite/ld-elf/audit.exp: Check for shared lib support.
1881 * testsuite/ld-elf/compress.exp: Likewise.
1882 * testsuite/ld-elf/dwarf.exp: Likewise.
1883 * testsuite/ld-elf/shared.exp: Likewise.
1884 * testsuite/ld-elf/wrap.exp: Likewise.
1885 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1886 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
1887
1888 2017-01-03 Alan Modra <amodra@gmail.com>
1889
1890 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
1891 allow test to continue after compilation errors.
1892 (run_cc_link_tests): Likewise.
1893
1894 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
1895
1896 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
1897 (epruelf.c): Remove unneeded dependencies.
1898 * Makefile.in: Regenerate
1899
1900 2017-01-03 Alan Modra <amodra@gmail.com>
1901
1902 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
1903 to various tests.
1904 * testsuite/ld-elfweak/elfweak.exp: Likewise.
1905 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
1906
1907 2017-01-03 Alan Modra <amodra@gmail.com>
1908
1909 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
1910 * testsuite/ld-pie/pie.exp: Likewise.
1911 * testsuite/ld-plugin/lto.exp: Likewise.
1912
1913 2017-01-02 Alan Modra <amodra@gmail.com>
1914
1915 * Makefile.am (bootstrap): Delete rule.
1916 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
1917 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
1918 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
1919 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
1920 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
1921 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
1922 * Makefile.in: Regenerate.
1923 * configure: Regenerate.
1924 * testsuite/config/default.exp (get_link_files): Delete.
1925 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
1926 define.
1927 (ld_simple_link): Delete.
1928 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
1929 (default_ld_simple_link): Rename to default_ld_link.
1930 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
1931 (run_ld_link_tests): Use ld_link, not ld_simple_link.
1932 (run_cc_link_tests): Likewise.
1933 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
1934 Don't run exe when not native, and return unsupported.
1935 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
1936 Link ld1 etc. using $CC.
1937 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
1938 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
1939 * testsuite/ld-cygwin/exe-export.exp: Likewise.
1940 * testsuite/ld-elf/binutils.exp: Likewise.
1941 * testsuite/ld-elf/eh-group.exp: Likewise.
1942 * testsuite/ld-elf/exclude.exp: Likewise.
1943 * testsuite/ld-elf/frame.exp: Likewise.
1944 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
1945 * testsuite/ld-elf/tls_common.exp: Likewise.
1946 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1947 * testsuite/ld-fastcall/fastcall.exp: Likewise.
1948 * testsuite/ld-gc/gc.exp: Likewise.
1949 * testsuite/ld-ifunc/binutils.exp: Likewise.
1950 * testsuite/ld-mep/mep.exp: Likewise.
1951 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
1952 * testsuite/ld-mn10300/mn10300.exp: Likewise.
1953 * testsuite/ld-nios2/nios2.exp: Likewise.
1954 * testsuite/ld-pe/pe-compile.exp: Likewise.
1955 * testsuite/ld-pe/pe-run.exp: Likewise.
1956 * testsuite/ld-pe/pe-run2.exp: Likewise.
1957 * testsuite/ld-plugin/plugin.exp: Likewise.
1958 * testsuite/ld-scripts/align.exp: Likewise.
1959 * testsuite/ld-scripts/alignof.exp: Likewise.
1960 * testsuite/ld-scripts/assert.exp: Likewise.
1961 * testsuite/ld-scripts/defined.exp: Likewise.
1962 * testsuite/ld-scripts/extern.exp: Likewise.
1963 * testsuite/ld-scripts/log2.exp: Likewise.
1964 * testsuite/ld-scripts/map-address.exp: Likewise.
1965 * testsuite/ld-scripts/phdrs.exp: Likewise.
1966 * testsuite/ld-scripts/phdrs2.exp: Likewise.
1967 * testsuite/ld-scripts/script.exp: Likewise.
1968 * testsuite/ld-scripts/section-flags.exp: Likewise.
1969 * testsuite/ld-scripts/sizeof.exp: Likewise.
1970 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
1971 * testsuite/ld-scripts/weak.exp: Likewise.
1972 * testsuite/ld-selective/selective.exp: Likewise.
1973 * testsuite/ld-sh/sh.exp: Likewise.
1974 * testsuite/ld-sh/sh64/relax.exp: Likewise.
1975 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
1976 * testsuite/ld-srec/srec.exp: Likewise.
1977 * testsuite/ld-tic6x/tic6x.exp: Likewise.
1978 * testsuite/ld-undefined/weak-undef.exp: Likewise.
1979 * testsuite/ld-versados/versados.exp: Likewise.
1980 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
1981 * testsuite/ld-xtensa/coalesce.exp: Likewise.
1982 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
1983 * testsuite/ld-xtensa/lcall.exp: Likewise.
1984 * testsuite/ld-elf/audit.exp: Run non-native too.
1985 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
1986 gcc -Wl, options.
1987 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
1988 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
1989 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
1990 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
1991 -Wl,--no-as-needed to most tests.
1992 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
1993 to simplify quoting. Set run_tests using [list] rather than
1994 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
1995 to many test. Prefix ld options with -Wl,.
1996 (mix_pic_and_non_pic): Don't run exe if not native.
1997 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
1998 -Wl,--no-as-needed and prefix ld options with -Wl,.
1999 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
2000 not ld_simple_link.
2001 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
2002 (visibility_test): Don't run exe if not native.
2003 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
2004 not ld_simple_link.
2005 (build_exec): Don't run exe if not native.
2006 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
2007 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
2008 to some tests and prefix ld options with -Wl,. Expect GNU
2009 for hppa-linux even when no ifuncs. Delete cleanup.
2010 * testsuite/ld-pie/pie.exp: Run non-native too.
2011 * testsuite/ld-plugin/lto.exp: Likewise.
2012 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
2013 not ld_simple_link.
2014 (shared_test): Don't run exe if not native.
2015 * testsuite/ld-size/size.exp: Run non-native too. Add
2016 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
2017 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
2018 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
2019 to some tests and prefix ld options with -Wl,. Expect GNU
2020 for hppa-linux even when no unique syms. Delete cleanup.
2021 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
2022 tests and prefix ld options with -Wl,.
2023 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
2024 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
2025
2026 2017-01-02 Alan Modra <amodra@gmail.com>
2027
2028 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
2029
2030 2017-01-02 Alan Modra <amodra@gmail.com>
2031
2032 PR ld/21000
2033 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
2034 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
2035 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
2036 is already defined.
2037
2038 2017-01-02 Alan Modra <amodra@gmail.com>
2039
2040 Update year range in copyright notice of all files.
2041
2042 For older changes see ChangeLog-2016
2043 \f
2044 Copyright (C) 2017 Free Software Foundation, Inc.
2045
2046 Copying and distribution of this file, with or without modification,
2047 are permitted in any medium without royalty provided the copyright
2048 notice and this notice are preserved.
2049
2050 Local Variables:
2051 mode: change-log
2052 left-margin: 8
2053 fill-column: 74
2054 version-control: never
2055 End: