Commit | Line | Data |
---|---|---|
97a232d7 NC |
1 | 2018-01-12 Nick Clifton <nickc@redhat.com> |
2 | ||
3 | * emultempl/elf32.em (_handle_option): Add support for "-z undefs" | |
4 | as the opposite of "-z defs". | |
5 | * ld.texinfo: Document the new option. Update the description of | |
6 | the -z defs option to make it clear that it does generate an error | |
7 | if an undefined symbol reference is found in an object file whilst | |
8 | creating a shared library. | |
9 | * NEWS: Document this new feature. | |
10 | ||
33eff4ce L |
11 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
12 | ||
13 | * testsuite/ld-elf/pr22393-2a.rd: Replace "-z textonly" with | |
14 | "-z separate-code". | |
15 | * testsuite/ld-elf/pr22393-2b.rd: Likewise. | |
16 | * testsuite/ld-x86-64/pr22393-3a.rd: Likewise. | |
17 | * testsuite/ld-x86-64/pr22393-3b.rd: Likewise. | |
18 | ||
cf9e7f1f L |
19 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
20 | ||
21 | PR ld/22393 | |
22 | * testsuite/ld-x86-64/pr22393-3a.c: New file. | |
23 | * testsuite/ld-x86-64/pr22393-3a.rd: Likewise. | |
24 | * testsuite/ld-x86-64/pr22393-3b.c: Likewise. | |
25 | * testsuite/ld-x86-64/pr22393-3b.rd: Likewise. | |
26 | * testsuite/ld-x86-64/x86-64.exp: Run tests for -z separate-code | |
27 | -z max-page-size=0x1000. | |
28 | ||
d346bb27 L |
29 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
30 | ||
31 | PR ld/22393 | |
32 | * testsuite/ld-elf/pr16322.d: Add -z noseparate-code. | |
33 | * testsuite/ld-elf/pr22393-1.s: New file. | |
34 | * testsuite/ld-elf/pr22393-1a.d: Likewise. | |
35 | * testsuite/ld-elf/pr22393-1b.d: Likewise. | |
36 | * testsuite/ld-elf/pr22393-1c.d: Likewise. | |
37 | * testsuite/ld-elf/pr22393-1d.d: Likewise. | |
38 | * testsuite/ld-elf/pr22393-1e.d: Likewise. | |
39 | * testsuite/ld-elf/pr22393-1f.d: Likewise. | |
40 | * testsuite/ld-elf/pr22393-2a.c: Likewise. | |
41 | * testsuite/ld-elf/pr22393-2a.rd: Likewise. | |
42 | * testsuite/ld-elf/pr22393-2b.c: Likewise. | |
43 | * testsuite/ld-elf/pr22393-2b.rd: Likewise. | |
44 | * testsuite/ld-elf/shared.exp: Run tests for -z separate-code. | |
45 | ||
47acac12 L |
46 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
47 | ||
48 | PR ld/22393 | |
49 | * NEWS: Mention "-z separate-code". | |
50 | * emultempl/elf32.em (gld${EMULATION_NAME}_get_script): Get | |
51 | builtin linker scripts and return linker scripts from disk for | |
52 | "-z separate-code". | |
53 | (gld${EMULATION_NAME}_handle_option): Handle "-z separate-code" | |
54 | and "-z noseparate-code". | |
55 | * genscripts.sh: Generate linker scripts for "-z separate-code". | |
56 | (LD_FLAG): Set to *textonly for "-z separate-code". | |
57 | * ld.texinfo: Document "-z separate-code". | |
58 | * lexsup.c (elf_shlib_list_options): Add linker help messsages | |
59 | for "-z separate-code" and "-z noseparate-code". | |
60 | * scripttempl/elf.sc (SEPARATE_TEXT): New | |
61 | (TEXT_SEGMENT_ALIGN): Likewise. | |
62 | Use ${TEXT_SEGMENT_ALIGN} to align and pad text segment to | |
63 | ${MAXPAGESIZE}. | |
64 | ||
d664fd41 L |
65 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
66 | ||
67 | PR ld/22649 | |
68 | * testsuite/ld-elf/pr22649-1.s: New file. | |
69 | * testsuite/ld-elf/pr22649-2a.s: Likewise. | |
70 | * testsuite/ld-elf/pr22649-2b.s: Likewise. | |
71 | * testsuite/ld-elf/pr22649.msg: Likewise. | |
72 | * testsuite/ld-elf/shared.exp: Run ld/22649 tests. | |
73 | ||
8b6f4cd3 L |
74 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
75 | ||
76 | PR ld/22677 | |
77 | * scripttempl/elf.sc (PREINIT_ARRAY): New. | |
78 | Don't add .preinit_array for ld -r. | |
79 | * testsuite/ld-elf/pr22677.d: New file. | |
80 | * testsuite/ld-elf/pr22677.s: Likewise. | |
81 | ||
65f14869 AB |
82 | 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com> |
83 | ||
84 | * ldexp.h (union etree_union): Remove defsym field. | |
85 | * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym | |
86 | parameter. | |
87 | (exp_assign): Remove passing of defsym parameter. | |
88 | (exp_defsym): Likewise. | |
89 | (exp_provide): Likewise. | |
90 | ||
eab62f2f AB |
91 | 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com> |
92 | ||
93 | * ldexp.c (exp_fold_tree_1): Rework condition underwhich provide | |
94 | nodes are ignored in the tree walk, and move the location at which | |
95 | we change provide nodes into provided nodes. | |
96 | (exp_init_os): Add etree_provided. | |
97 | * testsuite/ld-scripts/provide-6.d: New file. | |
98 | * testsuite/ld-scripts/provide-6.t: New file. | |
99 | * testsuite/ld-scripts/provide-7.d: New file. | |
100 | * testsuite/ld-scripts/provide-7.t: New file. | |
101 | * testsuite/ld-scripts/provide-8.d: New file. | |
102 | * testsuite/ld-scripts/provide-8.t: New file. | |
103 | ||
8be965c5 AB |
104 | 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com> |
105 | ||
106 | * testsuite/ld-scripts/provide-3.d: Add xfail directive. | |
107 | * testsuite/ld-scripts/provide-4.d: Use new map file name. | |
108 | * testsuite/ld-scripts/provide-5.d: Use new map file name. | |
109 | * testsuite/ld-scripts/provide-4-map.d: Renamed to... | |
110 | * testsuite/ld-scripts/provide-4.map: ...this. | |
111 | * testsuite/ld-scripts/provide-5-map.d: Renamed to... | |
112 | * testsuite/ld-scripts/provide-5.map: ...this. | |
113 | * testsuite/ld-scripts/provide.exp: Move xfail into provide-3.d | |
114 | file, and run tests in a loop. | |
115 | ||
b3b9f8d3 AB |
116 | 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com> |
117 | ||
118 | * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing | |
119 | PROVIDE statements. | |
120 | * testsuite/ld-scripts/provide-4.map: Update expected output. | |
121 | * testsuite/ld-scripts/provide-5.map: Likewise. | |
122 | ||
6bd0a312 L |
123 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
124 | ||
125 | PR ld/22696 | |
126 | * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR. | |
127 | ||
74ccf6db JW |
128 | 2018-01-09 Jim Wilson <jimw@sifive.com> |
129 | ||
130 | * testsuite/ld-elf/eh-frame-hdr.d (#xfail): Delete | |
131 | (#alltargets): Renamed from #target. Add shared. | |
132 | * testsuite/lib/ld-lib.exp (run_dump_test): Document shared target. | |
133 | Document alltargets option. Add support for alltargets option. | |
134 | (istarget): Add support for shared target. | |
135 | ||
7615ca1d JW |
136 | 2018-01-08 Jim Wilson <jimw@sifive.com> |
137 | ||
138 | * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start | |
139 | instead of .text. | |
140 | * testsuite/ld-riscv-elf/c-lui.s: Add _start label. | |
141 | * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Before __global_pointer$ | |
142 | tests, add call to check_shared_lib_support. | |
143 | ||
be1dce26 JW |
144 | 2018-01-05 Jim Wilson <jimw@sifive.com> |
145 | ||
35eeb78f JW |
146 | * testsuite/ld-riscv-elf/disas-jalr.d: New. |
147 | * testsuite/ld-riscv-elf/disas-jalr.s: New. | |
148 | * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run new testcase. | |
149 | ||
be1dce26 JW |
150 | * emulparams/elf32lriscv-defs.sh (GENERATE_SHLIB_SCRIPT): Move inside |
151 | case on $target, and don't set for riscv*-elf targets. | |
152 | (GENERATE_PIE_SCRIPT): Likewise. | |
153 | ||
219d1afa AM |
154 | 2018-01-03 Alan Modra <amodra@gmail.com> |
155 | ||
156 | Update year range in copyright notice of all files. | |
157 | ||
1e563868 | 158 | For older changes see ChangeLog-2017 |
3499769a | 159 | \f |
1e563868 | 160 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
161 | |
162 | Copying and distribution of this file, with or without modification, | |
163 | are permitted in any medium without royalty provided the copyright | |
164 | notice and this notice are preserved. | |
165 | ||
166 | Local Variables: | |
167 | mode: change-log | |
168 | left-margin: 8 | |
169 | fill-column: 74 | |
170 | version-control: never | |
171 | End: |