ld: Create a new LOAD segment for separate code segment
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
47acac12
L
12018-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
d664fd41
L
202018-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
8b6f4cd3
L
292018-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
65f14869
AB
372018-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
eab62f2f
AB
462018-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
8be965c5
AB
592018-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
b3b9f8d3
AB
712018-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
6bd0a312
L
782018-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
74ccf6db
JW
832018-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
7615ca1d
JW
912018-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
be1dce26
JW
992018-01-05 Jim Wilson <jimw@sifive.com>
100
35eeb78f
JW
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
be1dce26
JW
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
219d1afa
AM
1092018-01-03 Alan Modra <amodra@gmail.com>
110
111 Update year range in copyright notice of all files.
112
1e563868 113For older changes see ChangeLog-2017
3499769a 114\f
1e563868 115Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
116
117Copying and distribution of this file, with or without modification,
118are permitted in any medium without royalty provided the copyright
119notice and this notice are preserved.
120
121Local Variables:
122mode: change-log
123left-margin: 8
124fill-column: 74
125version-control: never
126End:
This page took 0.130934 seconds and 4 git commands to generate.