89f4766481e45cfb0d394588348124129e43e466
[external/binutils.git] / ld / ChangeLog
1 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
2
3         PR ld/20828
4         * testsuite/ld-elf/pr20828-1.sd: Remove test.
5         * testsuite/ld-elf/pr20828-a.sd: New test.
6         * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
7         * testsuite/ld-elf/pr20828-b.sd: ... this.
8         * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
9         * testsuite/ld-elf/pr20828-c.sd: ... this.
10         * testsuite/ld-elf/shared.exp: Adjust accordingly.
11
12 2017-01-23  Jiong Wang  <jiong.wang@arm.com>
13
14         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
15         board_cflags as gcc is used as linker driver.
16         * testsuite/ld-unique/unique.exp: Likewise
17
18 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
19
20         * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
21         * testsuite/ld-aarch64/func-in-so.s: New test source file.
22         * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
23         * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
24
25 2017-01-20  Andrew Burgess  <andrew.burgess@embecosm.com>
26
27         * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
28
29 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
30
31         PR ld/20995
32         * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
33         `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
34
35 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
36
37         PR ld/20828
38         * testsuite/ld-elf/pr20828-1.sd: New test.
39         * testsuite/ld-elf/pr20828-2a.sd: New test.
40         * testsuite/ld-elf/pr20828-2b.sd: New test.
41         * testsuite/ld-elf/pr20828.ld: New test linker script.
42         * testsuite/ld-elf/pr20828.ver: New test version script.
43         * testsuite/ld-elf/pr20828.s: New test source.
44         * testsuite/ld-elf/shared.exp: Run the new test.
45
46 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
47
48         PR gas/20649
49         * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
50         relocation pairing link test.
51
52 2017-01-17  Dimitar Dimitrov  <dimitar@dinux.eu>
53
54         * testsuite/ld-unique/unique.exp: Filter shared lib cases in
55         uniqeue.exp, as not all targets have such support.
56
57 2017-01-16  Nick Clifton  <nickc@redhat.com>
58
59         * po/sv.po: Updated Swedish translation.
60
61 2017-01-12  H.J. Lu  <hongjiu.lu@intel.com>
62
63         PR ld/21038
64         * testsuite/ld-x86-64/pr21038b.d: Updated.
65         * testsuite/ld-x86-64/pr21038c.d: New file.
66         * testsuite/ld-x86-64/pr21038c.s: Likewise.
67         * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
68
69 2017-01-11  H.J. Lu  <hongjiu.lu@intel.com>
70
71         PR ld/21038
72         * testsuite/ld-x86-64/pr21038a.d: New file.
73         * testsuite/ld-x86-64/pr21038a.s: Likewise.
74         * testsuite/ld-x86-64/pr21038b.d: Likewise.
75         * testsuite/ld-x86-64/pr21038b.s: Likewise.
76         * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
77
78 2017-01-11  Jeremy Soller  <jackpot51@gmail.com>
79
80         * configure.tgt: Add entries for x86-redox and x86_64-redox.
81
82 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
83
84         * testsuite/ld-x86-64/pr20830b.d: Updated.
85
86 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
87
88         * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
89         * testsuite/ld-x86-64/pr20830.d: Renamed to ...
90         * testsuite/ld-x86-64/pr20830a.d: This.  Updated.
91         * testsuite/ld-x86-64/pr20830b.d: New file.
92         * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
93         Run pr20830b.
94
95 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
96
97         PR ld/20830
98         * testsuite/ld-i386/i386.exp: Run pr20830.
99         * testsuite/ld-x86-64/x86-64.exp: Likewise.
100         * testsuite/ld-i386/pr20830.d: New file.
101         * testsuite/ld-i386/pr20830.s: Likewise.
102         * testsuite/ld-x86-64/pr20830.d: Likewise.
103         * testsuite/ld-x86-64/pr20830.s: Likewise.
104
105 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
106
107         * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
108         -Wl,--as-needed to $CC.
109         * testsuite/ld-i386/tls.exp: Likewise.
110
111 2017-01-10  Nick Clifton  <nickc@redhat.com>
112
113         * po/sv.po: Updated Swedish translation.
114
115 2016-12-09  Graham Markall  <graham.markall@embecosm.com>
116             Andrew Burgess  <andrew.burgess@embecosm.com>
117
118         * Makefile.am: Add earclinux_nps.c target and add to
119         ALL_EMULATION_SOURCES.
120         * Makefile.in: Likewise, regenerated.
121         * configure.tgt: Add arclinux_nps as an extra emulation for
122         arc*-*-elf* and arc*-*-linux*.
123         * emulparams/arc-nps.sh: New file.
124         * emulparams/arclinux_nps.sh: New file.
125         * testsuite/ld-arc/arclinux-nps.d,
126         * testsuite/ld-arc/arclinux-nps.s: New test.
127
128 2017-01-04  Dilan Palauzov  <dilyan.palauzov@aegee.org>
129
130         PR 20958
131         * ldlex.l (option): Add noyywrap
132         (yywrap): Delete.
133         * ldlex.h (yywrap): Delete prototype.
134
135 2017-01-04  Alan Modra  <amodra@gmail.com>
136
137         * testsuite/ld-elf/audit.exp: Check for shared lib support.
138         * testsuite/ld-elf/compress.exp: Likewise.
139         * testsuite/ld-elf/dwarf.exp: Likewise.
140         * testsuite/ld-elf/shared.exp: Likewise.
141         * testsuite/ld-elf/wrap.exp: Likewise.
142         * testsuite/ld-ifunc/ifunc.exp: Likewise.
143         * testsuite/ld-plugin/lto.exp: Check $CXX exists.
144
145 2017-01-03  Alan Modra  <amodra@gmail.com>
146
147         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
148         allow test to continue after compilation errors.
149         (run_cc_link_tests): Likewise.
150
151 2017-01-03  Dimitar Dimitrov  <dimitar@dinux.eu>
152
153         * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
154         (epruelf.c): Remove unneeded dependencies.
155         * Makefile.in: Regenerate
156
157 2017-01-03  Alan Modra  <amodra@gmail.com>
158
159         * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
160         to various tests.
161         * testsuite/ld-elfweak/elfweak.exp: Likewise.
162         * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
163
164 2017-01-03  Alan Modra  <amodra@gmail.com>
165
166         * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
167         * testsuite/ld-pie/pie.exp: Likewise.
168         * testsuite/ld-plugin/lto.exp: Likewise.
169
170 2017-01-02  Alan Modra  <amodra@gmail.com>
171
172         * Makefile.am (bootstrap): Delete rule.
173         (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
174         (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
175         (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
176         * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
177         (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
178         * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
179         * Makefile.in: Regenerate.
180         * configure: Regenerate.
181         * testsuite/config/default.exp (get_link_files): Delete.
182         (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
183         define.
184         (ld_simple_link): Delete.
185         * testsuite/lib/ld-lib.exp (default_ld_link): Delete
186         (default_ld_simple_link): Rename to default_ld_link.
187         (ld_simple_link_defsyms): Rename to ld_link_defsyms.
188         (run_ld_link_tests): Use ld_link, not ld_simple_link.
189         (run_cc_link_tests): Likewise.
190         (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
191         Don't run exe when not native, and return unsupported.
192         * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
193         Link ld1 etc. using $CC.
194         * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
195         * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
196         * testsuite/ld-cygwin/exe-export.exp: Likewise.
197         * testsuite/ld-elf/binutils.exp: Likewise.
198         * testsuite/ld-elf/eh-group.exp: Likewise.
199         * testsuite/ld-elf/exclude.exp: Likewise.
200         * testsuite/ld-elf/frame.exp: Likewise.
201         * testsuite/ld-elf/sec-to-seg.exp: Likewise.
202         * testsuite/ld-elf/tls_common.exp: Likewise.
203         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
204         * testsuite/ld-fastcall/fastcall.exp: Likewise.
205         * testsuite/ld-gc/gc.exp: Likewise.
206         * testsuite/ld-ifunc/binutils.exp: Likewise.
207         * testsuite/ld-mep/mep.exp: Likewise.
208         * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
209         * testsuite/ld-mn10300/mn10300.exp: Likewise.
210         * testsuite/ld-nios2/nios2.exp: Likewise.
211         * testsuite/ld-pe/pe-compile.exp: Likewise.
212         * testsuite/ld-pe/pe-run.exp: Likewise.
213         * testsuite/ld-pe/pe-run2.exp: Likewise.
214         * testsuite/ld-plugin/plugin.exp: Likewise.
215         * testsuite/ld-scripts/align.exp: Likewise.
216         * testsuite/ld-scripts/alignof.exp: Likewise.
217         * testsuite/ld-scripts/assert.exp: Likewise.
218         * testsuite/ld-scripts/defined.exp: Likewise.
219         * testsuite/ld-scripts/extern.exp: Likewise.
220         * testsuite/ld-scripts/log2.exp: Likewise.
221         * testsuite/ld-scripts/map-address.exp: Likewise.
222         * testsuite/ld-scripts/phdrs.exp: Likewise.
223         * testsuite/ld-scripts/phdrs2.exp: Likewise.
224         * testsuite/ld-scripts/script.exp: Likewise.
225         * testsuite/ld-scripts/section-flags.exp: Likewise.
226         * testsuite/ld-scripts/sizeof.exp: Likewise.
227         * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
228         * testsuite/ld-scripts/weak.exp: Likewise.
229         * testsuite/ld-selective/selective.exp: Likewise.
230         * testsuite/ld-sh/sh.exp: Likewise.
231         * testsuite/ld-sh/sh64/relax.exp: Likewise.
232         * testsuite/ld-sh/sh64/relfail.exp: Likewise.
233         * testsuite/ld-srec/srec.exp: Likewise.
234         * testsuite/ld-tic6x/tic6x.exp: Likewise.
235         * testsuite/ld-undefined/weak-undef.exp: Likewise.
236         * testsuite/ld-versados/versados.exp: Likewise.
237         * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
238         * testsuite/ld-xtensa/coalesce.exp: Likewise.
239         * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
240         * testsuite/ld-xtensa/lcall.exp: Likewise.
241         * testsuite/ld-elf/audit.exp: Run non-native too.
242         * testsuite/ld-elf/compress.exp: Likewise.  Replace ld options with
243         gcc -Wl, options.
244         * testsuite/ld-elf/dwarf.exp: Run non-native too.  Use ld_link,
245         not ld_simple_link.  Add -Wl,--no-as-needed to some tests.
246         * testsuite/ld-elf/elf.exp: Run non-native too.  Formatting.
247         * testsuite/ld-elf/indirect.exp: Run non-native too.  Add
248         -Wl,--no-as-needed to most tests.
249         * testsuite/ld-elf/shared.exp: Run non-native too.  Use braces
250         to simplify quoting.  Set run_tests using [list] rather than
251         brace assignment to expand $extralibs.  Add -Wl,--no-as-needed
252         to many test.  Prefix ld options with -Wl,.
253         (mix_pic_and_non_pic): Don't run exe if not native.
254         * testsuite/ld-elf/wrap.exp: Run non-native too.  Add
255         -Wl,--no-as-needed and prefix ld options with -Wl,.
256         * testsuite/ld-elfvers/vers.exp: Run non-native too.  Use ld_link,
257         not ld_simple_link.
258         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
259         (visibility_test): Don't run exe if not native.
260         * testsuite/ld-elfweak/elfweak.exp: Run non-native too.  Use ld_link,
261         not ld_simple_link.
262         (build_exec): Don't run exe if not native.
263         * testsuite/ld-ifunc/ifunc.exp: Run non-native too.  Use ld_link,
264         not ld_simple_link.  Link using $CC.  Add -Wl,--no-as-needed
265         to some tests and prefix ld options with -Wl,.  Expect GNU
266         for hppa-linux even when no ifuncs.  Delete cleanup.
267         * testsuite/ld-pie/pie.exp: Run non-native too.
268         * testsuite/ld-plugin/lto.exp: Likewise.
269         * testsuite/ld-shared/shared.exp: Likewise.  Use ld_link,
270         not ld_simple_link.
271         (shared_test): Don't run exe if not native.
272         * testsuite/ld-size/size.exp: Run non-native too.  Add
273         -Wl,--no-as-needed to some tests.  Prefix ld options with -Wl,.
274         * testsuite/ld-unique/unique.exp: Run non-native too.  Use ld_link,
275         not ld_simple_link.  Link using $CC.  Add -Wl,--no-as-needed
276         to some tests and prefix ld options with -Wl,.  Expect GNU
277         for hppa-linux even when no unique syms.  Delete cleanup.
278         * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
279         tests and prefix ld options with -Wl,.
280         * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
281         Add -Wl,--no-as-needed to some tests.  Prefix ld options with -Wl,.
282
283 2017-01-02  Alan Modra  <amodra@gmail.com>
284
285         * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
286
287 2017-01-02  Alan Modra  <amodra@gmail.com>
288
289         PR ld/21000
290         * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
291         (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
292         * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
293         is already defined.
294
295 2017-01-02  Alan Modra  <amodra@gmail.com>
296
297         Update year range in copyright notice of all files.
298
299 For older changes see ChangeLog-2016
300 \f
301 Copyright (C) 2017 Free Software Foundation, Inc.
302
303 Copying and distribution of this file, with or without modification,
304 are permitted in any medium without royalty provided the copyright
305 notice and this notice are preserved.
306
307 Local Variables:
308 mode: change-log
309 left-margin: 8
310 fill-column: 74
311 version-control: never
312 End: