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