1 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
4 * plugin.c: Include ../bfd/plugin.h.
5 (plugin_get_ir_dummy_bfd): Call bfd_create with
6 link_info.output_bfd instead of srctemplate. Copy BFD info
7 from srctemplate only if it doesn't use BFD plugin target
9 (plugin_load_plugins): Call register_ld_plugin_object_p with
11 (plugin_maybe_claim): Renamed to ...
12 (plugin_object_p): This. Return dummy BFD target vector if
13 input is calimed by plugin library, otherwise return NULL.
14 Update plugin_format and plugin_dummy_bfd.
15 (plugin_maybe_claim): New. Use plugin_object_p.
17 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
19 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
21 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
23 * plugin.c (plugin_input_file_t): Add use_mmap.
24 (plugin_pagesize): New.
25 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
26 (plugin_load_plugins): Initialize plugin_pagesize.
27 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
30 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
32 * plugin.c (get_view): Align offset passed to mmap.
34 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
36 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
37 if plugin isn't active or there is no thing more to claim.
39 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
41 * plugin.c (plugin_maybe_claim): Check format against bfd_object
44 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
46 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
49 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
51 * plugin.c: Include "libbfd.h".
53 (plugin_maybe_claim): Remove the argument of pointer to struct
54 ld_plugin_input_file. Open and handle input entry.
55 * plugin.h (plugin_maybe_claim): Updated.
56 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
57 without passing a pointer to struct ld_plugin_input_file.
58 * ldmain.c: Don't include "libbfd.h".
59 (add_archive_element): Call plugin_maybe_claim directly without
60 passing a pointer to struct ld_plugin_input_file.
62 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
64 * ld.texinfo: Document -z text, -z notext and -z textoff.
65 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
66 -z text, -z notext and -z textoff.
68 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
70 * configure.ac: Add AC_FUNC_MMAP.
71 * config.in: Regenerated.
72 * configure: Likewise.
73 * plugin.c: Include <sys/mman.h>.
74 (MAP_FAILED): New. Defined if not defined.
75 (PROT_READ): Likewise.
76 (MAP_PRIVATE): Likewise.
78 (plugin_input_file_t): Add view_buffer.
79 (get_view): Try mmap and cache the view buffer.
80 (plugin_maybe_claim): Initialize view_buffer.
82 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
84 * plugin.c (release_input_file): Set fd to -1 after closing it.
85 (plugin_maybe_claim): Close fd only if fd != -1.
87 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
90 * plugin.c: Include <errno.h>.
91 (errno): New. Declare if needed.
92 (plugin_input_file_t): New.
93 (get_input_file): Implemented.
95 (release_input_file): Likewise.
96 (add_symbols): Updated.
97 (get_symbols): Likewise.
98 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
99 only for a bfd_object input.
101 2015-02-02 Alan Modra <amodra@gmail.com>
103 * emultempl/ppc64elf.em (toc_section_name): New var.
104 (ppc_after_open): Set it.
105 (ppc_before_allocation): Use it.
106 (gld${EMULATION_NAME}_after_allocation): Here too.
108 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
110 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
111 with link_info.lto_plugin_active.
112 * ldlang.c (lang_process): Likewise.
113 * ldmain.c (add_archive_element): Likewise.
114 * plugin.c (plugin_active_plugins_p): Removed.
115 * plugin.h (plugin_active_plugins_p): Likewise.
117 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
119 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
121 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
123 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
126 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
127 (get_view): New function.
128 (set_tv_header): Handle LDPT_GET_VIEW.
129 * testplug.c (tag_names): Add LDPT_GET_VIEW.
131 (dump_tv_tag): Handle LDPT_GET_VIEW.
132 (parse_tv_tag): Likewise.
134 2015-01-28 Alan Modra <amodra@gmail.com>
136 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
137 * emultempl/ppc64elf.em (params): Init new field.
138 (ppc_after_open): New function.
139 (LDEMUL_AFTER_OPEN): Define.
140 * ldlang.c (lang_final): Whitespace fix.
142 2015-01-28 James Bowman <james.bowman@ftdichip.com>
144 * Makefile.am: Add FT32 files.
145 * configure.tgt: Handle FT32 target.
146 * emulparams/elf32ft32.sh: New file.
147 * scripttempl/ft32.sc: New file.
148 * Makefile.in: Regenerate.
150 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
153 * ldexp.c (fold_name): Fold LENGTH only after
154 lang_first_phase_enum.
155 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
157 * ldlang.h (struct memory_region_struct): Add origin_exp and
159 * ldlang.c (lang_do_memory_regions): New.
160 (lang_memory_region_lookup): Initialize origin_exp and
162 (lang_process): Call lang_do_memory_regions.
164 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
166 * ldlang.c (print_assignment): Only evaluate the expression for a
167 PROVIDE'd assignment when the destination is being defined.
168 Display a special message for PROVIDE'd symbols that are not being
171 2015-01-20 Alan Modra <amodra@gmail.com>
173 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
174 (OTHER_BSS_SYMBOLS): ..this.
175 (OTHER_PLT_RELOC_SECTIONS): Don't define.
176 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
177 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
178 (OTHER_RELRO_SECTIONS_2): ..here.
179 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
181 2015-01-20 Alan Modra <amodra@gmail.com>
183 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
184 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
185 (OTHER_RELRO_SECTIONS_2): ..here.
186 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
187 PLT_BEFORE_GOT): Define.
188 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
189 PLT_BEFORE_GOT combination.
190 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
192 2015-01-20 Alan Modra <amodra@gmail.com>
194 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
195 (OTHER_RELRO_SECTIONS_2): ..here, new define.
196 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
198 2015-01-19 Alan Modra <amodra@gmail.com>
201 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
203 2015-01-14 Jiong Wang <jiong.wang@arm.com>
205 * ld-arm/elf32-reject.s: New testcase.
206 * ld-arm/elf32-reject.d: Likewise.
207 * ld-arm/elf32-reject-pie.s: Likewise.
208 * ld-arm/elf32-reject-pie.d: Likewise.
209 * ld-arm/arm-elf.exp: Run new testcases.
210 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
211 * ld-arm/ifunc-7.rd: Likewise.
212 * ld-arm/ifunc-7.gd: Likewise.
213 * ld-arm/ifunc-7.dd: Likewise.
214 * ld-arm/ifunc-8.s: Likewise.
215 * ld-arm/ifunc-8.rd: Likewise.
216 * ld-arm/ifunc-8.gd: Likewise.
217 * ld-arm/ifunc-8.dd: Likewise.
219 2015-01-01 Alan Modra <amodra@gmail.com>
221 * ldver.c (ldversion): Just print current year.
223 2015-01-01 Alan Modra <amodra@gmail.com>
225 Update year range in copyright notice of all files.
227 For older changes see ChangeLog-2014
229 Copyright (C) 2015 Free Software Foundation, Inc.
231 Copying and distribution of this file, with or without modification,
232 are permitted in any medium without royalty provided the copyright
233 notice and this notice are preserved.
239 version-control: never