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