1 2018-01-12 Alan Modra <amodra@gmail.com>
3 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
4 initialization" for currently failing targets.
6 2018-01-12 Alan Modra <amodra@gmail.com>
9 * testsuite/ld-elf/pr22649.msg: Allow other messages.
10 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
11 supported before running ld/22649 tests.
13 2018-01-12 Nick Clifton <nickc@redhat.com>
15 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
16 as the opposite of "-z defs".
17 * ld.texinfo: Document the new option. Update the description of
18 the -z defs option to make it clear that it does generate an error
19 if an undefined symbol reference is found in an object file whilst
20 creating a shared library.
21 * NEWS: Document this new feature.
23 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
25 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
27 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
28 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
29 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
31 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
34 * testsuite/ld-x86-64/pr22393-3a.c: New file.
35 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
36 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
37 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
38 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
39 -z max-page-size=0x1000.
41 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
44 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
45 * testsuite/ld-elf/pr22393-1.s: New file.
46 * testsuite/ld-elf/pr22393-1a.d: Likewise.
47 * testsuite/ld-elf/pr22393-1b.d: Likewise.
48 * testsuite/ld-elf/pr22393-1c.d: Likewise.
49 * testsuite/ld-elf/pr22393-1d.d: Likewise.
50 * testsuite/ld-elf/pr22393-1e.d: Likewise.
51 * testsuite/ld-elf/pr22393-1f.d: Likewise.
52 * testsuite/ld-elf/pr22393-2a.c: Likewise.
53 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
54 * testsuite/ld-elf/pr22393-2b.c: Likewise.
55 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
56 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
58 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
61 * NEWS: Mention "-z separate-code".
62 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
63 builtin linker scripts and return linker scripts from disk for
65 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
66 and "-z noseparate-code".
67 * genscripts.sh: Generate linker scripts for "-z separate-code".
68 (LD_FLAG): Set to *textonly for "-z separate-code".
69 * ld.texinfo: Document "-z separate-code".
70 * lexsup.c (elf_shlib_list_options): Add linker help messsages
71 for "-z separate-code" and "-z noseparate-code".
72 * scripttempl/elf.sc (SEPARATE_TEXT): New
73 (TEXT_SEGMENT_ALIGN): Likewise.
74 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
77 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
80 * testsuite/ld-elf/pr22649-1.s: New file.
81 * testsuite/ld-elf/pr22649-2a.s: Likewise.
82 * testsuite/ld-elf/pr22649-2b.s: Likewise.
83 * testsuite/ld-elf/pr22649.msg: Likewise.
84 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
86 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
89 * scripttempl/elf.sc (PREINIT_ARRAY): New.
90 Don't add .preinit_array for ld -r.
91 * testsuite/ld-elf/pr22677.d: New file.
92 * testsuite/ld-elf/pr22677.s: Likewise.
94 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
96 * ldexp.h (union etree_union): Remove defsym field.
97 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
99 (exp_assign): Remove passing of defsym parameter.
100 (exp_defsym): Likewise.
101 (exp_provide): Likewise.
103 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
105 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
106 nodes are ignored in the tree walk, and move the location at which
107 we change provide nodes into provided nodes.
108 (exp_init_os): Add etree_provided.
109 * testsuite/ld-scripts/provide-6.d: New file.
110 * testsuite/ld-scripts/provide-6.t: New file.
111 * testsuite/ld-scripts/provide-7.d: New file.
112 * testsuite/ld-scripts/provide-7.t: New file.
113 * testsuite/ld-scripts/provide-8.d: New file.
114 * testsuite/ld-scripts/provide-8.t: New file.
116 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
118 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
119 * testsuite/ld-scripts/provide-4.d: Use new map file name.
120 * testsuite/ld-scripts/provide-5.d: Use new map file name.
121 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
122 * testsuite/ld-scripts/provide-4.map: ...this.
123 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
124 * testsuite/ld-scripts/provide-5.map: ...this.
125 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
126 file, and run tests in a loop.
128 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
130 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
132 * testsuite/ld-scripts/provide-4.map: Update expected output.
133 * testsuite/ld-scripts/provide-5.map: Likewise.
135 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
138 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
140 2018-01-09 Jim Wilson <jimw@sifive.com>
142 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
143 (#alltargets): Renamed from #target. Add shared.
144 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
145 Document alltargets option. Add support for alltargets option.
146 (istarget): Add support for shared target.
148 2018-01-08 Jim Wilson <jimw@sifive.com>
150 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
152 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
153 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
154 tests, add call to check_shared_lib_support.
156 2018-01-05 Jim Wilson <jimw@sifive.com>
158 * testsuite/ld-riscv-elf/disas-jalr.d: New.
159 * testsuite/ld-riscv-elf/disas-jalr.s: New.
160 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
162 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
163 case on $target, and don't set for riscv*-elf targets.
164 (GENERATE_PIE_SCRIPT): Likewise.
166 2018-01-03 Alan Modra <amodra@gmail.com>
168 Update year range in copyright notice of all files.
170 For older changes see ChangeLog-2017
172 Copyright (C) 2018 Free Software Foundation, Inc.
174 Copying and distribution of this file, with or without modification,
175 are permitted in any medium without royalty provided the copyright
176 notice and this notice are preserved.
182 version-control: never