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