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