1 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
4 * Makefile.am (noinst_LTLIBRARIES): Add libldtestplug2.la and
6 (libldtestplug2_la_SOURCES): New.
7 (libldtestplug2_la_CFLAGS): Likewise.
8 (libldtestplug2_la_LDFLAGS): Likewise.
9 (libldtestplug3_la_SOURCES): New.
10 (libldtestplug3_la_CFLAGS): Likewise.
11 (libldtestplug3_la_LDFLAGS): Likewise.
12 * Makefile.in: Regenerated.
13 * testplug2.c: New file.
14 * testplug3.c: Likewise.
16 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
19 * plugin.c: Include ../bfd/plugin.h.
20 (plugin_get_ir_dummy_bfd): Call bfd_create with
21 link_info.output_bfd instead of srctemplate. Copy BFD info
22 from srctemplate only if it doesn't use BFD plugin target
24 (plugin_load_plugins): Call register_ld_plugin_object_p with
26 (plugin_maybe_claim): Renamed to ...
27 (plugin_object_p): This. Return dummy BFD target vector if
28 input is calimed by plugin library, otherwise return NULL.
29 Update plugin_format and plugin_dummy_bfd.
30 (plugin_maybe_claim): New. Use plugin_object_p.
32 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
34 * plugin.c (plugin_maybe_claim): Initialize use_mmap.
36 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
38 * plugin.c (plugin_input_file_t): Add use_mmap.
39 (plugin_pagesize): New.
40 (get_view): Use plugin_pagesize. Set use_mmap if mmap is used.
41 (plugin_load_plugins): Initialize plugin_pagesize.
42 (plugin_maybe_claim): Unmap the buffer if plugin didn't claim the
45 2015-02-10 H.J. Lu <hongjiu.lu@intel.com>
47 * plugin.c (get_view): Align offset passed to mmap.
49 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
51 * ldfile.c (ldfile_try_open_bfd): Don't call bfd_check_format
52 if plugin isn't active or there is no thing more to claim.
54 2015-02-08 H.J. Lu <hongjiu.lu@intel.com>
56 * plugin.c (plugin_maybe_claim): Check format against bfd_object
59 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
61 * plugin.c (plugin_maybe_claim): Replace entry->the_bfd with
64 2015-02-07 H.J. Lu <hongjiu.lu@intel.com>
66 * plugin.c: Include "libbfd.h".
68 (plugin_maybe_claim): Remove the argument of pointer to struct
69 ld_plugin_input_file. Open and handle input entry.
70 * plugin.h (plugin_maybe_claim): Updated.
71 * ldfile.c (ldfile_try_open_bfd): Call plugin_maybe_claim directly
72 without passing a pointer to struct ld_plugin_input_file.
73 * ldmain.c: Don't include "libbfd.h".
74 (add_archive_element): Call plugin_maybe_claim directly without
75 passing a pointer to struct ld_plugin_input_file.
77 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
79 * ld.texinfo: Document -z text, -z notext and -z textoff.
80 * emultempl/elf32.em (gld${EMULATION_NAME}_list_options): Add
81 -z text, -z notext and -z textoff.
83 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
85 * configure.ac: Add AC_FUNC_MMAP.
86 * config.in: Regenerated.
87 * configure: Likewise.
88 * plugin.c: Include <sys/mman.h>.
89 (MAP_FAILED): New. Defined if not defined.
90 (PROT_READ): Likewise.
91 (MAP_PRIVATE): Likewise.
93 (plugin_input_file_t): Add view_buffer.
94 (get_view): Try mmap and cache the view buffer.
95 (plugin_maybe_claim): Initialize view_buffer.
97 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
99 * plugin.c (release_input_file): Set fd to -1 after closing it.
100 (plugin_maybe_claim): Close fd only if fd != -1.
102 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
105 * plugin.c: Include <errno.h>.
106 (errno): New. Declare if needed.
107 (plugin_input_file_t): New.
108 (get_input_file): Implemented.
109 (get_view): Likewise.
110 (release_input_file): Likewise.
111 (add_symbols): Updated.
112 (get_symbols): Likewise.
113 (plugin_maybe_claim): Allocate a plugin_input_file_t. Close fd
114 only for a bfd_object input.
116 2015-02-02 Alan Modra <amodra@gmail.com>
118 * emultempl/ppc64elf.em (toc_section_name): New var.
119 (ppc_after_open): Set it.
120 (ppc_before_allocation): Use it.
121 (gld${EMULATION_NAME}_after_allocation): Here too.
123 2015-01-29 H.J. Lu <hongjiu.lu@intel.com>
125 * ldfile.c (ldfile_try_open_bfd): Replace plugin_active_plugins_p()
126 with link_info.lto_plugin_active.
127 * ldlang.c (lang_process): Likewise.
128 * ldmain.c (add_archive_element): Likewise.
129 * plugin.c (plugin_active_plugins_p): Removed.
130 * plugin.h (plugin_active_plugins_p): Likewise.
132 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
134 * plugin.h (plugin_get_ir_dummy_bfd): Removed. Move comments to
136 * plugin.c (plugin_get_ir_dummy_bfd): Here. Make it static.
138 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
141 * plugin.c (tv_header_tags(): Add LDPT_GET_VIEW.
142 (get_view): New function.
143 (set_tv_header): Handle LDPT_GET_VIEW.
144 * testplug.c (tag_names): Add LDPT_GET_VIEW.
146 (dump_tv_tag): Handle LDPT_GET_VIEW.
147 (parse_tv_tag): Likewise.
149 2015-01-28 Alan Modra <amodra@gmail.com>
151 * emulparams/elf64ppc.sh (INITIAL_READWRITE_SECTIONS): Define.
152 * emultempl/ppc64elf.em (params): Init new field.
153 (ppc_after_open): New function.
154 (LDEMUL_AFTER_OPEN): Define.
155 * ldlang.c (lang_final): Whitespace fix.
157 2015-01-28 James Bowman <james.bowman@ftdichip.com>
159 * Makefile.am: Add FT32 files.
160 * configure.tgt: Handle FT32 target.
161 * emulparams/elf32ft32.sh: New file.
162 * scripttempl/ft32.sc: New file.
163 * Makefile.in: Regenerate.
165 2015-01-28 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
168 * ldexp.c (fold_name): Fold LENGTH only after
169 lang_first_phase_enum.
170 * ldgram.y (memory_spec): Don't evaluate ORIGIN and LENGTH
172 * ldlang.h (struct memory_region_struct): Add origin_exp and
174 * ldlang.c (lang_do_memory_regions): New.
175 (lang_memory_region_lookup): Initialize origin_exp and
177 (lang_process): Call lang_do_memory_regions.
179 2015-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
181 * ldlang.c (print_assignment): Only evaluate the expression for a
182 PROVIDE'd assignment when the destination is being defined.
183 Display a special message for PROVIDE'd symbols that are not being
186 2015-01-20 Alan Modra <amodra@gmail.com>
188 * emulparams/elf64ppc.sh (OTHER_SDATA_SECTIONS): Use in place of..
189 (OTHER_BSS_SYMBOLS): ..this.
190 (OTHER_PLT_RELOC_SECTIONS): Don't define.
191 (OTHER_GOT_RELOC_SECTIONS): Add rela.toc1 and rela.tocbss.
192 (OTHER_READWRITE_SECTIONS): Don't define. Move .toc1 to..
193 (OTHER_RELRO_SECTIONS_2): ..here.
194 * scripttempl/elf.sc: Move SBSS too when DATA_SDATA.
196 2015-01-20 Alan Modra <amodra@gmail.com>
198 * emulparams/elf64ppc.sh (BSS_PLT): Don't define.
199 (OTHER_READWRITE_SECTIONS): Move .branch_lt to..
200 (OTHER_RELRO_SECTIONS_2): ..here.
201 (DATA_GOT, SEPARATE_GOTPLT, DATA_SDATA, DATA_PLT,
202 PLT_BEFORE_GOT): Define.
203 * scripttempl/elf.sc: Handle DATA_SDATA and DATA_GOT/DATA_PLT/
204 PLT_BEFORE_GOT combination.
205 (DATA_GOT, SDATA_GOT): Don't define if either is already defined.
207 2015-01-20 Alan Modra <amodra@gmail.com>
209 * emulparams/elf64ppc.sh (OTHER_READWRITE_SECTIONS): Move .opd to..
210 (OTHER_RELRO_SECTIONS_2): ..here, new define.
211 * scripttempl/elf.sc: Add OTHER_RELRO_SECTIONS_2.
213 2015-01-19 Alan Modra <amodra@gmail.com>
216 * ldlang.c (lang_process): Run lang_common before lang_gc_sections.
218 2015-01-14 Jiong Wang <jiong.wang@arm.com>
220 * ld-arm/elf32-reject.s: New testcase.
221 * ld-arm/elf32-reject.d: Likewise.
222 * ld-arm/elf32-reject-pie.s: Likewise.
223 * ld-arm/elf32-reject-pie.d: Likewise.
224 * ld-arm/arm-elf.exp: Run new testcases.
225 * ld-arm/ifunc-7.s: Delete f2/f4 test items.
226 * ld-arm/ifunc-7.rd: Likewise.
227 * ld-arm/ifunc-7.gd: Likewise.
228 * ld-arm/ifunc-7.dd: Likewise.
229 * ld-arm/ifunc-8.s: Likewise.
230 * ld-arm/ifunc-8.rd: Likewise.
231 * ld-arm/ifunc-8.gd: Likewise.
232 * ld-arm/ifunc-8.dd: Likewise.
234 2015-01-01 Alan Modra <amodra@gmail.com>
236 * ldver.c (ldversion): Just print current year.
238 2015-01-01 Alan Modra <amodra@gmail.com>
240 Update year range in copyright notice of all files.
242 For older changes see ChangeLog-2014
244 Copyright (C) 2015 Free Software Foundation, Inc.
246 Copying and distribution of this file, with or without modification,
247 are permitted in any medium without royalty provided the copyright
248 notice and this notice are preserved.
254 version-control: never