Document -z text, -z notext and -z textoff
[binutils-gdb.git] / ld / ChangeLog
1 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
2
3 * ld.texinfo: Document -z text, -z notext and -z textoff.
4 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
5 -z text, -z notext and -z textoff.
6
7 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
8
9 * configure.ac: Add AC_FUNC_MMAP.
10 * config.in: Regenerated.
11 * configure: Likewise.
12 * plugin.c: Include <sys/mman.h>.
13 (MAP_FAILED): New. Defined if not defined.
14 (PROT_READ): Likewise.
15 (MAP_PRIVATE): Likewise.
16 (view_buffer_t): New.
17 (plugin_input_file_t): Add view_buffer.
18 (get_view): Try mmap and cache the view buffer.
19 (plugin_maybe_claim): Initialize view_buffer.
20
21 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
22
23 * plugin.c (release_input_file): Set fd to -1 after closing it.
24 (plugin_maybe_claim): Close fd only if fd != -1.
25
26 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
27
28 PR ld/17878
29 * plugin.c: Include <errno.h>.
30 (errno): New. Declare if needed.
31 (plugin_input_file_t): New.
32 (get_input_file): Implemented.
33 (get_view): Likewise.
34 (release_input_file): Likewise.
35 (add_symbols): Updated.
36 (get_symbols): Likewise.
37 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
38 only for a bfd_object input.
39
40 2015-02-02 Alan Modra <amodra@gmail.com>
41
42 * emultempl/ppc64elf.em (toc_section_name): New var.
43 (ppc_after_open): Set it.
44 (ppc_before_allocation): Use it.
45 (gld${EMULATION_NAME}_after_allocation): Here too.
46
47 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
48
49 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
50 with link_info.lto_plugin_active.
51 * ldlang.c (lang_process): Likewise.
52 * ldmain.c (add_archive_element): Likewise.
53 * plugin.c (plugin_active_plugins_p): Removed.
54 * plugin.h (plugin_active_plugins_p): Likewise.
55
56 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
57
58 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
59 ...
60 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
61
62 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
63
64 PR ld/17878
65 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
66 (get_view): New function.
67 (set_tv_header): Handle LDPT_GET_VIEW.
68 * testplug.c (tag_names): Add LDPT_GET_VIEW.
69 (tv_get_view): New.
70 (dump_tv_tag): Handle LDPT_GET_VIEW.
71 (parse_tv_tag): Likewise.
72
73 2015-01-28 Alan Modra <amodra@gmail.com>
74
75 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
76 * emultempl/ppc64elf.em (params): Init new field.
77 (ppc_after_open): New function.
78 (LDEMUL_AFTER_OPEN): Define.
79 * ldlang.c (lang_final): Whitespace fix.
80
81 2015-01-28 James Bowman <james.bowman@ftdichip.com>
82
83 * Makefile.am: Add FT32 files.
84 * configure.tgt: Handle FT32 target.
85 * emulparams/elf32ft32.sh: New file.
86 * scripttempl/ft32.sc: New file.
87 * Makefile.in: Regenerate.
88
89 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
90
91 PR 4643
92 * ldexp.c (fold_name): Fold LENGTH only after
93 lang_first_phase_enum.
94 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
95 rightaway.
96 * ldlang.h (struct memory_region_struct): Add origin_exp and
97 length_exp fields.
98 * ldlang.c (lang_do_memory_regions): New.
99 (lang_memory_region_lookup): Initialize origin_exp and
100 length_exp fields.
101 (lang_process): Call lang_do_memory_regions.
102
103 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
104
105 * ldlang.c (print_assignment): Only evaluate the expression for a
106 PROVIDE'd assignment when the destination is being defined.
107 Display a special message for PROVIDE'd symbols that are not being
108 provided.
109
110 2015-01-20 Alan Modra <amodra@gmail.com>
111
112 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
113 (OTHER_BSS_SYMBOLS): ..this.
114 (OTHER_PLT_RELOC_SECTIONS): Don't define.
115 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
116 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
117 (OTHER_RELRO_SECTIONS_2): ..here.
118 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
119
120 2015-01-20 Alan Modra <amodra@gmail.com>
121
122 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
123 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
124 (OTHER_RELRO_SECTIONS_2): ..here.
125 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
126 PLT_BEFORE_GOT): Define.
127 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
128 PLT_BEFORE_GOT combination.
129 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
130
131 2015-01-20 Alan Modra <amodra@gmail.com>
132
133 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
134 (OTHER_RELRO_SECTIONS_2): ..here, new define.
135 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
136
137 2015-01-19 Alan Modra <amodra@gmail.com>
138
139 PR ld/17615
140 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
141
142 2015-01-14 Jiong Wang <jiong.wang@arm.com>
143
144 * ld-arm/elf32-reject.s: New testcase.
145 * ld-arm/elf32-reject.d: Likewise.
146 * ld-arm/elf32-reject-pie.s: Likewise.
147 * ld-arm/elf32-reject-pie.d: Likewise.
148 * ld-arm/arm-elf.exp: Run new testcases.
149 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
150 * ld-arm/ifunc-7.rd: Likewise.
151 * ld-arm/ifunc-7.gd: Likewise.
152 * ld-arm/ifunc-7.dd: Likewise.
153 * ld-arm/ifunc-8.s: Likewise.
154 * ld-arm/ifunc-8.rd: Likewise.
155 * ld-arm/ifunc-8.gd: Likewise.
156 * ld-arm/ifunc-8.dd: Likewise.
157
158 2015-01-01 Alan Modra <amodra@gmail.com>
159
160 * ldver.c (ldversion): Just print current year.
161
162 2015-01-01 Alan Modra <amodra@gmail.com>
163
164 Update year range in copyright notice of all files.
165
166 For older changes see ChangeLog-2014
167 \f
168 Copyright (C) 2015 Free Software Foundation, Inc.
169
170 Copying and distribution of this file, with or without modification,
171 are permitted in any medium without royalty provided the copyright
172 notice and this notice are preserved.
173
174 Local Variables:
175 mode: change-log
176 left-margin: 8
177 fill-column: 74
178 version-control: never
179 End: