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