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