Don't use "_gp" on RISC-V, use "_global_pointer$" instead
[external/binutils.git] / ld / ChangeLog
1 2017-02-13  Palmer Dabbelt  <palmer@dabbelt.com>
2
3         * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
4         _gp to __global_pointer$
5
6 2017-02-08  Andrew Burgess  <andrew.burgess@embecosm.com>
7
8         * configure.tgt (arc*-*-linux*): Change the default linker
9         emulation based on --with-cpu selection.
10         * NEWS: Mention new configuration option.
11
12 2017-02-06  Jiong Wang  <jiong.wang@arm.com>
13
14         * testsuite/ld-elf/compress.exp: Don't print to stdout for all
15         "readelf -w".
16
17 2017-02-02  Maciej W. Rozycki  <macro@imgtec.com>
18
19         * testsuite/ld-cris/tls-err-20x.d: Fix a typo, s/n/\n/.
20
21 2017-02-02  Maciej W. Rozycki  <macro@imgtec.com>
22
23         * ld/testsuite/lib/ld-lib.exp (run_dump_test): Fix a typo,
24         s/regexp/regex/.
25
26 2017-02-02  Jiong Wang  <jiong.wang@arm.com>
27
28         * testsuite/lib/ld-lib.exp (check_libdl_available): New function.
29         * testsuite/ld-elf/shared.exp (run_tests): Split tests which require
30         dlopen support into "dlopen_run_tests".  These tests include dl1*main
31         and dl6*main.
32         (dlopen_run_tests): New and only run it when check_libdl_available
33         returns true.  XFAIL on *-*-netbsdelf*.
34
35 2017-02-01  Maciej W. Rozycki  <macro@imgtec.com>
36
37         * testsuite/ld-mips-elf/vxworks-forced-local-1.d: Correct the
38         presentation of relocation addends.
39         * testsuite/ld-mips-elf/vxworks1-lib.rd: Likewise.
40         * testsuite/ld-mips-elf/vxworks1.dd: Likewise.
41         * testsuite/ld-mips-elf/vxworks1.rd: Likewise.
42
43 2017-02-01  Maciej W. Rozycki  <macro@imgtec.com>
44
45         * testsuite/ld-mips-elf/tls-multi-got-1-1.s: Place `tlsvar_ld'
46         in `.tdata' section.
47         * testsuite/ld-mips-elf/tls-multi-got-1.got: Adjust accordingly.
48         * testsuite/ld-mips-elf/tls-multi-got-1.r: Likewise.
49
50 2017-02-01  Jiong Wang  <jiong.wang@arm.com>
51
52         * testsuite/ld-unique/unique.exp (Could not link a dynamic executable):
53         Append $board_cflags to link commands.
54
55 2017-02-01  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>
56
57         * testsuite/ld-scripts/print-memory-usage-1.l: Relax
58         check for digit in second decimal place.
59
60 2017-02-01  Maciej W. Rozycki  <macro@imgtec.com>
61
62         PR ld/20828
63         * testsuite/ld-elf/shared.exp: Correct PR ld/20828 test
64         indentation.
65
66 2017-01-31  Nick Clifton  <nickc@redhat.com>
67
68         * ldmain.c (add_archive_element): Eliminate string buffer.
69         * ldlang.c (lang_print_asneeded): Likewise.
70
71 2017-01-30  Maciej W. Rozycki  <macro@imgtec.com>
72
73         * emultempl/mipself.em (ignore_branch_isa): New variable.
74         (mips_create_output_section_statements): Rename
75         `_bfd_mips_elf_insn32' called to `_bfd_mips_elf_linker_flags',
76         add `ignore_branch_isa' argument.
77         (PARSE_AND_LIST_PROLOGUE): Add OPTION_IGNORE_BRANCH_ISA and
78         OPTION_NO_IGNORE_BRANCH_ISA enum values.
79         (PARSE_AND_LIST_LONGOPTS): Add "ignore-branch-isa" and
80         "no-ignore-branch-isa" options.
81         (PARSE_AND_LIST_OPTIONS): Add `--ignore-branch-isa' and
82         `--no-ignore-branch-isa'.
83         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_IGNORE_BRANCH_ISA and
84         OPTION_NO_IGNORE_BRANCH_ISA.
85
86         * ld.texinfo (Options specific to MIPS targets): Add
87         `--ignore-branch-isa' and `--no-ignore-branch-isa' options.
88         (ld and the MIPS family): Likewise.
89
90         * testsuite/ld-mips-elf/bal-jalx-pic-ignore.d: New test.
91         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n32.d: New test.
92         * testsuite/ld-mips-elf/bal-jalx-pic-ignore-n64.d: New test.
93         * testsuite/ld-mips-elf/unaligned-branch-ignore-2.d: New test.
94         * testsuite/ld-mips-elf/unaligned-branch-ignore-r6-1: New test.
95         * testsuite/ld-mips-elf/unaligned-branch-ignore-mips16: New
96         test.
97         * testsuite/ld-mips-elf/unaligned-branch-ignore-micromips: New
98         test.
99         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
100
101 2017-01-29  Hans-Peter Nilsson  <hp@axis.com>
102
103         PR binutils/19935
104         Fix long-standing buglet and fallout from now-default initfini-array.
105         * emulparams/criself.sh (USER_LABEL_PREFIX): Define.
106         (OTHER_END_SYMBOLS, ENTRY): Delete now-redundant defines.
107
108 2017-01-27  Jiong Wang  <jiong.wang@arm.com>
109
110         * testsuite/ld-elf/elf.exp ("pr20995-2", "Build pr20995-2.so"): XFAIL on
111         arm*-*-eabi*.
112
113 2017-01-27  Dilyan Palauzov  <dilyan.palauzov@aegee.org>
114             Nick Clifton  <nickc@redhat.com>
115
116         PR 20343
117         * ld.texinfo (Options): Extend documentation of the --plugin
118         option.  Include a description of where the plugins should be
119         located.
120
121 2017-01-27  Nick Clifton  <nickc@redhat.com>
122
123         * po/sr.po: New Serbian translation.
124         * configure.ac (ALL_LINGUAS): Add sr.
125         * configure: Regenerate.
126
127 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
128
129         * configure.tgt (arm-*-rtems*): Move to (arm*-*-eabi*).
130         (bfin-*-rtems*): Move to (bfin*-*-elf*).
131         (i[3-7]86-*-rtems*): Move to (i[3-7]86*-*-elf*).
132         (m68*-*-rtems*): Move to (m68*-*-elf*).
133         (mips*-*-rtems*): Move to (mips*-*-elf*).
134         (or1k*-*-rtems*): Move to (or1k*-*-elf*).
135         (powerpc*-*-rtems*): Move to (powerpc*-*-elf*).
136         (sparc*-*-rtems*): Move to (sparc*-*-elf*).
137         (sparc64*-*-rtems*): Move to (sparc64*-*-elf*).
138
139 2017-01-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
140
141         * configure.tgt (h8300-*-rtemscoff*): Remove.
142         (i960-*-rtems*): Likewise.
143         (m68*-*-rtemscoff*): Likewise.
144         (sh-*-rtemscoff*): Likewise.
145
146 2017-01-24  Maciej W. Rozycki  <macro@imgtec.com>
147
148         * emultempl/solaris2.em (elf_solaris2_before_allocation): Do not
149         add implicit version nodes if an anonymous version tag is being
150         used.
151
152 2017-01-24  Jiong Wang  <jiong.wang@arm.com>
153
154         * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Move "Compile 7",
155         "Compile 8a", "Compile 8b"...
156         (lto_compile_elf_tests): ...to here.  Always run these tests.
157         (lto_run_elf_tests): Move "LTO 7"...
158         (lto_run_elf_shared_tests): ...to here.  Restrict these tests on
159         environment where share library is supported.
160
161 2017-01-24  Alan Modra  <amodra@gmail.com>
162
163         * testsuite/ld-powerpc/tlsexe.r: Update for fewer dynamic relocs
164         and symbols.
165         * testsuite/ld-powerpc/tlsexe.d: Likewise.
166         * testsuite/ld-powerpc/tlsexe.g: Likewise.
167
168 2017-01-23  Yury Norov  <ynorov@caviumnetworks.com>
169
170         * testsuite/ld-aarch64/aarch64-elf.exp: Run new tests.
171         * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: New test.
172         * testsuite/ld-aarch64/tls-relax-all-ilp32.d: New test.
173         * testsuite/ld-aarch64/tls-relax-gd-le-ilp32.d: New test.
174         * testsuite/ld-aarch64/tls-relax-gdesc-le-2-ilp32.d: New test.
175         * testsuite/ld-aarch64/tls-relax-gdesc-le-ilp32.d: New test.
176         * testsuite/ld-aarch64/tls-relax-ie-le-2-ilp32.d: New test.
177         * testsuite/ld-aarch64/tls-relax-ie-le-3-ilp32.d: New test.
178         * testsuite/ld-aarch64/tls-relax-ie-le-ilp32.d: New test.
179         * testsuite/ld-aarch64/tls-tiny-desc-ie-ilp32.d: New test.
180         * testsuite/ld-aarch64/tls-tiny-desc-le-ilp32.d: New test.
181         * testsuite/ld-aarch64/tls-tiny-gd-ie-ilp32.d: New test.
182         * testsuite/ld-aarch64/tls-tiny-gd-le-ilp32.d: New test.
183
184 2017-01-23  Nick Clifton  <nickc@redhat.com>
185
186         * po/ga.po: Updated Irish translation.
187
188 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
189
190         PR ld/20828
191         * testsuite/ld-elf/pr20828.ld: Add `.plt'.
192
193 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
194
195         PR ld/20828
196         * testsuite/ld-elf/pr20828.ld: Rename `_fdata' and `_edata' to
197         `fdata' and `edata' respectively.
198         * testsuite/ld-elf/pr20828.ver: Adjust accordingly.
199         * testsuite/ld-elf/pr20828-a.sd: Likewise.
200         * testsuite/ld-elf/pr20828-b.sd: Likewise.
201         * testsuite/ld-elf/pr20828-c.sd: Likewise.
202
203 2017-01-23  Maciej W. Rozycki  <macro@imgtec.com>
204
205         PR ld/20828
206         * testsuite/ld-elf/pr20828-1.sd: Remove test.
207         * testsuite/ld-elf/pr20828-a.sd: New test.
208         * testsuite/ld-elf/pr20828-2a.sd: Rename test to...
209         * testsuite/ld-elf/pr20828-b.sd: ... this.
210         * testsuite/ld-elf/pr20828-2b.sd: Rename test to...
211         * testsuite/ld-elf/pr20828-c.sd: ... this.
212         * testsuite/ld-elf/shared.exp: Adjust accordingly.
213
214 2017-01-23  Jiong Wang  <jiong.wang@arm.com>
215
216         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Append
217         board_cflags as gcc is used as linker driver.
218         * testsuite/ld-unique/unique.exp: Likewise
219
220 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
221
222         * testsuite/ld-aarch64/aarch64-elf.exp (aarch64elflinktests): New tests.
223         * testsuite/ld-aarch64/func-in-so.s: New test source file.
224         * testsuite/ld-aarch64/func-sym-hash-opt.s: Likewise.
225         * testsuite/ld-aarch64/func-sym-hash-opt.d: New expected test result.
226
227 2017-01-20  Andrew Burgess  <andrew.burgess@embecosm.com>
228
229         * testsuite/ld-elf/eh-frame-hdr.d: Update expected results.
230
231 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
232
233         PR ld/20995
234         * testsuite/ld-elf/elf.exp: Set GAS flags correctly for the
235         `mips*-*-*' target and `pr20995' and `pr20995-2' tests.
236
237 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
238
239         PR ld/20828
240         * testsuite/ld-elf/pr20828-1.sd: New test.
241         * testsuite/ld-elf/pr20828-2a.sd: New test.
242         * testsuite/ld-elf/pr20828-2b.sd: New test.
243         * testsuite/ld-elf/pr20828.ld: New test linker script.
244         * testsuite/ld-elf/pr20828.ver: New test version script.
245         * testsuite/ld-elf/pr20828.s: New test source.
246         * testsuite/ld-elf/shared.exp: Run the new test.
247
248 2017-01-18  Maciej W. Rozycki  <macro@imgtec.com>
249
250         PR gas/20649
251         * testsuite/ld-mips-elf/mips-elf.exp: Add PIC comdat GOT16/LO16
252         relocation pairing link test.
253
254 2017-01-17  Dimitar Dimitrov  <dimitar@dinux.eu>
255
256         * testsuite/ld-unique/unique.exp: Filter shared lib cases in
257         uniqeue.exp, as not all targets have such support.
258
259 2017-01-16  Nick Clifton  <nickc@redhat.com>
260
261         * po/sv.po: Updated Swedish translation.
262
263 2017-01-12  H.J. Lu  <hongjiu.lu@intel.com>
264
265         PR ld/21038
266         * testsuite/ld-x86-64/pr21038b.d: Updated.
267         * testsuite/ld-x86-64/pr21038c.d: New file.
268         * testsuite/ld-x86-64/pr21038c.s: Likewise.
269         * testsuite/ld-x86-64/x86-64.exp: Run pr21038c.
270
271 2017-01-11  H.J. Lu  <hongjiu.lu@intel.com>
272
273         PR ld/21038
274         * testsuite/ld-x86-64/pr21038a.d: New file.
275         * testsuite/ld-x86-64/pr21038a.s: Likewise.
276         * testsuite/ld-x86-64/pr21038b.d: Likewise.
277         * testsuite/ld-x86-64/pr21038b.s: Likewise.
278         * testsuite/ld-x86-64/x86-64.exp: Run pr21038a and pr21038b.
279
280 2017-01-11  Jeremy Soller  <jackpot51@gmail.com>
281
282         * configure.tgt: Add entries for x86-redox and x86_64-redox.
283
284 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
285
286         * testsuite/ld-x86-64/pr20830b.d: Updated.
287
288 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
289
290         * emulparams/elf32_x86_64.sh (TINY_READONLY_SECTION): New.
291         * testsuite/ld-x86-64/pr20830.d: Renamed to ...
292         * testsuite/ld-x86-64/pr20830a.d: This.  Updated.
293         * testsuite/ld-x86-64/pr20830b.d: New file.
294         * testsuite/ld-x86-64/x86-64.exp: Rename pr20830 to pr20830a.
295         Run pr20830b.
296
297 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
298
299         PR ld/20830
300         * testsuite/ld-i386/i386.exp: Run pr20830.
301         * testsuite/ld-x86-64/x86-64.exp: Likewise.
302         * testsuite/ld-i386/pr20830.d: New file.
303         * testsuite/ld-i386/pr20830.s: Likewise.
304         * testsuite/ld-x86-64/pr20830.d: Likewise.
305         * testsuite/ld-x86-64/pr20830.s: Likewise.
306
307 2017-01-10  H.J. Lu  <hongjiu.lu@intel.com>
308
309         * testsuite/ld-i386/i386.exp: Pass -Wl,-R,tmpdir and
310         -Wl,--as-needed to $CC.
311         * testsuite/ld-i386/tls.exp: Likewise.
312
313 2017-01-10  Nick Clifton  <nickc@redhat.com>
314
315         * po/sv.po: Updated Swedish translation.
316
317 2016-12-09  Graham Markall  <graham.markall@embecosm.com>
318             Andrew Burgess  <andrew.burgess@embecosm.com>
319
320         * Makefile.am: Add earclinux_nps.c target and add to
321         ALL_EMULATION_SOURCES.
322         * Makefile.in: Likewise, regenerated.
323         * configure.tgt: Add arclinux_nps as an extra emulation for
324         arc*-*-elf* and arc*-*-linux*.
325         * emulparams/arc-nps.sh: New file.
326         * emulparams/arclinux_nps.sh: New file.
327         * testsuite/ld-arc/arclinux-nps.d,
328         * testsuite/ld-arc/arclinux-nps.s: New test.
329
330 2017-01-04  Dilan Palauzov  <dilyan.palauzov@aegee.org>
331
332         PR 20958
333         * ldlex.l (option): Add noyywrap
334         (yywrap): Delete.
335         * ldlex.h (yywrap): Delete prototype.
336
337 2017-01-04  Alan Modra  <amodra@gmail.com>
338
339         * testsuite/ld-elf/audit.exp: Check for shared lib support.
340         * testsuite/ld-elf/compress.exp: Likewise.
341         * testsuite/ld-elf/dwarf.exp: Likewise.
342         * testsuite/ld-elf/shared.exp: Likewise.
343         * testsuite/ld-elf/wrap.exp: Likewise.
344         * testsuite/ld-ifunc/ifunc.exp: Likewise.
345         * testsuite/ld-plugin/lto.exp: Check $CXX exists.
346
347 2017-01-03  Alan Modra  <amodra@gmail.com>
348
349         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
350         allow test to continue after compilation errors.
351         (run_cc_link_tests): Likewise.
352
353 2017-01-03  Dimitar Dimitrov  <dimitar@dinux.eu>
354
355         * Makefile.am (ALL_EMULATION_SOURCES): Add epruelf.c.
356         (epruelf.c): Remove unneeded dependencies.
357         * Makefile.in: Regenerate
358
359 2017-01-03  Alan Modra  <amodra@gmail.com>
360
361         * testsuite/ld-elf/shared.exp: Add -rpath-link and -no-as-needed
362         to various tests.
363         * testsuite/ld-elfweak/elfweak.exp: Likewise.
364         * testsuite/ld-elfvers/vers.exp (vers19): Fix -rpath-link option.
365
366 2017-01-03  Alan Modra  <amodra@gmail.com>
367
368         * testsuite/ld-elf/elf.exp: Check that $CC exists before C tests.
369         * testsuite/ld-pie/pie.exp: Likewise.
370         * testsuite/ld-plugin/lto.exp: Likewise.
371
372 2017-01-02  Alan Modra  <amodra@gmail.com>
373
374         * Makefile.am (bootstrap): Delete rule.
375         (ld-partial, ld1, ld1-full, ld2, ld3): Likewise.
376         (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
377         (HOSTING_LIBS, HOSTING_SLIBS, HOSTING_EMU): Likewise.
378         * configure.ac (HOSTING_CRT0, HOSTING_SCRT0): Don't define.
379         (HOSTING_LIBS, HOSTING_SLIBS): Likewise.
380         * configure.host (HOSTING_CRT0, HOSTING_LIBS): Don't define.
381         * Makefile.in: Regenerate.
382         * configure: Regenerate.
383         * testsuite/config/default.exp (get_link_files): Delete.
384         (HOSTING_CRT0, HOSTING_SCRT0, HOSTING_LIBS, HOSTING_SLIBS): Don't
385         define.
386         (ld_simple_link): Delete.
387         * testsuite/lib/ld-lib.exp (default_ld_link): Delete
388         (default_ld_simple_link): Rename to default_ld_link.
389         (ld_simple_link_defsyms): Rename to ld_link_defsyms.
390         (run_ld_link_tests): Use ld_link, not ld_simple_link.
391         (run_cc_link_tests): Likewise.
392         (run_ld_link_exec_tests): Use $CC or $CXX to link, not $ld.
393         Don't run exe when not native, and return unsupported.
394         * testsuite/ld-bootstrap/bootstrap.exp: Create gccld1 etc. dirs.
395         Link ld1 etc. using $CC.
396         * testsuite/ld-cdtest/cdtest.exp: Link cdtest using $CC.
397         * testsuite/ld-checks/checks.exp: Use ld_link, not ld_simple_link.
398         * testsuite/ld-cygwin/exe-export.exp: Likewise.
399         * testsuite/ld-elf/binutils.exp: Likewise.
400         * testsuite/ld-elf/eh-group.exp: Likewise.
401         * testsuite/ld-elf/exclude.exp: Likewise.
402         * testsuite/ld-elf/frame.exp: Likewise.
403         * testsuite/ld-elf/sec-to-seg.exp: Likewise.
404         * testsuite/ld-elf/tls_common.exp: Likewise.
405         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
406         * testsuite/ld-fastcall/fastcall.exp: Likewise.
407         * testsuite/ld-gc/gc.exp: Likewise.
408         * testsuite/ld-ifunc/binutils.exp: Likewise.
409         * testsuite/ld-mep/mep.exp: Likewise.
410         * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
411         * testsuite/ld-mn10300/mn10300.exp: Likewise.
412         * testsuite/ld-nios2/nios2.exp: Likewise.
413         * testsuite/ld-pe/pe-compile.exp: Likewise.
414         * testsuite/ld-pe/pe-run.exp: Likewise.
415         * testsuite/ld-pe/pe-run2.exp: Likewise.
416         * testsuite/ld-plugin/plugin.exp: Likewise.
417         * testsuite/ld-scripts/align.exp: Likewise.
418         * testsuite/ld-scripts/alignof.exp: Likewise.
419         * testsuite/ld-scripts/assert.exp: Likewise.
420         * testsuite/ld-scripts/defined.exp: Likewise.
421         * testsuite/ld-scripts/extern.exp: Likewise.
422         * testsuite/ld-scripts/log2.exp: Likewise.
423         * testsuite/ld-scripts/map-address.exp: Likewise.
424         * testsuite/ld-scripts/phdrs.exp: Likewise.
425         * testsuite/ld-scripts/phdrs2.exp: Likewise.
426         * testsuite/ld-scripts/script.exp: Likewise.
427         * testsuite/ld-scripts/section-flags.exp: Likewise.
428         * testsuite/ld-scripts/sizeof.exp: Likewise.
429         * testsuite/ld-scripts/sysroot-prefix.exp: Likewise.
430         * testsuite/ld-scripts/weak.exp: Likewise.
431         * testsuite/ld-selective/selective.exp: Likewise.
432         * testsuite/ld-sh/sh.exp: Likewise.
433         * testsuite/ld-sh/sh64/relax.exp: Likewise.
434         * testsuite/ld-sh/sh64/relfail.exp: Likewise.
435         * testsuite/ld-srec/srec.exp: Likewise.
436         * testsuite/ld-tic6x/tic6x.exp: Likewise.
437         * testsuite/ld-undefined/weak-undef.exp: Likewise.
438         * testsuite/ld-versados/versados.exp: Likewise.
439         * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
440         * testsuite/ld-xtensa/coalesce.exp: Likewise.
441         * testsuite/ld-xtensa/diff_overflow.exp: Likewise.
442         * testsuite/ld-xtensa/lcall.exp: Likewise.
443         * testsuite/ld-elf/audit.exp: Run non-native too.
444         * testsuite/ld-elf/compress.exp: Likewise.  Replace ld options with
445         gcc -Wl, options.
446         * testsuite/ld-elf/dwarf.exp: Run non-native too.  Use ld_link,
447         not ld_simple_link.  Add -Wl,--no-as-needed to some tests.
448         * testsuite/ld-elf/elf.exp: Run non-native too.  Formatting.
449         * testsuite/ld-elf/indirect.exp: Run non-native too.  Add
450         -Wl,--no-as-needed to most tests.
451         * testsuite/ld-elf/shared.exp: Run non-native too.  Use braces
452         to simplify quoting.  Set run_tests using [list] rather than
453         brace assignment to expand $extralibs.  Add -Wl,--no-as-needed
454         to many test.  Prefix ld options with -Wl,.
455         (mix_pic_and_non_pic): Don't run exe if not native.
456         * testsuite/ld-elf/wrap.exp: Run non-native too.  Add
457         -Wl,--no-as-needed and prefix ld options with -Wl,.
458         * testsuite/ld-elfvers/vers.exp: Run non-native too.  Use ld_link,
459         not ld_simple_link.
460         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
461         (visibility_test): Don't run exe if not native.
462         * testsuite/ld-elfweak/elfweak.exp: Run non-native too.  Use ld_link,
463         not ld_simple_link.
464         (build_exec): Don't run exe if not native.
465         * testsuite/ld-ifunc/ifunc.exp: Run non-native too.  Use ld_link,
466         not ld_simple_link.  Link using $CC.  Add -Wl,--no-as-needed
467         to some tests and prefix ld options with -Wl,.  Expect GNU
468         for hppa-linux even when no ifuncs.  Delete cleanup.
469         * testsuite/ld-pie/pie.exp: Run non-native too.
470         * testsuite/ld-plugin/lto.exp: Likewise.
471         * testsuite/ld-shared/shared.exp: Likewise.  Use ld_link,
472         not ld_simple_link.
473         (shared_test): Don't run exe if not native.
474         * testsuite/ld-size/size.exp: Run non-native too.  Add
475         -Wl,--no-as-needed to some tests.  Prefix ld options with -Wl,.
476         * testsuite/ld-unique/unique.exp: Run non-native too.  Use ld_link,
477         not ld_simple_link.  Link using $CC.  Add -Wl,--no-as-needed
478         to some tests and prefix ld options with -Wl,.  Expect GNU
479         for hppa-linux even when no unique syms.  Delete cleanup.
480         * testsuite/ld-x86-64/tls.exp: Add -Wl,--no-as-needed to some
481         tests and prefix ld options with -Wl,.
482         * testsuite/ld-x86-64/x86-64.exp: Use ld_link, not ld_simple_link.
483         Add -Wl,--no-as-needed to some tests.  Prefix ld options with -Wl,.
484
485 2017-01-02  Alan Modra  <amodra@gmail.com>
486
487         * emulparams/elf32metag.sh (COMMONPAGESIZE): Define.
488
489 2017-01-02  Alan Modra  <amodra@gmail.com>
490
491         PR ld/21000
492         * emulparams/hppalinux.sh (DATA_ADDR, SHLIB_DATA_ADDR): Don't define.
493         (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END, DATA_SEGMENT_RELRO_END): Define.
494         * scripttempl/elf.sc: Don't define the above if DATA_SEGMENT_ALIGN
495         is already defined.
496
497 2017-01-02  Alan Modra  <amodra@gmail.com>
498
499         Update year range in copyright notice of all files.
500
501 For older changes see ChangeLog-2016
502 \f
503 Copyright (C) 2017 Free Software Foundation, Inc.
504
505 Copying and distribution of this file, with or without modification,
506 are permitted in any medium without royalty provided the copyright
507 notice and this notice are preserved.
508
509 Local Variables:
510 mode: change-log
511 left-margin: 8
512 fill-column: 74
513 version-control: never
514 End: