1 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
3 * testsuite/ld-elf/linkinfo1a.d: Updated for slightly different
4 PLT/GOT order/layout for Solaris/x86 targets.
5 * testsuite/ld-elf/linkinfo1b.d: Likewise.
7 2018-01-18 H.J. Lu <hongjiu.lu@intel.com>
10 * emultempl/solaris2.em (elf_solaris2_after_allocation): Fold
12 (elf_solaris2_before_allocation): This.
13 (LDEMUL_AFTER_ALLOCATION): Removed.
15 2018-01-18 Alan Modra <amodra@gmail.com>
17 * emultempl/ppc32elf.em: Support optional --plt-align arg.
18 * emultempl/ppc64elf.em: Support negative --plt-align arg.
20 2018-01-17 Alan Modra <amodra@gmail.com>
22 * emultempl/ppc32elf.em (params): Init new field.
23 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
24 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
25 (PARSE_AND_LIST_LONGOPTS): Handle new options.
26 (PARSE_AND_LIST_ARGS_CASES): Likewise.
27 (PARSE_AND_LIST_OPTIONS): Likewise.
28 * emultempl/ppc64elf.em (params): Init new field.
29 (OPTION_SPECULATE_INDIRECT_JUMPS): Define.
30 (OPTION_NO_SPECULATE_INDIRECT_JUMPS): Define.
31 (PARSE_AND_LIST_LONGOPTS): Handle --speculate-indirect-jumps.
32 (PARSE_AND_LIST_OPTIONS): Likewise.
33 (PARSE_AND_LIST_ARGS_CASES): Likewise.
34 * ld.texinfo (--no-plt-thread-safe): Correct itemx.
35 (--speculate-indirect-jumps): Document.
36 * testsuite/ld-powerpc/elfv2exe.d,
37 * testsuite/ld-powerpc/elfv2so.d,
38 * testsuite/ld-powerpc/relbrlt.d,
39 * testsuite/ld-powerpc/powerpc.exp: Disable plt alignment and
40 speculation barriers on various tests.
42 2018-01-17 Alan Modra <amodra@gmail.com>
44 * emultempl/ppc32elf.em (params): Init new field.
45 (enum ppc32_opt): New enum to define OPTION_* values. Add
46 OPTION_PLT_ALIGN and OPTION_NO_PLT_ALIGN.
47 (PARSE_AND_LIST_LONGOPTS): Handle new options.
48 (PARSE_AND_LIST_ARGS_CASES): Likewise.
49 (PARSE_AND_LIST_OPTIONS): Likewise. Break up help output.
50 * emultempl/ppc64elf.em (ppc_add_stub_section): Init alignment
51 correctly for negative --plt-stub-align.
52 * testsuite/ld-powerpc/elfv2exe.d,
53 * testsuite/ld-powerpc/elfv2so.d,
54 * testsuite/ld-powerpc/relbrlt.d,
55 * testsuite/ld-powerpc/relbrlt.s,
56 * testsuite/ld-powerpc/tlsexe.d,
57 * testsuite/ld-powerpc/tlsexe.r,
58 * testsuite/ld-powerpc/tlsexe32.d,
59 * testsuite/ld-powerpc/tlsexe32.g,
60 * testsuite/ld-powerpc/tlsexe32.r,
61 * testsuite/ld-powerpc/tlsexetoc.d,
62 * testsuite/ld-powerpc/tlsexetoc.r,
63 * testsuite/ld-powerpc/tlsopt5_32.d,
64 * testsuite/ld-powerpc/tlsso.d,
65 * testsuite/ld-powerpc/tlstocso.d: Update for changed stub order.
67 2018-01-16 Nick Clifton <nickc@redhat.com>
69 * po/pt_BR.po: Updated Brazilian Portugese translation.
71 2018-01-15 Nick Clifton <nickc@redhat.com>
73 * po/uk.po: Updated Ukranian translation.
75 2018-01-13 Nick Clifton <nickc@redhat.com>
77 * po/ld.pot: Regenerated.
79 2018-01-13 Nick Clifton <nickc@redhat.com>
81 * configure: Regenerate.
83 2018-01-13 Nick Clifton <nickc@redhat.com>
86 * NEWS: Add marker for 2.30.
88 2018-01-12 Alan Modra <amodra@gmail.com>
90 * testsuite/ld-elf/elf.exp: xfail "pr22374 function pointer
91 initialization" for currently failing targets.
93 2018-01-12 Alan Modra <amodra@gmail.com>
96 * testsuite/ld-elf/pr22649.msg: Allow other messages.
97 * testsuite/ld-elf/shared.exp: Check that --gc-sections is
98 supported before running ld/22649 tests.
100 2018-01-12 Nick Clifton <nickc@redhat.com>
102 * emultempl/elf32.em (_handle_option): Add support for "-z undefs"
103 as the opposite of "-z defs".
104 * ld.texinfo: Document the new option. Update the description of
105 the -z defs option to make it clear that it does generate an error
106 if an undefined symbol reference is found in an object file whilst
107 creating a shared library.
108 * NEWS: Document this new feature.
110 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
112 * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with
114 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
115 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
116 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
118 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
121 * testsuite/ld-x86-64/pr22393-3a.c: New file.
122 * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
123 * testsuite/ld-x86-64/pr22393-3b.c: Likewise.
124 * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
125 * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code
126 -z max-page-size=0x1000.
128 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
131 * testsuite/ld-elf/pr16322.d: Add -z noseparate-code.
132 * testsuite/ld-elf/pr22393-1.s: New file.
133 * testsuite/ld-elf/pr22393-1a.d: Likewise.
134 * testsuite/ld-elf/pr22393-1b.d: Likewise.
135 * testsuite/ld-elf/pr22393-1c.d: Likewise.
136 * testsuite/ld-elf/pr22393-1d.d: Likewise.
137 * testsuite/ld-elf/pr22393-1e.d: Likewise.
138 * testsuite/ld-elf/pr22393-1f.d: Likewise.
139 * testsuite/ld-elf/pr22393-2a.c: Likewise.
140 * testsuite/ld-elf/pr22393-2a.rd: Likewise.
141 * testsuite/ld-elf/pr22393-2b.c: Likewise.
142 * testsuite/ld-elf/pr22393-2b.rd: Likewise.
143 * testsuite/ld-elf/shared.exp: Run tests for -z separate-code.
145 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
148 * NEWS: Mention "-z separate-code".
149 * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get
150 builtin linker scripts and return linker scripts from disk for
152 (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code"
153 and "-z noseparate-code".
154 * genscripts.sh: Generate linker scripts for "-z separate-code".
155 (LD_FLAG): Set to *textonly for "-z separate-code".
156 * ld.texinfo: Document "-z separate-code".
157 * lexsup.c (elf_shlib_list_options): Add linker help messsages
158 for "-z separate-code" and "-z noseparate-code".
159 * scripttempl/elf.sc (SEPARATE_TEXT): New
160 (TEXT_SEGMENT_ALIGN): Likewise.
161 Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to
164 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
167 * testsuite/ld-elf/pr22649-1.s: New file.
168 * testsuite/ld-elf/pr22649-2a.s: Likewise.
169 * testsuite/ld-elf/pr22649-2b.s: Likewise.
170 * testsuite/ld-elf/pr22649.msg: Likewise.
171 * testsuite/ld-elf/shared.exp: Run ld/22649 tests.
173 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
176 * scripttempl/elf.sc (PREINIT_ARRAY): New.
177 Don't add .preinit_array for ld -r.
178 * testsuite/ld-elf/pr22677.d: New file.
179 * testsuite/ld-elf/pr22677.s: Likewise.
181 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
183 * ldexp.h (union etree_union): Remove defsym field.
184 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
186 (exp_assign): Remove passing of defsym parameter.
187 (exp_defsym): Likewise.
188 (exp_provide): Likewise.
190 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
192 * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide
193 nodes are ignored in the tree walk, and move the location at which
194 we change provide nodes into provided nodes.
195 (exp_init_os): Add etree_provided.
196 * testsuite/ld-scripts/provide-6.d: New file.
197 * testsuite/ld-scripts/provide-6.t: New file.
198 * testsuite/ld-scripts/provide-7.d: New file.
199 * testsuite/ld-scripts/provide-7.t: New file.
200 * testsuite/ld-scripts/provide-8.d: New file.
201 * testsuite/ld-scripts/provide-8.t: New file.
203 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
205 * testsuite/ld-scripts/provide-3.d: Add xfail directive.
206 * testsuite/ld-scripts/provide-4.d: Use new map file name.
207 * testsuite/ld-scripts/provide-5.d: Use new map file name.
208 * testsuite/ld-scripts/provide-4-map.d: Renamed to...
209 * testsuite/ld-scripts/provide-4.map: ...this.
210 * testsuite/ld-scripts/provide-5-map.d: Renamed to...
211 * testsuite/ld-scripts/provide-5.map: ...this.
212 * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d
213 file, and run tests in a loop.
215 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
217 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
219 * testsuite/ld-scripts/provide-4.map: Update expected output.
220 * testsuite/ld-scripts/provide-5.map: Likewise.
222 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
225 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
227 2018-01-09 Jim Wilson <jimw@sifive.com>
229 * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete
230 (#alltargets): Renamed from #target. Add shared.
231 * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target.
232 Document alltargets option. Add support for alltargets option.
233 (istarget): Add support for shared target.
235 2018-01-08 Jim Wilson <jimw@sifive.com>
237 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
239 * testsuite/ld-riscv-elf/c-lui.s: Add _start label.
240 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$
241 tests, add call to check_shared_lib_support.
243 2018-01-05 Jim Wilson <jimw@sifive.com>
245 * testsuite/ld-riscv-elf/disas-jalr.d: New.
246 * testsuite/ld-riscv-elf/disas-jalr.s: New.
247 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase.
249 * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside
250 case on $target, and don't set for riscv*-elf targets.
251 (GENERATE_PIE_SCRIPT): Likewise.
253 2018-01-03 Alan Modra <amodra@gmail.com>
255 Update year range in copyright notice of all files.
257 For older changes see ChangeLog-2017
259 Copyright (C) 2018 Free Software Foundation, Inc.
261 Copying and distribution of this file, with or without modification,
262 are permitted in any medium without royalty provided the copyright
263 notice and this notice are preserved.
269 version-control: never