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