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