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