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