1 2017-02-01 Jiong Wang <jiong.wang@arm.com>
3 * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
4 Append $board_cflags to link commands.
6 2017-02-01 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
8 * testsuite/ld-scripts/print-memory-usage-1.l: Relax
9 check for digit in second decimal place.
11 2017-02-01 Maciej W. Rozycki <macro@imgtec.com>
14 * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
17 2017-01-31 Nick Clifton <nickc@redhat.com>
19 * ldmain.c (add_archive_element): Eliminate string buffer.
20 * ldlang.c (lang_print_asneeded): Likewise.
22 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
24 * emultempl/mipself.em (ignore_branch_isa): New variable.
25 (mips_create_output_section_statements): Rename
26 `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
27 add `ignore_branch_isa' argument.
28 (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
29 OPTION_NO_IGNORE_BRANCH_ISA enum values.
30 (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
31 "no-ignore-branch-isa" options.
32 (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
33 `--no-ignore-branch-isa'.
34 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
35 OPTION_NO_IGNORE_BRANCH_ISA.
37 * ld.texinfo (Options specific to MIPS targets): Add
38 `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
39 (ld and the MIPS family): Likewise.
41 * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
42 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
43 * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
44 * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
45 * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
46 * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
48 * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
50 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
52 2017-01-29 Hans-Peter Nilsson <hp@axis.com>
55 Fix long-standing buglet and fallout from now-default initfini-array.
56 * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
57 (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
59 2017-01-27 Jiong Wang <jiong.wang@arm.com>
61 * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
64 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
65 Nick Clifton <nickc@redhat.com>
68 * ld.texinfo (Options): Extend documentation of the --plugin
69 option. Include a description of where the plugins should be
72 2017-01-27 Nick Clifton <nickc@redhat.com>
74 * po/sr.po: New Serbian translation.
75 * configure.ac (ALL_LINGUAS): Add sr.
76 * configure: Regenerate.
78 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
80 * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
81 (bfin-*-rtems*): Move to (bfin*-*-elf*).
82 (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
83 (m68*-*-rtems*): Move to (m68*-*-elf*).
84 (mips*-*-rtems*): Move to (mips*-*-elf*).
85 (or1k*-*-rtems*): Move to (or1k*-*-elf*).
86 (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
87 (sparc*-*-rtems*): Move to (sparc*-*-elf*).
88 (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
90 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
92 * configure.tgt (h8300-*-rtemscoff*): Remove.
93 (i960-*-rtems*): Likewise.
94 (m68*-*-rtemscoff*): Likewise.
95 (sh-*-rtemscoff*): Likewise.
97 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
99 * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
100 add implicit version nodes if an anonymous version tag is being
103 2017-01-24 Jiong Wang <jiong.wang@arm.com>
105 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
106 "Compile 8a", "Compile 8b"...
107 (lto_compile_elf_tests): ...to here. Always run these tests.
108 (lto_run_elf_tests): Move "LTO 7"...
109 (lto_run_elf_shared_tests): ...to here. Restrict these tests on
110 environment where share library is supported.
112 2017-01-24 Alan Modra <amodra@gmail.com>
114 * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
116 * testsuite/ld-powerpc/tlsexe.d: Likewise.
117 * testsuite/ld-powerpc/tlsexe.g: Likewise.
119 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
121 * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
122 * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
123 * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
124 * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
125 * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
126 * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
127 * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
128 * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
129 * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
130 * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
131 * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
132 * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
133 * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
135 2017-01-23 Nick Clifton <nickc@redhat.com>
137 * po/ga.po: Updated Irish translation.
139 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
142 * testsuite/ld-elf/pr20828.ld: Add `.plt'.
144 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
147 * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
148 `fdata' and `edata' respectively.
149 * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
150 * testsuite/ld-elf/pr20828-a.sd: Likewise.
151 * testsuite/ld-elf/pr20828-b.sd: Likewise.
152 * testsuite/ld-elf/pr20828-c.sd: Likewise.
154 2017-01-23 Maciej W. Rozycki <macro@imgtec.com>
157 * testsuite/ld-elf/pr20828-1.sd: Remove test.
158 * testsuite/ld-elf/pr20828-a.sd: New test.
159 * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
160 * testsuite/ld-elf/pr20828-b.sd: ... this.
161 * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
162 * testsuite/ld-elf/pr20828-c.sd: ... this.
163 * testsuite/ld-elf/shared.exp: Adjust accordingly.
165 2017-01-23 Jiong Wang <jiong.wang@arm.com>
167 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
168 board_cflags as gcc is used as linker driver.
169 * testsuite/ld-unique/unique.exp: Likewise
171 2017-01-20 Jiong Wang <jiong.wang@arm.com>
173 * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
174 * testsuite/ld-aarch64/func-in-so.s: New test source file.
175 * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
176 * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
178 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
180 * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
182 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
185 * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
186 `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
188 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
191 * testsuite/ld-elf/pr20828-1.sd: New test.
192 * testsuite/ld-elf/pr20828-2a.sd: New test.
193 * testsuite/ld-elf/pr20828-2b.sd: New test.
194 * testsuite/ld-elf/pr20828.ld: New test linker script.
195 * testsuite/ld-elf/pr20828.ver: New test version script.
196 * testsuite/ld-elf/pr20828.s: New test source.
197 * testsuite/ld-elf/shared.exp: Run the new test.
199 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
202 * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
203 relocation pairing link test.
205 2017-01-17 Dimitar Dimitrov <dimitar@dinux.eu>
207 * testsuite/ld-unique/unique.exp: Filter shared lib cases in
208 uniqeue.exp, as not all targets have such support.
210 2017-01-16 Nick Clifton <nickc@redhat.com>
212 * po/sv.po: Updated Swedish translation.
214 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
217 * testsuite/ld-x86-64/pr21038b.d: Updated.
218 * testsuite/ld-x86-64/pr21038c.d: New file.
219 * testsuite/ld-x86-64/pr21038c.s: Likewise.
220 * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
222 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
225 * testsuite/ld-x86-64/pr21038a.d: New file.
226 * testsuite/ld-x86-64/pr21038a.s: Likewise.
227 * testsuite/ld-x86-64/pr21038b.d: Likewise.
228 * testsuite/ld-x86-64/pr21038b.s: Likewise.
229 * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
231 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
233 * configure.tgt: Add entries for x86-redox and x86_64-redox.
235 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
237 * testsuite/ld-x86-64/pr20830b.d: Updated.
239 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
241 * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
242 * testsuite/ld-x86-64/pr20830.d: Renamed to ...
243 * testsuite/ld-x86-64/pr20830a.d: This. Updated.
244 * testsuite/ld-x86-64/pr20830b.d: New file.
245 * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
248 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
251 * testsuite/ld-i386/i386.exp: Run pr20830.
252 * testsuite/ld-x86-64/x86-64.exp: Likewise.
253 * testsuite/ld-i386/pr20830.d: New file.
254 * testsuite/ld-i386/pr20830.s: Likewise.
255 * testsuite/ld-x86-64/pr20830.d: Likewise.
256 * testsuite/ld-x86-64/pr20830.s: Likewise.
258 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
260 * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
261 -Wl,--as-needed to $CC.
262 * testsuite/ld-i386/tls.exp: Likewise.
264 2017-01-10 Nick Clifton <nickc@redhat.com>
266 * po/sv.po: Updated Swedish translation.
268 2016-12-09 Graham Markall <graham.markall@embecosm.com>
269 Andrew Burgess <andrew.burgess@embecosm.com>
271 * Makefile.am: Add earclinux_nps.c target and add to
272 ALL_EMULATION_SOURCES.
273 * Makefile.in: Likewise, regenerated.
274 * configure.tgt: Add arclinux_nps as an extra emulation for
275 arc*-*-elf* and arc*-*-linux*.
276 * emulparams/arc-nps.sh: New file.
277 * emulparams/arclinux_nps.sh: New file.
278 * testsuite/ld-arc/arclinux-nps.d,
279 * testsuite/ld-arc/arclinux-nps.s: New test.
281 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
284 * ldlex.l (option): Add noyywrap
286 * ldlex.h (yywrap): Delete prototype.
288 2017-01-04 Alan Modra <amodra@gmail.com>
290 * testsuite/ld-elf/audit.exp: Check for shared lib support.
291 * testsuite/ld-elf/compress.exp: Likewise.
292 * testsuite/ld-elf/dwarf.exp: Likewise.
293 * testsuite/ld-elf/shared.exp: Likewise.
294 * testsuite/ld-elf/wrap.exp: Likewise.
295 * testsuite/ld-ifunc/ifunc.exp: Likewise.
296 * testsuite/ld-plugin/lto.exp: Check $CXX exists.
298 2017-01-03 Alan Modra <amodra@gmail.com>
300 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
301 allow test to continue after compilation errors.
302 (run_cc_link_tests): Likewise.
304 2017-01-03 Dimitar Dimitrov <dimitar@dinux.eu>
306 * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
307 (epruelf.c): Remove unneeded dependencies.
308 * Makefile.in: Regenerate
310 2017-01-03 Alan Modra <amodra@gmail.com>
312 * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
314 * testsuite/ld-elfweak/elfweak.exp: Likewise.
315 * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
317 2017-01-03 Alan Modra <amodra@gmail.com>
319 * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
320 * testsuite/ld-pie/pie.exp: Likewise.
321 * testsuite/ld-plugin/lto.exp: Likewise.
323 2017-01-02 Alan Modra <amodra@gmail.com>
325 * Makefile.am (bootstrap): Delete rule.
326 (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
327 (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
328 (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
329 * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
330 (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
331 * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
332 * Makefile.in: Regenerate.
333 * configure: Regenerate.
334 * testsuite/config/default.exp (get_link_files): Delete.
335 (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
337 (ld_simple_link): Delete.
338 * testsuite/lib/ld-lib.exp (default_ld_link): Delete
339 (default_ld_simple_link): Rename to default_ld_link.
340 (ld_simple_link_defsyms): Rename to ld_link_defsyms.
341 (run_ld_link_tests): Use ld_link, not ld_simple_link.
342 (run_cc_link_tests): Likewise.
343 (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
344 Don't run exe when not native, and return unsupported.
345 * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
346 Link ld1 etc. using $CC.
347 * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
348 * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
349 * testsuite/ld-cygwin/exe-export.exp: Likewise.
350 * testsuite/ld-elf/binutils.exp: Likewise.
351 * testsuite/ld-elf/eh-group.exp: Likewise.
352 * testsuite/ld-elf/exclude.exp: Likewise.
353 * testsuite/ld-elf/frame.exp: Likewise.
354 * testsuite/ld-elf/sec-to-seg.exp: Likewise.
355 * testsuite/ld-elf/tls_common.exp: Likewise.
356 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
357 * testsuite/ld-fastcall/fastcall.exp: Likewise.
358 * testsuite/ld-gc/gc.exp: Likewise.
359 * testsuite/ld-ifunc/binutils.exp: Likewise.
360 * testsuite/ld-mep/mep.exp: Likewise.
361 * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
362 * testsuite/ld-mn10300/mn10300.exp: Likewise.
363 * testsuite/ld-nios2/nios2.exp: Likewise.
364 * testsuite/ld-pe/pe-compile.exp: Likewise.
365 * testsuite/ld-pe/pe-run.exp: Likewise.
366 * testsuite/ld-pe/pe-run2.exp: Likewise.
367 * testsuite/ld-plugin/plugin.exp: Likewise.
368 * testsuite/ld-scripts/align.exp: Likewise.
369 * testsuite/ld-scripts/alignof.exp: Likewise.
370 * testsuite/ld-scripts/assert.exp: Likewise.
371 * testsuite/ld-scripts/defined.exp: Likewise.
372 * testsuite/ld-scripts/extern.exp: Likewise.
373 * testsuite/ld-scripts/log2.exp: Likewise.
374 * testsuite/ld-scripts/map-address.exp: Likewise.
375 * testsuite/ld-scripts/phdrs.exp: Likewise.
376 * testsuite/ld-scripts/phdrs2.exp: Likewise.
377 * testsuite/ld-scripts/script.exp: Likewise.
378 * testsuite/ld-scripts/section-flags.exp: Likewise.
379 * testsuite/ld-scripts/sizeof.exp: Likewise.
380 * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
381 * testsuite/ld-scripts/weak.exp: Likewise.
382 * testsuite/ld-selective/selective.exp: Likewise.
383 * testsuite/ld-sh/sh.exp: Likewise.
384 * testsuite/ld-sh/sh64/relax.exp: Likewise.
385 * testsuite/ld-sh/sh64/relfail.exp: Likewise.
386 * testsuite/ld-srec/srec.exp: Likewise.
387 * testsuite/ld-tic6x/tic6x.exp: Likewise.
388 * testsuite/ld-undefined/weak-undef.exp: Likewise.
389 * testsuite/ld-versados/versados.exp: Likewise.
390 * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
391 * testsuite/ld-xtensa/coalesce.exp: Likewise.
392 * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
393 * testsuite/ld-xtensa/lcall.exp: Likewise.
394 * testsuite/ld-elf/audit.exp: Run non-native too.
395 * testsuite/ld-elf/compress.exp: Likewise. Replace ld options with
397 * testsuite/ld-elf/dwarf.exp: Run non-native too. Use ld_link,
398 not ld_simple_link. Add -Wl,--no-as-needed to some tests.
399 * testsuite/ld-elf/elf.exp: Run non-native too. Formatting.
400 * testsuite/ld-elf/indirect.exp: Run non-native too. Add
401 -Wl,--no-as-needed to most tests.
402 * testsuite/ld-elf/shared.exp: Run non-native too. Use braces
403 to simplify quoting. Set run_tests using [list] rather than
404 brace assignment to expand $extralibs. Add -Wl,--no-as-needed
405 to many test. Prefix ld options with -Wl,.
406 (mix_pic_and_non_pic): Don't run exe if not native.
407 * testsuite/ld-elf/wrap.exp: Run non-native too. Add
408 -Wl,--no-as-needed and prefix ld options with -Wl,.
409 * testsuite/ld-elfvers/vers.exp: Run non-native too. Use ld_link,
411 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
412 (visibility_test): Don't run exe if not native.
413 * testsuite/ld-elfweak/elfweak.exp: Run non-native too. Use ld_link,
415 (build_exec): Don't run exe if not native.
416 * testsuite/ld-ifunc/ifunc.exp: Run non-native too. Use ld_link,
417 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
418 to some tests and prefix ld options with -Wl,. Expect GNU
419 for hppa-linux even when no ifuncs. Delete cleanup.
420 * testsuite/ld-pie/pie.exp: Run non-native too.
421 * testsuite/ld-plugin/lto.exp: Likewise.
422 * testsuite/ld-shared/shared.exp: Likewise. Use ld_link,
424 (shared_test): Don't run exe if not native.
425 * testsuite/ld-size/size.exp: Run non-native too. Add
426 -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
427 * testsuite/ld-unique/unique.exp: Run non-native too. Use ld_link,
428 not ld_simple_link. Link using $CC. Add -Wl,--no-as-needed
429 to some tests and prefix ld options with -Wl,. Expect GNU
430 for hppa-linux even when no unique syms. Delete cleanup.
431 * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
432 tests and prefix ld options with -Wl,.
433 * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
434 Add -Wl,--no-as-needed to some tests. Prefix ld options with -Wl,.
436 2017-01-02 Alan Modra <amodra@gmail.com>
438 * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
440 2017-01-02 Alan Modra <amodra@gmail.com>
443 * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
444 (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
445 * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
448 2017-01-02 Alan Modra <amodra@gmail.com>
450 Update year range in copyright notice of all files.
452 For older changes see ChangeLog-2016
454 Copyright (C) 2017 Free Software Foundation, Inc.
456 Copying and distribution of this file, with or without modification,
457 are permitted in any medium without royalty provided the copyright
458 notice and this notice are preserved.
464 version-control: never