1 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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
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
20 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
29 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
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.
37 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
39 * ldexp.h (union etree_union): Remove defsym field.
40 * ldexp.c (exp_assop): Remove defsym parameter, and use of defsym
42 (exp_assign): Remove passing of defsym parameter.
43 (exp_defsym): Likewise.
44 (exp_provide): Likewise.
46 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
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.
59 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
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.
71 2018-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
73 * ldexp.c (exp_print_tree): Use '=' instead of ',' when printing
75 * testsuite/ld-scripts/provide-4.map: Update expected output.
76 * testsuite/ld-scripts/provide-5.map: Likewise.
78 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
81 * scripttempl/elf.sc: Fix the order of SHLIB_RODATA_ADDR.
83 2018-01-09 Jim Wilson <jimw@sifive.com>
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.
91 2018-01-08 Jim Wilson <jimw@sifive.com>
93 * testsuite/ld-riscv-elf/c-lui.d: Don't use -shared. Check for _start
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.
99 2018-01-05 Jim Wilson <jimw@sifive.com>
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.
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.
109 2018-01-03 Alan Modra <amodra@gmail.com>
111 Update year range in copyright notice of all files.
113 For older changes see ChangeLog-2017
115 Copyright (C) 2018 Free Software Foundation, Inc.
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.
125 version-control: never