[AArch64] Emit DATA_MAP in order within text section
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
a0bde398
L
12015-04-01 H.J. Lu <hongjiu.lu@intel.com>
2
3 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Work
4 around a GCC uninitialized warning bug fixed in GCC 4.6.
5
4106101c
MS
62015-04-01 Tejas Belagod <tejas.belagod@arm.com>
7
8 * emultempl/aarch64elf.em
9 (aarch64_elf_create_output_section_statements): Add parameter in
10 bfd_elf${ELFSIZE}_aarch64_set_options call.
11 (OPTION_FIX_ERRATUM_843419): Define.
12 (PARSE_AND_LIST_LONGOPTS): Add fix-cortex-a53-843419.
13 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_FIX_ERRATUM_843419.
14
16c1c9d6
CG
152015-04-01 Chen Gang <gang.chen.5i5j@gmail.com>
16
17 * emulparams/elf32_tic6x_le.sh: Skip OTHER_BSS_SECTIONS for
18 relocating operation.
19
6c1aca3e
AM
202015-04-01 Alan Modra <amodra@gmail.com>
21
875b5b9d 22 PR ld/18176
6c1aca3e
AM
23 * ldlang.c (lang_size_sections): When alignment of sections
24 results in relro base adjustment being too large, don't go lower
25 than the initial value.
26 * ldexp.c (fold_binary <DATA_SEGMENT_RELRO_END>): Comment.
27 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Omit SEGMENT_SIZE
28 alignment when SEGMENT_SIZE is the same as MAXPAGESIZE.
29
4a0bc59e
AM
302015-04-01 Alan Modra <amodra@gmail.com>
31
32 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Don't
33 init ehdr_start_save.
34
42271ec5
AM
352015-04-01 Alan Modra <amodra@gmail.com>
36
37 * Makefile.am (eelf32ppcvxworks.c): Depend on ppc32elf.em and
38 ldemul-list.h.
39 (eelf32lppc.c, eelf32lppclinux.c, eelf32lppcnto.c, eelf32lppcsim.c,
40 eelf32ppc.c, eelf32ppc_fbsd.c, eelf32ppclinux.c, eelf32ppcnto.c,
41 eelf32ppcsim.c): Rearrange deps for consistency.
42 * Makefile.in: Regenerate.
43
4e791d0f
ES
442015-04-01 Ed Schouten <ed@nuxi.nl>
45
46 * emultempl/elf32.em (gld*_before_allocation): Zero-initialize
47 the ehdr_start_save variable.
48
6036f486
ES
492015-03-31 Ed Schouten <ed@nuxi.nl>
50
51 * Makefile.am (ALL_64_EMULATION_SOURCES): Add
52 eelf_x86_64_cloudabi.c.
53 (eelf_x86_64_cloudabi.c): New.
54 * configure.tgt (targ_emul): Set to elf_x86_64_cloudabi for
55 x86_64-*-cloudabi*.
56 * Makefile.in: Regenerated.
57 * emulparams/elf_x86_64_cloudabi.sh: New file.
58
f24173eb
L
592015-03-31 H.J. Lu <hongjiu.lu@intel.com>
60
61 * configure.ac (AM_ZLIB): Removed.
62 * Makefile.in: Regenerated.
63 * config.in: Likewise.
64 * configure: Likewise.
65
d9ced15d
MS
662015-03-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
67
68 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Set section
69 alignment to 2.
70
499c37b5
MS
712015-03-23 Marcus Shawcroft <marcus.shawcroft@arm.com>
72
73 * emultempl/aarch64elf.em
74 (elf${ELFSIZE}_aarch64_add_stub_section): Adjust layout.
75
b3862264
CG
762015-03-18 Chen Gang <gang.chen.5i5j@gmail.com>
77
78 * ldmain.c (main): Use %F instead of %X for einfo.
79
daf220f0
AM
802015-03-02 Alan Modra <amodra@gmail.com>
81
82 * ld.texinfo (Options <-z nocopyreloc>): Rewrite.
83
f0673d20
NC
842015-02-27 Nick Clifton <nickc@redhat.com>
85
86 PR ld/17900
87 * ldlang.c (lang_set_flags): Allow exclamation mark to reverse the
88 sense of the following memory region attribute characters.
89
330b17b3
AM
902015-02-27 Alan Modra <amodra@gmail.com>
91
92 * Makefile.am (ALL_EMULATION_SOURCES): Sort new h8300 entries.
93 (eh8300elf_linux.c, eh8300helf_linux.c, eh8300self_linux.c,
94 eh8300sxelf_linux.c): Do not invoke genscripts here.
95 * Makefile.in: Regenerate.
96
685080f2
NC
972015-02-24 Nick Clifton <nickc@redhat.com>
98
99 * Makefile.am (ev850.c): Add dependency upon
100 $(srcdir)/emultempl/v850elf.em.
101 (ev850_rh850.c): Likewise.
102 * Makefile.in: Regenerate.
103 * emultempl/v850elf.em: New file.
104 * emulparams/v850.sh (EXTRA_EM_FILE): Define.
105 * emulparams/v850_rh850.sh (EXTRA_EM_FILE): Define.
106 * scripttempl/v850.sc: Add .note.renesas section.
107 * scripttempl/v850_rh850.sc: Likewise.
108
cb072816
SKS
1092015-02-24 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
110
111 * scripttempl/avr.sc: Add new user_signatures region. Define and
112 use symbols for all region lengths.
113 * scripttempl/avrtiny.sc: Define and use symbols for all region
114 lengths.
115
5518c738
YS
1162015-01-21 Yoshinori Sato <ysato@users.sourceforge.jp>
117
118 * Makefile.am: (ALL_EMULATION_SOURCES): Add new emulations.
119 * Makefile.in: Regenerate.
120 * configure.tgt: Add h8300-*-linux
121 * emulparams/h8300elf_linux.sh: Add new emulation.
122 * emulparams/h8300helf_linux.sh: Likewise.
123 * emulparams/h8300self_linux.sh: Likewise.
124 * emulparams/h8300sxelf_linux.sh: Likewise.
125
f971c12f
NC
1262015-02-23 Nick Clifton <nickc@redhat.com>
127
128 * lexsup.c (parse_args): Produce a more reasonable error message
129 when -ixxx or -rxxx is the last option on the linker command line.
130
f58926a6
L
1312015-02-14 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR ld/17973
134 * testplug2.c (allsymbolsread_silent): New.
135 (set_register_hook): Handle allsymbolsreadsilent.
136 (onall_symbols_read): Skip a message if allsymbolsread_silent is
137 TRUE.
138
ce875075
AM
1392015-02-14 Alan Modra <amodra@gmail.com>
140
141 PR ld/17973
142 * ldlang.h (struct lang_input_statement_flags): Add lto_output.
143 * ldlang.c (lang_process): Don't set loading_lto_outputs.
144 * ldfile.c (ldfile_try_open_bfd): Transfer entry flags.lto_output
145 to bfd.
146 * plugin.c (add_input_file, add_input_library): Set flags.lto_output.
147
b0619670
L
1482015-02-13 H.J. Lu <hongjiu.lu@intel.com>
149
150 * NEWS: Mention support for LLVM plugin.
151
66bc8739
AM
1522015-02-13 Alan Modra <amodra@gmail.com>
153
154 * ld.texinfo (Options <--defsym>): Correct cross reference.
155
88b9e2eb
L
1562015-02-11 H.J. Lu <hongjiu.lu@intel.com>
157
158 * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
159 option compatibility.
160
45e81354
L
1612015-02-11 H.J. Lu <hongjiu.lu@intel.com>
162
163 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
164 "error:" for LDPL_FATAL and LDPL_ERROR.
165 * testplug2.c (parse_option): Handle fatal, error and warning.
166
e3001fd9
L
1672015-02-11 H.J. Lu <hongjiu.lu@intel.com>
168
169 * testplug2.c (dump_tv_tag): Removed.
170 (onall_symbols_read): Return LDPS_ERR if the file descriptor isn't
171 closed.
172 * testplug3.c (dump_tv_tag): Removed.
173 (onclaim_file): Fix typo.
174
7275e869
L
1752015-02-11 H.J. Lu <hongjiu.lu@intel.com>
176
177 PR ld/17878
178 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
179 libldtestplug3.la.
180 (libldtestplug2_la_SOURCES): New.
181 (libldtestplug2_la_CFLAGS): Likewise.
182 (libldtestplug2_la_LDFLAGS): Likewise.
183 (libldtestplug3_la_SOURCES): New.
184 (libldtestplug3_la_CFLAGS): Likewise.
185 (libldtestplug3_la_LDFLAGS): Likewise.
186 * Makefile.in: Regenerated.
187 * testplug2.c: New file.
188 * testplug3.c: Likewise.
189
b9dc5a87
L
1902015-02-11 H.J. Lu <hongjiu.lu@intel.com>
191
192 PR ld/17878
193 * plugin.c: Include ../bfd/plugin.h.
194 (plugin_get_ir_dummy_bfd): Call bfd_create with
195 link_info.output_bfd instead of srctemplate. Copy BFD info
196 from srctemplate only if it doesn't use BFD plugin target
197 vector.
198 (plugin_load_plugins): Call register_ld_plugin_object_p with
199 (plugin_object_p)
200 (plugin_maybe_claim): Renamed to ...
201 (plugin_object_p): This. Return dummy BFD target vector if
202 input is calimed by plugin library, otherwise return NULL.
203 Update plugin_format and plugin_dummy_bfd.
204 (plugin_maybe_claim): New. Use plugin_object_p.
205
d319a098
L
2062015-02-10 H.J. Lu <hongjiu.lu@intel.com>
207
208 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
209
38604796
L
2102015-02-10 H.J. Lu <hongjiu.lu@intel.com>
211
212 * plugin.c (plugin_input_file_t): Add use_mmap.
213 (plugin_pagesize): New.
214 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
215 (plugin_load_plugins): Initialize plugin_pagesize.
216 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
217 file.
218
fe905789
L
2192015-02-10 H.J. Lu <hongjiu.lu@intel.com>
220
221 * plugin.c (get_view): Align offset passed to mmap.
222
1d5b29cf
L
2232015-02-08 H.J. Lu <hongjiu.lu@intel.com>
224
225 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
226 if plugin isn't active or there is no thing more to claim.
227
e13419c4
L
2282015-02-08 H.J. Lu <hongjiu.lu@intel.com>
229
230 * plugin.c (plugin_maybe_claim): Check format against bfd_object
231 directly.
232
93843894
L
2332015-02-07 H.J. Lu <hongjiu.lu@intel.com>
234
235 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
236 ibfd.
237
35a1e5f3
L
2382015-02-07 H.J. Lu <hongjiu.lu@intel.com>
239
240 * plugin.c: Include "libbfd.h".
241 (plugin_strdup): New.
242 (plugin_maybe_claim): Remove the argument of pointer to struct
243 ld_plugin_input_file. Open and handle input entry.
244 * plugin.h (plugin_maybe_claim): Updated.
245 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
246 without passing a pointer to struct ld_plugin_input_file.
247 * ldmain.c: Don't include "libbfd.h".
248 (add_archive_element): Call plugin_maybe_claim directly without
249 passing a pointer to struct ld_plugin_input_file.
250
8dfef1bd
L
2512015-02-06 H.J. Lu <hongjiu.lu@intel.com>
252
253 * ld.texinfo: Document -z text, -z notext and -z textoff.
254 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
255 -z text, -z notext and -z textoff.
256
2aec968d
L
2572015-02-06 H.J. Lu <hongjiu.lu@intel.com>
258
259 * configure.ac: Add AC_FUNC_MMAP.
260 * config.in: Regenerated.
261 * configure: Likewise.
262 * plugin.c: Include <sys/mman.h>.
263 (MAP_FAILED): New. Defined if not defined.
264 (PROT_READ): Likewise.
265 (MAP_PRIVATE): Likewise.
266 (view_buffer_t): New.
267 (plugin_input_file_t): Add view_buffer.
268 (get_view): Try mmap and cache the view buffer.
269 (plugin_maybe_claim): Initialize view_buffer.
270
119d62ff
L
2712015-02-05 H.J. Lu <hongjiu.lu@intel.com>
272
273 * plugin.c (release_input_file): Set fd to -1 after closing it.
274 (plugin_maybe_claim): Close fd only if fd != -1.
275
f4b78d18
L
2762015-02-05 H.J. Lu <hongjiu.lu@intel.com>
277
278 PR ld/17878
279 * plugin.c: Include <errno.h>.
280 (errno): New. Declare if needed.
281 (plugin_input_file_t): New.
282 (get_input_file): Implemented.
283 (get_view): Likewise.
284 (release_input_file): Likewise.
285 (add_symbols): Updated.
286 (get_symbols): Likewise.
287 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
288 only for a bfd_object input.
289
6c2573b7
AM
2902015-02-02 Alan Modra <amodra@gmail.com>
291
292 * emultempl/ppc64elf.em (toc_section_name): New var.
293 (ppc_after_open): Set it.
294 (ppc_before_allocation): Use it.
295 (gld${EMULATION_NAME}_after_allocation): Here too.
296
716db898
L
2972015-01-29 H.J. Lu <hongjiu.lu@intel.com>
298
299 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
300 with link_info.lto_plugin_active.
301 * ldlang.c (lang_process): Likewise.
302 * ldmain.c (add_archive_element): Likewise.
303 * plugin.c (plugin_active_plugins_p): Removed.
304 * plugin.h (plugin_active_plugins_p): Likewise.
305
37a3056a
L
3062015-01-28 H.J. Lu <hongjiu.lu@intel.com>
307
308 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
309 ...
310 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
311
15f7a26b
L
3122015-01-28 H.J. Lu <hongjiu.lu@intel.com>
313
314 PR ld/17878
315 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
316 (get_view): New function.
317 (set_tv_header): Handle LDPT_GET_VIEW.
318 * testplug.c (tag_names): Add LDPT_GET_VIEW.
319 (tv_get_view): New.
320 (dump_tv_tag): Handle LDPT_GET_VIEW.
321 (parse_tv_tag): Likewise.
322
dbd1e97e
AM
3232015-01-28 Alan Modra <amodra@gmail.com>
324
325 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
326 * emultempl/ppc64elf.em (params): Init new field.
327 (ppc_after_open): New function.
328 (LDEMUL_AFTER_OPEN): Define.
329 * ldlang.c (lang_final): Whitespace fix.
330
3f8107ab
AM
3312015-01-28 James Bowman <james.bowman@ftdichip.com>
332
333 * Makefile.am: Add FT32 files.
334 * configure.tgt: Handle FT32 target.
335 * emulparams/elf32ft32.sh: New file.
336 * scripttempl/ft32.sc: New file.
337 * Makefile.in: Regenerate.
338
cc9ad334
SKS
3392015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
340
341 PR 4643
342 * ldexp.c (fold_name): Fold LENGTH only after
343 lang_first_phase_enum.
344 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
345 rightaway.
346 * ldlang.h (struct memory_region_struct): Add origin_exp and
347 length_exp fields.
348 * ldlang.c (lang_do_memory_regions): New.
349 (lang_memory_region_lookup): Initialize origin_exp and
350 length_exp fields.
351 (lang_process): Call lang_do_memory_regions.
352
c05b575a
AB
3532015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
354
355 * ldlang.c (print_assignment): Only evaluate the expression for a
356 PROVIDE'd assignment when the destination is being defined.
357 Display a special message for PROVIDE'd symbols that are not being
358 provided.
359
5ad18f16
AM
3602015-01-20 Alan Modra <amodra@gmail.com>
361
362 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
363 (OTHER_BSS_SYMBOLS): ..this.
364 (OTHER_PLT_RELOC_SECTIONS): Don't define.
365 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
366 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
367 (OTHER_RELRO_SECTIONS_2): ..here.
368 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
369
23283c1b
AM
3702015-01-20 Alan Modra <amodra@gmail.com>
371
372 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
373 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
374 (OTHER_RELRO_SECTIONS_2): ..here.
375 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
376 PLT_BEFORE_GOT): Define.
377 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
378 PLT_BEFORE_GOT combination.
379 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
380
3e2b0f31
AM
3812015-01-20 Alan Modra <amodra@gmail.com>
382
383 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
384 (OTHER_RELRO_SECTIONS_2): ..here, new define.
385 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
386
c4621b33
AM
3872015-01-19 Alan Modra <amodra@gmail.com>
388
3e2aa5bb 389 PR ld/17615
c4621b33
AM
390 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
391
52db4ec2
JW
3922015-01-14 Jiong Wang <jiong.wang@arm.com>
393
394 * ld-arm/elf32-reject.s: New testcase.
395 * ld-arm/elf32-reject.d: Likewise.
396 * ld-arm/elf32-reject-pie.s: Likewise.
397 * ld-arm/elf32-reject-pie.d: Likewise.
398 * ld-arm/arm-elf.exp: Run new testcases.
399 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
400 * ld-arm/ifunc-7.rd: Likewise.
401 * ld-arm/ifunc-7.gd: Likewise.
402 * ld-arm/ifunc-7.dd: Likewise.
403 * ld-arm/ifunc-8.s: Likewise.
404 * ld-arm/ifunc-8.rd: Likewise.
405 * ld-arm/ifunc-8.gd: Likewise.
406 * ld-arm/ifunc-8.dd: Likewise.
407
efd321f9
AM
4082015-01-01 Alan Modra <amodra@gmail.com>
409
410 * ldver.c (ldversion): Just print current year.
411
b90efa5b 4122015-01-01 Alan Modra <amodra@gmail.com>
ca0694ad 413
b90efa5b 414 Update year range in copyright notice of all files.
ca0694ad 415
b90efa5b 416For older changes see ChangeLog-2014
252b5132 417\f
b90efa5b 418Copyright (C) 2015 Free Software Foundation, Inc.
752937aa
NC
419
420Copying and distribution of this file, with or without modification,
421are permitted in any medium without royalty provided the copyright
422notice and this notice are preserved.
423
252b5132
RH
424Local Variables:
425mode: change-log
426left-margin: 8
427fill-column: 74
428version-control: never
429End:
This page took 0.791273 seconds and 4 git commands to generate.