ld: Replace "-z textonly" with "-z separate-code"
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
33eff4ce
L
12018-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
cf9e7f1f
L
92018-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
d346bb27
L
192018-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
47acac12
L
362018-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
d664fd41
L
552018-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
8b6f4cd3
L
642018-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
65f14869
AB
722018-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
eab62f2f
AB
812018-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
8be965c5
AB
942018-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
b3b9f8d3
AB
1062018-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
6bd0a312
L
1132018-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
74ccf6db
JW
1182018-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
7615ca1d
JW
1262018-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
be1dce26
JW
1342018-01-05 Jim Wilson <jimw@sifive.com>
135
35eeb78f
JW
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
be1dce26
JW
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
219d1afa
AM
1442018-01-03 Alan Modra <amodra@gmail.com>
145
146 Update year range in copyright notice of all files.
147
1e563868 148For older changes see ChangeLog-2017
3499769a 149\f
1e563868 150Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
151
152Copying and distribution of this file, with or without modification,
153are permitted in any medium without royalty provided the copyright
154notice and this notice are preserved.
155
156Local Variables:
157mode: change-log
158left-margin: 8
159fill-column: 74
160version-control: never
161End:
This page took 0.149043 seconds and 4 git commands to generate.