ChangeLog revision 1.8 1 1.8 christos 2016-06-29 Tristan Gingold <gingold (a] adacore.com>
2 1.8 christos
3 1.8 christos * version.m4: Bump version to 2.26.1
4 1.8 christos * configure: Regenerate.
5 1.8 christos
6 1.8 christos 2016-06-29 Tristan Gingold <gingold (a] adacore.com>
7 1.8 christos
8 1.8 christos * development.sh: Set development to false.
9 1.8 christos
10 1.8 christos 2016-06-28 Alan Modra <amodra (a] gmail.com>
11 1.8 christos
12 1.8 christos Apply from master
13 1.8 christos 2016-05-19 Alan Modra <amodra (a] gmail.com>
14 1.8 christos * elf64-ppc.c (ppc64_elf_branch_reloc): Check for NULL owner
15 1.8 christos before dereferencing.
16 1.8 christos
17 1.8 christos 2016-06-28 Alan Modra <amodra (a] gmail.com>
18 1.8 christos
19 1.8 christos PR ld/19264
20 1.8 christos * elf64-ppc.c (STUB_SHRINK_ITER): Define.
21 1.8 christos (ppc64_elf_size_stubs): Exit stub sizing loop past STUB_SHRINK_ITER
22 1.8 christos if shrinking stubs.
23 1.8 christos (ppc64_elf_size_stubs): Adjust to suit.
24 1.8 christos
25 1.8 christos 2016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj (a] atmel.com>
26 1.8 christos
27 1.8 christos Backport from master
28 1.8 christos 2016-06-14 Senthil Kumar Selvaraj <senthil_kumar.selvaraj (a] atmel.com>
29 1.8 christos
30 1.8 christos PR ld/20254
31 1.8 christos * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust reloc
32 1.8 christos offsets until reloc_toaddr.
33 1.8 christos
34 1.8 christos 2016-06-14 H.J. Lu <hongjiu.lu (a] intel.com>
35 1.8 christos
36 1.8 christos Backport from master
37 1.8 christos 2016-06-13 H.J. Lu <hongjiu.lu (a] intel.com>
38 1.8 christos
39 1.8 christos PR ld/20244
40 1.8 christos * elf32-i386.c (elf_i386_relocate_section): Add the .got.plt
41 1.8 christos section address for R_386_GOT32/R_386_GOT32X relocations against
42 1.8 christos IFUNC symbols if there is no base register and return error for
43 1.8 christos PIC.
44 1.8 christos
45 1.8 christos 2016-06-13 H.J. Lu <hongjiu.lu (a] intel.com>
46 1.8 christos
47 1.8 christos * elf32-i386.c (elf_i386_relocate_section): Simplify IFUNC
48 1.8 christos GOT32 adjustment for static executables.
49 1.8 christos
50 1.8 christos 2016-06-14 H.J. Lu <hongjiu.lu (a] intel.com>
51 1.8 christos
52 1.8 christos Backport from master
53 1.8 christos 2016-06-11 H.J. Lu <hongjiu.lu (a] intel.com>
54 1.8 christos
55 1.8 christos PR ld/20244
56 1.8 christos * elf32-i386.c (elf_i386_relocate_section): When relocating
57 1.8 christos R_386_GOT32, return error without a base register for PIC and
58 1.8 christos subtract the .got.plt section address only with a base register.
59 1.8 christos
60 1.8 christos 2016-06-13 Senthil Kumar Selvaraj <senthil_kumar.selvaraj (a] atmel.com>
61 1.8 christos
62 1.8 christos Backport from master
63 1.8 christos 2016-06-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj (a] atmel.com>
64 1.8 christos
65 1.8 christos PR ld/20221
66 1.8 christos * elf32-avr.c (elf32_avr_relax_delete_bytes): Adjust syms
67 1.8 christos and relocs only if shrinking occurred.
68 1.8 christos
69 1.8 christos 2016-06-09 Alan Modra <amodra (a] gmail.com>
70 1.8 christos
71 1.8 christos PR ld/20159
72 1.8 christos PR ld/16467
73 1.8 christos * elflink.c (_bfd_elf_merge_symbol): Revert PR16467 change.
74 1.8 christos (_bfd_elf_add_default_symbol): Don't indirect to/from defined
75 1.8 christos symbol given a version by a script different to the version
76 1.8 christos of the symbol being added.
77 1.8 christos (elf_link_add_object_symbols): Use _bfd_elf_strtab_save and
78 1.8 christos _bfd_elf_strtab_restore. Don't fudge dynstr references.
79 1.8 christos * elf-strtab.c (_bfd_elf_strtab_restore_size): Delete.
80 1.8 christos (struct strtab_save): New.
81 1.8 christos (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): New functions.
82 1.8 christos * elf-bfd.h (_bfd_elf_strtab_restore_size): Delete.
83 1.8 christos (_bfd_elf_strtab_save, _bfd_elf_strtab_restore): Declare.
84 1.8 christos
85 1.8 christos 2016-05-20 H.J. Lu <hongjiu.lu (a] intel.com>
86 1.8 christos
87 1.8 christos Backport from master
88 1.8 christos 2016-05-20 H.J. Lu <hongjiu.lu (a] intel.com>
89 1.8 christos
90 1.8 christos * elf32-i386.c (elf_i386_check_relocs): Don't check R_386_GOT32
91 1.8 christos when setting need_convert_load.
92 1.8 christos
93 1.8 christos 2016-05-19 H.J. Lu <hongjiu.lu (a] intel.com>
94 1.8 christos
95 1.8 christos PR ld/20117
96 1.8 christos * elf32-i386.c (elf_i386_convert_load): Don't convert
97 1.8 christos R_386_GOT32.
98 1.8 christos
99 1.8 christos 2016-05-18 Christophe Monat <christophe.monat (a] st.com>
100 1.8 christos
101 1.8 christos Backport from master
102 1.8 christos 2016-05-09 Christophe Monat <christophe.monat (a] st.com>
103 1.8 christos
104 1.8 christos PR ld/20030
105 1.8 christos * elf32-arm.c (is_thumb2_vldm): Account for T1 (DP) encoding.
106 1.8 christos (stm32l4xx_need_create_replacing_stub): Rename ambiguous nb_regs
107 1.8 christos to nb_words.
108 1.8 christos (create_instruction_vldmia): Add is_dp to disambiguate SP/DP
109 1.8 christos encoding.
110 1.8 christos (create_instruction_vldmdb): Likewise.
111 1.8 christos (stm32l4xx_create_replacing_stub_vldm): is_dp detects DP encoding,
112 1.8 christos uses it to re-encode.
113 1.8 christos
114 1.8 christos 2016-05-15 H.J. Lu <hongjiu.lu (a] intel.com>
115 1.8 christos
116 1.8 christos Backport from master
117 1.8 christos 2016-05-13 H.J. Lu <hongjiu.lu (a] intel.com>
118 1.8 christos
119 1.8 christos PR ld/20093
120 1.8 christos * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Don't convert
121 1.8 christos GOTPCREL relocation against large section.
122 1.8 christos
123 1.8 christos * elflink.c (bfd_elf_final_link): Likewise.
124 1.8 christos
125 1.8 christos 2016-05-11 Alan Modra <amodra (a] gmail.com>
126 1.8 christos
127 1.8 christos PR 20060
128 1.8 christos * elf64-ppc.c (ppc64_elf_tls_setup): Clear forced_local.
129 1.8 christos * elf32-ppc.c (ppc_elf_tls_setup): Likewise.
130 1.8 christos
131 1.8 christos 2016-04-30 H.J. Lu <hongjiu.lu (a] intel.com>
132 1.8 christos
133 1.8 christos Backport from master
134 1.8 christos 2016-04-27 H.J. Lu <hongjiu.lu (a] intel.com>
135 1.8 christos
136 1.8 christos PR ld/20006
137 1.8 christos * elf64-x86-64.c (elf_x86_64_convert_load): Skip debug sections
138 1.8 christos when estimating distances between output sections.
139 1.8 christos
140 1.8 christos 2016-03-29 Toni Spets <toni.spets (a] iki.fi>
141 1.8 christos
142 1.8 christos PR 19878
143 1.8 christos * coffcode.h (coff_write_object_contents): Revert accidental
144 1.8 christos 2014-11-10 change.
145 1.8 christos
146 1.8 christos 2016-03-17 H.J. Lu <hongjiu.lu (a] intel.com>
147 1.8 christos
148 1.8 christos Backport from master
149 1.8 christos 2016-03-15 H.J. Lu <hongjiu.lu (a] intel.com>
150 1.8 christos
151 1.8 christos PR ld/19827
152 1.8 christos * elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
153 1.8 christos locally in PIE.
154 1.8 christos (elf_i386_relocate_section): Likewise.
155 1.8 christos * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
156 1.8 christos (elf_x86_64_relocate_section): Likewise.
157 1.8 christos
158 1.8 christos 2016-03-15 H.J. Lu <hongjiu.lu (a] intel.com>
159 1.8 christos
160 1.8 christos Backport from master
161 1.8 christos 2016-01-30 H.J. Lu <hongjiu.lu (a] intel.com>
162 1.8 christos
163 1.8 christos PR ld/19539
164 1.8 christos * elf32-i386.c (elf_i386_reloc_type_class): Check relocation
165 1.8 christos against STT_GNU_IFUNC symbol only with dynamic symbols.
166 1.8 christos * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
167 1.8 christos
168 1.8 christos 2016-03-15 Nick Clifton <nickc (a] redhat.com>
169 1.8 christos
170 1.8 christos Backport from master:
171 1.8 christos 2016-03-09 Leon Winter <winter-gcc (a] bfw-online.de>
172 1.8 christos
173 1.8 christos PR ld/19623
174 1.8 christos * cofflink.c (_bfd_coff_generic_relocate_section): Do not apply
175 1.8 christos relocations against absolute symbols.
176 1.8 christos
177 1.8 christos 2016-03-14 H.J. Lu <hongjiu.lu (a] intel.com>
178 1.8 christos
179 1.8 christos Backport from master
180 1.8 christos 2016-01-28 H.J. Lu <hongjiu.lu (a] intel.com>
181 1.8 christos
182 1.8 christos PR binutils/19523
183 1.8 christos * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Set BFD_DECOMPRESS to
184 1.8 christos decompress debug sections.
185 1.8 christos
186 1.8 christos 2016-03-09 H.J. Lu <hongjiu.lu (a] intel.com>
187 1.8 christos
188 1.8 christos PR ld/19579
189 1.8 christos Backport from master
190 1.8 christos 2016-03-08 H.J. Lu <hongjiu.lu (a] intel.com>
191 1.8 christos
192 1.8 christos * elflink.c (_bfd_elf_merge_symbol): Group common symbol checking
193 1.8 christos together.
194 1.8 christos
195 1.8 christos 2016-03-04 H.J. Lu <hongjiu.lu (a] intel.com>
196 1.8 christos
197 1.8 christos * elflink.c (_bfd_elf_merge_symbol): Treat common symbol in
198 1.8 christos executable as definition if the new definition comes from a
199 1.8 christos shared library.
200 1.8 christos
201 1.8 christos 2016-03-09 Nick Clifton <nickc (a] redhat.com>
202 1.8 christos Alan Modra <amodra (a] gmail.com>
203 1.8 christos
204 1.8 christos PR binutils/19775
205 1.8 christos * archive.c (bfd_generic_openr_next_archived_file): Allow zero
206 1.8 christos length elements in the archive.
207 1.8 christos * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Likewise.
208 1.8 christos
209 1.8 christos 2016-03-01 H.J. Lu <hongjiu.lu (a] intel.com>
210 1.8 christos
211 1.8 christos PR ld/19752
212 1.8 christos Backport from master
213 1.8 christos 2015-12-18 H.J. Lu <hongjiu.lu (a] intel.com>
214 1.8 christos
215 1.8 christos * coff-x86_64.c (coff_amd64_reloc): Fix formatting.
216 1.8 christos
217 1.8 christos 2015-12-18 Nick Clifton <nickc (a] redhat.com>
218 1.8 christos
219 1.8 christos * coff-i386.c (coff_i386_reloc): Fix formatting.
220 1.8 christos
221 1.8 christos 2016-02-26 H.J. Lu <hongjiu.lu (a] intel.com>
222 1.8 christos
223 1.8 christos Backport from master
224 1.8 christos 2016-02-24 H.J. Lu <hongjiu.lu (a] intel.com>
225 1.8 christos
226 1.8 christos PR ld/19698
227 1.8 christos * elflink.c (bfd_elf_record_link_assignment): Set versioned if
228 1.8 christos symbol version is unknown.
229 1.8 christos
230 1.8 christos 2016-02-26 H.J. Lu <hongjiu.lu (a] intel.com>
231 1.8 christos
232 1.8 christos Backport from master
233 1.8 christos 2016-02-01 H.J. Lu <hongjiu.lu (a] intel.com>
234 1.8 christos
235 1.8 christos PR ld/19553
236 1.8 christos * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
237 1.8 christos if a symbol from a library loaded via DT_NEEDED doesn't match
238 1.8 christos the symbol referenced by regular object.
239 1.8 christos
240 1.8 christos 2016-02-26 H.J. Lu <hongjiu.lu (a] intel.com>
241 1.8 christos
242 1.8 christos Backport from master
243 1.8 christos 2016-02-24 H.J. Lu <hongjiu.lu (a] intel.com>
244 1.8 christos
245 1.8 christos * elf32-i386.c (elf_i386_allocate_dynrelocs): Set plt_got.offset
246 1.8 christos to (bfd_vma) -1 when setting needs_plt to 0.
247 1.8 christos * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
248 1.8 christos
249 1.8 christos 2016-02-26 Alan Modra <amodra (a] gmail.com>
250 1.8 christos
251 1.8 christos * elf64-ppc.c (create_linkage_sections): Create sfpr when
252 1.8 christos save_restore_funcs, rest of sections when not relocatable.
253 1.8 christos (ppc64_elf_init_stub_bfd): Always call create_linkage_sections.
254 1.8 christos (sfpr_define): Define all symbols on emitted code.
255 1.8 christos (ppc64_elf_func_desc_adjust): Adjust for sfpr now being created
256 1.8 christos when relocatable. Move sfpr_define loop earlier.
257 1.8 christos
258 1.8 christos 2016-02-25 Jiong Wang <jiong.wang (a] arm.com>
259 1.8 christos
260 1.8 christos Backport from master
261 1.8 christos 2016-01-21 Jiong Wang <jiong.wang (a] arm.com>
262 1.8 christos
263 1.8 christos * elfnn-aarch64.c (aarch64_type_of_stub): Allow insert long branch
264 1.8 christos veneer for sym_sec != input_sec.
265 1.8 christos (elfNN_aarch64_size_stub): Support STT_SECTION symbol.
266 1.8 christos (elfNN_aarch64_final_link_relocate): Take rela addend into account when
267 1.8 christos calculation destination.
268 1.8 christos
269 1.8 christos 2016-02-10 H.J. Lu <hongjiu.lu (a] intel.com>
270 1.8 christos
271 1.8 christos Backport from master
272 1.8 christos 2016-02-10 H.J. Lu <hongjiu.lu (a] intel.com>
273 1.8 christos
274 1.8 christos PR ld/19601
275 1.8 christos * elf32-i386.c (elf_i386_relocate_section): Mask off the least
276 1.8 christos significant bit in GOT offset for R_386_GOT32X.
277 1.8 christos
278 1.8 christos 2016-02-02 H.J. Lu <hongjiu.lu (a] intel.com>
279 1.8 christos
280 1.8 christos Backport from master
281 1.8 christos 2016-02-02 H.J. Lu <hongjiu.lu (a] intel.com>
282 1.8 christos
283 1.8 christos PR ld/19542
284 1.8 christos * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated
285 1.8 christos distances in the compressed_size field of the output section.
286 1.8 christos
287 1.8 christos 2016-02-01 John David Anglin <danglin (a] gcc.gnu.org>
288 1.8 christos
289 1.8 christos PR ld/19526
290 1.8 christos * elf32-hppa.c (elf32_hppa_final_link): Don't sort non-regular output
291 1.8 christos files.
292 1.8 christos * elf64-hppa.c (elf32_hppa_final_link): Likewise. Remove retval.
293 1.8 christos
294 1.8 christos 2016-01-25 Tristan Gingold <gingold (a] adacore.com>
295 1.8 christos
296 1.8 christos * version.m4: Bump version to 2.26.0
297 1.8 christos * configure: Regenerate.
298 1.8 christos
299 1.7 christos 2016-01-25 Tristan Gingold <gingold (a] adacore.com>
300 1.6 skrll
301 1.7 christos * version.m4: Bump version to 2.26
302 1.7 christos * configure: Regenerate.
303 1.7 christos
304 1.7 christos 2016-01-14 Alan Modra <amodra (a] gmail.com>
305 1.7 christos
306 1.7 christos PR ld/19421
307 1.7 christos PR ld/4317
308 1.7 christos * elflink.c (elf_link_input_bfd): Revert 2015-02-19 changes.
309 1.7 christos (elf_link_output_extsym): Likewise.
310 1.7 christos
311 1.7 christos 2016-01-11 Jiong Wang <jiong.wang (a] arm.com>
312 1.7 christos
313 1.7 christos Apply from master
314 1.6 skrll
315 1.7 christos 2016-01-08 Richard Sandiford <richard.sandiford (a] arm.com>
316 1.7 christos Jiong Wang <jiong.wang (a] arm.com>
317 1.4 skrll
318 1.7 christos PR ld/19368
319 1.7 christos * elf32-arm.c (elf32_arm_reloc_type_class): Map R_ARM_IRELATIVE to
320 1.7 christos reloc_class_ifunc.
321 1.3 christos
322 1.7 christos 2016-01-06 Maciej W. Rozycki <macro (a] imgtec.com>
323 1.3 christos
324 1.7 christos Apply from master.
325 1.7 christos 2016-01-04 Maciej W. Rozycki <macro (a] imgtec.com>
326 1.7 christos * elfxx-mips.c (mips_elf_merge_obj_attributes): Propagate the
327 1.7 christos return status from `_bfd_elf_merge_object_attributes'.
328 1.3 christos
329 1.7 christos 2015-12-11 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
330 1.3 christos
331 1.7 christos Apply from master.
332 1.7 christos 2015-11-19 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
333 1.3 christos
334 1.7 christos PR ld/19263
335 1.7 christos * elf32-s390.c (elf_s390_gc_sweep_hook): Add null ptr check.
336 1.7 christos * elf64-s390.c (elf_s390_check_relocs): Port the GOTOFF handling
337 1.7 christos over from the 32 bit code.
338 1.7 christos (elf_s390_relocate_section): Likewise.
339 1.7 christos
340 1.7 christos 2015-12-10 Alan Modra <amodra (a] gmail.com>
341 1.7 christos
342 1.7 christos Apply from master.
343 1.7 christos 2015-12-07 Alan Modra <amodra (a] gmail.com>
344 1.7 christos * elf32-ppc.c (ppc_elf_check_relocs): Don't error on local ifunc
345 1.7 christos plt call. Wrap long lines.
346 1.7 christos (ppc_elf_relocate_section): Wrap long lines.
347 1.7 christos * elf64-ppc.c (ppc64_elf_check_relocs): Don't error on local ifunc
348 1.7 christos plt calls. Move __tls_get_addr checks later. Don't create plt
349 1.7 christos for addr14/addr24 relocs.
350 1.7 christos (ppc64_elf_gc_sweep_hook): Adjust to suit check_relocs changes.
351 1.7 christos (ppc64_elf_relocate_section): Correct local ifunc handling for
352 1.7 christos PLT64, PLT32 and PLT16 relocs.
353 1.7 christos
354 1.7 christos 2015-12-07 Alan Modra <amodra (a] gmail.com>
355 1.7 christos PR 19323
356 1.7 christos * elfcode.h (elf_object_p): Check for ridiculous e_shnum and
357 1.7 christos e_phnum values.
358 1.7 christos
359 1.7 christos 2015-12-07 Alan Modra <amodra (a] gmail.com>
360 1.7 christos * reloc.c (BFD_RELOC_PPC64_ENTRY): New.
361 1.7 christos * elf64-ppc.c (reloc_howto_type ppc64_elf_howto_raw): Add
362 1.7 christos entry for R_PPC64_ENTRY.
363 1.7 christos (LD_R2_0R12, ADD_R2_R2_R12, LIS_R2, ADDIS_R2_R12): Define.
364 1.7 christos (ppc64_elf_reloc_type_lookup): Handle R_PPC64_ENTRY.
365 1.7 christos (ppc64_elf_relocate_section): Edit code at R_PPC64_ENTTY. Use
366 1.7 christos new insn defines.
367 1.7 christos * libbfd.h: Regenerate.
368 1.7 christos * bfd-in2.h: Regenerate.
369 1.3 christos
370 1.7 christos 2015-12-02 Alan Modra <amodra (a] gmail.com>
371 1.7 christos PR binutils/19315
372 1.7 christos * dwarf2.c (_bfd_elf_find_function): Return symbol matched.
373 1.7 christos (_bfd_dwarf2_find_nearest_line): Check symbol returned above
374 1.7 christos against dwarf range.
375 1.7 christos * elf-bfd.h (_bfd_elf_find_function): Update prototype.
376 1.7 christos
377 1.7 christos 2015-12-02 Alan Modra <amodra (a] gmail.com>
378 1.7 christos * elf64-ppc.c (ppc64_elf_tls_optimize): Don't segfault on NULL
379 1.7 christos symbol section or output section.
380 1.7 christos (ppc64_elf_edit_toc): Similarly for ld -R objects.
381 1.7 christos (ppc64_elf_size_stubs): Likewise.
382 1.7 christos
383 1.7 christos 2015-11-20 Stefan Teleman <stefan.teleman (a] oracle.com>
384 1.7 christos PR ld/19260
385 1.7 christos * cache.c (bfd_cache_max_open): Avoid using getrlimit on 32-bit
386 1.7 christos Solaris as the result is unreliable.
387 1.7 christos
388 1.7 christos 2015-11-18 Alan Modra <amodra (a] gmail.com>
389 1.7 christos PR 19256
390 1.7 christos * archive.c (bfd_generic_openr_next_archived_file): Don't allow
391 1.7 christos backward file movement via "negative" sizes.
392 1.7 christos * coff-alpha.c (alpha_ecoff_openr_next_archived_file): Likewise.
393 1.7 christos
394 1.7 christos 2015-12-04 H.J. Lu <hongjiu.lu (a] intel.com>
395 1.7 christos
396 1.7 christos * elf32-i386.c (elf_i386_convert_load): Skip if addend isn't 0.
397 1.7 christos (elf_i386_relocate_section): Skip R_386_GOT32X optimization if
398 1.7 christos addend isn't 0.
399 1.7 christos
400 1.7 christos 2015-12-01 H.J. Lu <hongjiu.lu (a] intel.com>
401 1.7 christos
402 1.7 christos PR ld/19319
403 1.7 christos * elf32-i386.c (elf_i386_convert_load): Check h->def_regular
404 1.7 christos instead of bfd_link_hash_new.
405 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_load): Likewise. Skip
406 1.7 christos relocation overflow for bfd_link_hash_undefined and
407 1.7 christos bfd_link_hash_new if h->def_regular is set.
408 1.3 christos
409 1.7 christos 2015-11-13 Tristan Gingold <gingold (a] adacore.com>
410 1.3 christos
411 1.7 christos * version.m4: Bump version to 2.25.90
412 1.7 christos * configure: Regenerate.
413 1.3 christos
414 1.7 christos 2015-11-13 Tristan Gingold <gingold (a] adacore.com>
415 1.3 christos
416 1.7 christos * version.m4: Bump version to 2.26.51
417 1.7 christos * configure: Regenerate.
418 1.3 christos
419 1.7 christos 2015-11-11 Alan Modra <amodra (a] gmail.com>
420 1.8 christos Peter Bergner <bergner (a] vnet.ibm.com>
421 1.3 christos
422 1.7 christos * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_REL16DX_HA.
423 1.7 christos (ppc_elf_reloc_type_lookup): Handle R_PPC_REL16DX_HA.
424 1.7 christos (ppc_elf_addr16_ha_reloc): Likewise.
425 1.7 christos (ppc_elf_check_relocs): Likewise.
426 1.7 christos (ppc_elf_relocate_section): Likewise.
427 1.7 christos (is_insn_dq_form): Handle lxv and stxv instructions.
428 1.7 christos * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_REL16DX_HA.
429 1.7 christos (ppc64_elf_reloc_type_lookup): Handle R_PPC64_REL16DX_HA.
430 1.7 christos (ppc64_elf_ha_reloc): Likewise.
431 1.7 christos (ppc64_elf_check_relocs): Likewise.
432 1.7 christos (ppc64_elf_relocate_section): Likewise.
433 1.7 christos * bfd-in2.h: Regenerate.
434 1.7 christos * libbfd.h: Likewise.
435 1.7 christos * reloc.c (BFD_RELOC_PPC_REL16DX_HA): New.
436 1.3 christos
437 1.7 christos 2015-11-10 H.J. Lu <hongjiu.lu (a] intel.com>
438 1.3 christos
439 1.7 christos * elf32-i386.c (elf_i386_relocate_section): Handle VTINHERIT
440 1.7 christos and VTENTRY relocations when deleting relocations.
441 1.7 christos * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
442 1.3 christos
443 1.7 christos 2015-11-10 H.J. Lu <hongjiu.lu (a] intel.com>
444 1.2 skrll
445 1.7 christos * elf32-i386.c (elf_i386_relocate_section): Properly move
446 1.7 christos kept relocations when deleting relocations.
447 1.7 christos * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
448 1.3 christos
449 1.7 christos 2015-11-09 H.J. Lu <hongjiu.lu (a] intel.com>
450 1.3 christos
451 1.7 christos * elf32-i386.c (elf_i386_relocate_section): Use read and write
452 1.7 christos pointers to reloc array, rather than memmove when deleting a
453 1.7 christos reloc. Don't use RELOC_AGAINST_DISCARDED_SECTION. Adjust
454 1.7 christos reloc counts at end of loop.
455 1.7 christos * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
456 1.3 christos
457 1.7 christos 2015-11-10 Alan Modra <amodra (a] gmail.com>
458 1.3 christos
459 1.7 christos * elf64-ppc.c (ppc64_elf_relocate_section): Use read and write
460 1.7 christos pointers to reloc array, rather than memmove when deleting a
461 1.7 christos reloc. Don't use RELOC_AGAINST_DISCARDED_SECTION. Adjust
462 1.7 christos reloc counts at end of loop.
463 1.7 christos * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
464 1.2 skrll
465 1.7 christos 2015-11-09 Dominik Vogt <vogt (a] linux.vnet.ibm.com>
466 1.2 skrll
467 1.7 christos * elf64-ppc.c (ppc64_elf_size_stubs, ppc64_elf_build_stubs): Fix left
468 1.7 christos shift of negative value.
469 1.7 christos * libbfd.c (safe_read_leb128): Likewise.
470 1.7 christos * dwarf2.c (place_sections): Likewise.
471 1.7 christos * bfd-in.h (align_power): Likewise.
472 1.7 christos * bfd-in2.h (align_power): Likewise.
473 1.2 skrll
474 1.7 christos 2015-10-30 Nick Clifton <nickc (a] redhat.com>
475 1.2 skrll
476 1.7 christos * po/zh_CN.po: Updated (simplified) Chinese translation.
477 1.2 skrll
478 1.7 christos 2015-10-29 Catherine Moore <clm (a] codesourcery.com>
479 1.2 skrll
480 1.8 christos * elfxx-mips.c (mips_elf_check_mips16_stubs): Set a stub's output
481 1.8 christos section to bfd_abs_section_ptr if the stub is discarded.
482 1.5 christos
483 1.7 christos 2015-10-29 Ed Schouten <ed (a] nuxi.nl>
484 1.5 christos
485 1.7 christos * config.bfd (targ_defvec): Add support for CloudABI on aarch64.
486 1.7 christos For this target we have to make sure we use ELFOSABI_CLOUDABI
487 1.7 christos instead of ELFOSABI_NONE.
488 1.7 christos * configure.ac (tb): Likewise.
489 1.7 christos * elfnn-aarch64.c: Likewise.
490 1.7 christos * targets.c (_bfd_target_vector): Likewise.
491 1.7 christos * configure: Regenerate.
492 1.5 christos
493 1.7 christos 2015-10-29 Pedro Alves <palves (a] redhat.com>
494 1.5 christos
495 1.7 christos * libhppa.h (bfd_hppa_insn2fmt): Add cast.
496 1.5 christos
497 1.7 christos 2015-10-28 H.J. Lu <hongjiu.lu (a] intel.com>
498 1.5 christos
499 1.7 christos * elf32-i386.c (elf_i386_relocate_section): Fix a typo in
500 1.7 christos comment.
501 1.5 christos
502 1.7 christos 2015-10-28 Nick Clifton <nickc (a] redhat.com>
503 1.5 christos
504 1.7 christos * elf32-arm.c (create_instruction_branch_absolute): Replace
505 1.7 christos pointer parameters with a simple integer parameter.
506 1.7 christos (stm32l4xx_create_replacing_stub_ldmia): Update calls to
507 1.7 christos create_instruction_branch_absolute.
508 1.7 christos (stm32l4xx_create_replacing_stub_ldmdb): Likewise.
509 1.7 christos (stm32l4xx_create_replacing_stub_vldm): Likewise.
510 1.7 christos (elf32_arm_write_section): Use pointer type for veneer addresses.
511 1.3 christos
512 1.7 christos 2015-10-28 Cupertino Miranda <cmiranda (a] synopsys.com>
513 1.2 skrll
514 1.7 christos * reloc.c (BFD_RELOC_ARC_32_PCREL): New entry.
515 1.7 christos * elf32-arc.c (arc_elf_howto_ini): Update formula.
516 1.7 christos (get_middle_endian_relocation): New function.
517 1.7 christos (PDATA): Define.
518 1.7 christos * bfd-in2.h: Regenerate.
519 1.7 christos * libbfd.h: Likewise.
520 1.1 skrll
521 1.7 christos 2015-10-28 Alan Modra <amodra (a] gmail.com>
522 1.1 skrll
523 1.7 christos PR ld/19162
524 1.7 christos * elflink.c (_bfd_elf_gc_mark_reloc): Move code iterating over
525 1.7 christos linker input bfds..
526 1.7 christos * section.c (bfd_get_next_section_by_name): ..to here. Add ibfd param.
527 1.7 christos (bfd_get_linker_section): Adjust bfd_get_next_section_by_name call.
528 1.7 christos * tekhex.c (first_phase): Likewise.
529 1.7 christos * elflink.c (bfd_elf_gc_sections): Likewise.
530 1.7 christos * bfd-in2.h: Regenerate.
531 1.1 skrll
532 1.7 christos 2015-10-27 Laurent Alfonsi <laurent.alfonsi (a] st.com>
533 1.8 christos Christophe Monat <christophe.monat (a] st.com>
534 1.1 skrll
535 1.7 christos * bfd-in2.h: Regenerate.
536 1.7 christos * bfd-in.h (bfd_arm_stm32l4xx_fix): New enum. Specify how
537 1.7 christos STM32L4XX instruction scanning should be done.
538 1.7 christos (bfd_elf32_arm_set_stm32l4xx_fix)
539 1.7 christos (bfd_elf32_arm_stm32l4xx_erratum_scan)
540 1.7 christos (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Add prototypes.
541 1.7 christos (bfd_elf32_arm_set_target_relocs): Add stm32l4xx fix type argument
542 1.7 christos to prototype.
543 1.7 christos * elf32-arm.c (STM32L4XX_ERRATUM_VENEER_SECTION_NAME)
544 1.7 christos (STM32L4XX_ERRATUM_VENEER_ENTRY_NAME): Define macros.
545 1.7 christos (elf32_stm32l4xx_erratum_type): New enum.
546 1.7 christos (elf32_stm32l4xx_erratum_list): New struct. List of veneers or
547 1.7 christos jumps to veneers.
548 1.7 christos (_arm_elf_section_data): Add stm32l4xx_erratumcount,
549 1.7 christos stm32l4xx_erratumlist.
550 1.7 christos (elf32_arm_link_hash_table): Add stm32l4xx_erratum_glue_size,
551 1.7 christos stm32l4xx_fix and num_stm32l4xx_fixes fields.
552 1.7 christos (ctz): New function.
553 1.7 christos (popcount): New function.
554 1.7 christos (elf32_arm_link_hash_table_create): Initialize stm32l4xx_fix.
555 1.7 christos (put_thumb2_insn): New function.
556 1.7 christos (STM32L4XX_ERRATUM_LDM_VENEER_SIZE): Define. Size of a veneer for
557 1.7 christos LDM instructions.
558 1.7 christos (STM32L4XX_ERRATUM_VLDM_VENEER_SIZE): Define. Size of a veneer for
559 1.7 christos VLDM instructions.
560 1.7 christos (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
561 1.7 christos glue section.
562 1.7 christos (record_stm32l4xx_erratum_veneer) : New function. Create a single
563 1.7 christos veneer, and its associated symbols.
564 1.7 christos (bfd_elf32_arm_add_glue_sections_to_bfd): Add STM32L4XX erratum glue.
565 1.7 christos (bfd_elf32_arm_set_stm32l4xx_fix): New function. Set the type of
566 1.7 christos erratum workaround required.
567 1.7 christos (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): New function. Find
568 1.7 christos out where veneers and branches to veneers have been placed in
569 1.7 christos virtual memory after layout.
570 1.7 christos (is_thumb2_ldmia): New function.
571 1.7 christos (is_thumb2_ldmdb): Likewise.
572 1.7 christos (is_thumb2_vldm ): Likewise.
573 1.7 christos (stm32l4xx_need_create_replacing_stub): New function. Decide if a
574 1.7 christos veneer must be emitted.
575 1.7 christos (bfd_elf32_arm_stm32l4xx_erratum_scan): Scan the sections of an
576 1.7 christos input BFD for potential erratum-triggering insns. Record results.
577 1.7 christos (bfd_elf32_arm_set_target_relocs): Set stm32l4xx_fix field in
578 1.7 christos global hash table.
579 1.7 christos (elf32_arm_size_dynamic_sections): Collect glue information.
580 1.7 christos (create_instruction_branch_absolute): New function.
581 1.7 christos (create_instruction_ldmia): Likewise.
582 1.7 christos (create_instruction_ldmdb): Likewise.
583 1.7 christos (create_instruction_mov): Likewise.
584 1.7 christos (create_instruction_sub): Likewise.
585 1.7 christos (create_instruction_vldmia): Likewise.
586 1.7 christos (create_instruction_vldmdb): Likewise.
587 1.7 christos (create_instruction_udf_w): Likewise.
588 1.7 christos (create_instruction_udf): Likewise.
589 1.7 christos (push_thumb2_insn32): Likewise.
590 1.7 christos (push_thumb2_insn16): Likewise.
591 1.7 christos (stm32l4xx_fill_stub_udf): Likewise.
592 1.7 christos (stm32l4xx_create_replacing_stub_ldmia): New function. Expands the
593 1.7 christos replacing stub for ldmia instructions.
594 1.7 christos (stm32l4xx_create_replacing_stub_ldmdb): Likewise for ldmdb.
595 1.7 christos (stm32l4xx_create_replacing_stub_vldm): Likewise for vldm.
596 1.7 christos (stm32l4xx_create_replacing_stub): New function. Dispatches the
597 1.7 christos stub emission to the appropriate functions.
598 1.7 christos (elf32_arm_write_section): Output veneers, and branches to veneers.
599 1.1 skrll
600 1.7 christos 2015-10-27 Sangamesh Mallayya <nickc (a] redhat.com>sangamesh.swamy (a] in.ibm.com>
601 1.3 christos
602 1.7 christos * configure.ac (powerpc64-*-aix[5-9].*): Match powerpc64 running
603 1.7 christos aix for core file support.
604 1.7 christos * configure: Regenerate.
605 1.7 christos * rs6000-core.c: Check for __ld_info64 if compiling 64-bit gdb.
606 1.7 christos Added BFD64 check if we are using old core file format for 32-bit gdb.
607 1.7 christos Set sizeof CORE_COMMONSZ appropriately in case of either new or
608 1.7 christos old core file format.
609 1.7 christos (read_hdr): Added BFD64 check for 64-bit support.
610 1.7 christos (rs6000coff_core_p): Likewise.
611 1.7 christos (rs6000coff_core_file_matches_executable_p): Likewise.
612 1.7 christos (rs6000coff_core_file_failing_command): Likewise.
613 1.7 christos (rs6000coff_core_file_failing_signal): Likewise.
614 1.7 christos Add support for debugging core files generated by binaries in
615 1.7 christos Large Memory model.
616 1.7 christos (rs6000coff_core_p): If Large Memory Model is used, then the .data
617 1.7 christos segment should start from BDATAORG which has been defined in the
618 1.7 christos system header files.
619 1.7 christos
620 1.7 christos 2015-10-26 H.J. Lu <hongjiu.lu (a] intel.com>
621 1.7 christos
622 1.7 christos PR ld/19175
623 1.7 christos * elf32-i386.c (elf_i386_convert_load): Check bfd_link_hash_new
624 1.7 christos instead of calling bfd_link_get_defined_symbol.
625 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_load): Likewise. Skip
626 1.7 christos relocation overflow for bfd_link_hash_new.
627 1.7 christos * linker.c (bfd_link_get_defined_symbol): Removed.
628 1.7 christos * bfd-in2.h: Regenerated.
629 1.1 skrll
630 1.7 christos 2015-10-26 H.J. Lu <hongjiu.lu (a] intel.com>
631 1.1 skrll
632 1.7 christos PR ld/19171
633 1.7 christos * elf32-i386.c (elf_i386_convert_load): Call
634 1.7 christos bfd_link_get_defined_symbol to check if a symbol is defined.
635 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_load): Call
636 1.7 christos bfd_link_get_defined_symbol to get defined symbol section and
637 1.7 christos value.
638 1.7 christos * linker.c (bfd_link_get_defined_symbol): New function.
639 1.7 christos * bfd-in2.h: Regenerated.
640 1.1 skrll
641 1.7 christos 2015-10-23 Alan Modra <amodra (a] gmail.com>
642 1.1 skrll
643 1.7 christos PR ld/11133
644 1.7 christos PR ld/19161
645 1.7 christos PR ld/19167
646 1.7 christos * elflink.c (_bfd_elf_gc_mark_hook): Delete code handling __start_*
647 1.7 christos and __stop_* symbol refs.
648 1.7 christos (_bfd_elf_gc_mark_rsec): Add start_stop parameter. Handle __start_*
649 1.7 christos and __stop_* symbol refs here..
650 1.7 christos (_bfd_elf_gc_mark_reloc): ..and here.
651 1.7 christos * elf-bfd.h (_bfd_elf_gc_mark_hook): Update prototype.
652 1.7 christos * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Update
653 1.7 christos _bfd_elf_gc_mark_rsec call.
654 1.7 christos
655 1.7 christos 2015-10-23 Alan Modra <amodra (a] gmail.com>
656 1.7 christos
657 1.7 christos PR ld/11133
658 1.7 christos PR ld/19161
659 1.7 christos * elflink.c (elf_gc_sweep): Revert last patch.
660 1.7 christos (_bfd_elf_gc_mark_hook): Don't set SEC_KEEP here.
661 1.7 christos
662 1.7 christos 2015-10-22 H.J. Lu <hongjiu.lu (a] intel.com>
663 1.7 christos
664 1.7 christos PR ld/19161
665 1.7 christos * elflink.c (elf_gc_sweep): Always keep sections marked with
666 1.7 christos SEC_KEEP.
667 1.7 christos
668 1.7 christos 2015-10-22 Hans-Peter Nilsson <hp (a] bitrange.com>
669 1.7 christos
670 1.7 christos * mmo.c (struct mmo_data_struct): New members
671 1.7 christos symbol_consistency_override_calculated and ignore_symbol_consistency.
672 1.7 christos (mmo_section_has_contents, mmo_ignore_symbol_consistency): New
673 1.7 christos functions.
674 1.7 christos (mmo_create_symbol): Check with mmo_ignore_symbol_consistency if to
675 1.7 christos report an error for unexpected value of Main.
676 1.7 christos (mmo_write_symbols_and_terminator): Similar.
677 1.7 christos
678 1.7 christos 2015-10-22 H.J. Lu <hongjiu.lu (a] intel.com>
679 1.7 christos
680 1.7 christos * elf32-i386.c (elf_i386_convert_load): Use call_nop_byte and
681 1.7 christos check call_nop_as_suffix for 1-byte NOP padding to pad call.
682 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_load): Likewise.
683 1.7 christos
684 1.7 christos 2015-10-22 H.J. Lu <hongjiu.lu (a] intel.com>
685 1.7 christos
686 1.7 christos * elf64-x86-64.c: Include opcode/i386.h.
687 1.7 christos (x86_64_elf_howto_table): Add R_X86_64_GOTPCRELX and
688 1.7 christos R_X86_64_REX_GOTPCRELX.
689 1.7 christos (R_X86_64_standard): Replace R_X86_64_PLT32_BND with
690 1.7 christos R_X86_64_REX_GOTPCRELX.
691 1.7 christos (x86_64_reloc_map): Add BFD_RELOC_X86_64_GOTPCRELX and
692 1.7 christos BFD_RELOC_X86_64_REX_GOTPCRELX.
693 1.7 christos (need_convert_mov_to_lea): Renamed to ...
694 1.7 christos (need_convert_load): This.
695 1.7 christos (elf_x86_64_check_relocs): Handle R_X86_64_GOTPCRELX and
696 1.7 christos R_X86_64_REX_GOTPCRELX. Replace need_convert_mov_to_lea with
697 1.7 christos need_convert_load.
698 1.7 christos (elf_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPCRELX and
699 1.7 christos R_X86_64_REX_GOTPCRELX.
700 1.7 christos (elf_x86_64_size_dynamic_sections): Likewise.
701 1.7 christos (elf_x86_64_relocate_section): Likewise.
702 1.7 christos (elf_x86_64_convert_mov_to_lea): Renamed to ...
703 1.7 christos (elf_x86_64_convert_load): This. Replace need_convert_mov_to_lea
704 1.7 christos with need_convert_load. Support R_X86_64_GOTPCRELX and
705 1.7 christos R_X86_64_REX_GOTPCRELX transformations.
706 1.7 christos * reloc.c (BFD_RELOC_X86_64_GOTPCRELX): New.
707 1.7 christos (BFD_RELOC_X86_64_REX_GOTPCRELX): Likewise.
708 1.7 christos * bfd-in2.h: Regenerated.
709 1.7 christos * libbfd.h: Likewise.
710 1.1 skrll
711 1.7 christos 2015-10-22 H.J. Lu <hongjiu.lu (a] intel.com>
712 1.1 skrll
713 1.7 christos * elf32-i386.c: Include opcode/i386.h.
714 1.7 christos (elf_howto_table): Add R_386_GOT32X.
715 1.7 christos (R_386_ext2): Replace R_386_IRELATIVE with R_386_GOT32X.
716 1.7 christos (elf_i386_reloc_type_lookup): Handle BFD_RELOC_386_GOT32X.
717 1.7 christos (need_convert_mov_to_lea): Renamed to ...
718 1.7 christos (need_convert_load): This.
719 1.7 christos (elf_i386_check_relocs): Handle R_386_GOT32X. Replace
720 1.7 christos need_convert_mov_to_lea with need_convert_load.
721 1.7 christos (elf_i386_gc_sweep_hook): Handle R_386_GOT32X.
722 1.7 christos (elf_i386_size_dynamic_sections): Likewise.
723 1.7 christos (elf_i386_relocate_section): Likewise.
724 1.7 christos (elf_i386_convert_mov_to_lea): Renamed to ...
725 1.7 christos (elf_i386_convert_load): This. Replace need_convert_mov_to_lea
726 1.7 christos with need_convert_load. Support R_386_GOT32X transformations.
727 1.7 christos * reloc.c (BFD_RELOC_386_GOT32X): New.
728 1.7 christos * bfd-in2.h: Regenerated.
729 1.7 christos * libbfd.h: Likewise.
730 1.7 christos
731 1.7 christos 2015-10-22 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
732 1.1 skrll
733 1.7 christos * elf32-s390.c (elf_s390_check_relocs): Set the non_got_ref marker
734 1.7 christos only when linking an executable.
735 1.7 christos (elf_s390_relocate_section): Redirect PC-relative relocs to a IPLT
736 1.7 christos slot.
737 1.7 christos * elf64-s390.c (elf_s390_check_relocs): Set the non_got_ref marker
738 1.7 christos only when linking an executable.
739 1.7 christos (elf_s390_relocate_section): Redirect PC-relative relocs to a IPLT
740 1.7 christos slot.
741 1.1 skrll
742 1.7 christos 2015-10-22 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
743 1.7 christos
744 1.7 christos * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Set the PLT
745 1.7 christos reference counters for local IFUNC calls.
746 1.7 christos * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
747 1.1 skrll
748 1.7 christos 2015-10-22 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
749 1.1 skrll
750 1.7 christos * elf32-s390.c (elf_s390_check_relocs): Fallthrough to the PLT
751 1.7 christos slot allocating code for GOTOFF relocs on ifunc symbols.
752 1.7 christos (elf_s390_gc_sweep_hook): Decrement plt refcount for GOTOFF relocs
753 1.7 christos on ifunc symbols.
754 1.7 christos (elf_s390_relocate_section): Redirect a GOTOFF reloc to an iplt
755 1.7 christos slot.
756 1.1 skrll
757 1.7 christos 2015-10-22 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
758 1.1 skrll
759 1.7 christos PR ld/18841
760 1.7 christos * elf32-s390.c (elf_s390_reloc_type_class): Return
761 1.7 christos reloc_class_ifunc for ifunc symbols.
762 1.7 christos * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
763 1.1 skrll
764 1.7 christos 2015-10-22 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
765 1.1 skrll
766 1.7 christos * elf32-s390.c (elf_s390_finish_dynamic_symbol): Call
767 1.7 christos elf_s390_finish_ifunc_symbol only for actually defined symbols.
768 1.7 christos * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
769 1.1 skrll
770 1.7 christos 2015-10-22 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
771 1.1 skrll
772 1.7 christos * elf-s390-common.c (s390_elf_allocate_ifunc_dyn_relocs): Remove
773 1.7 christos `head' parameter.
774 1.7 christos * elf32-s390.c (allocate_dynrelocs): Don't use last parameter.
775 1.7 christos * elf64-s390.c (allocate_dynrelocs): Don't use last parameter.
776 1.1 skrll
777 1.7 christos 2015-10-20 Hans-Peter Nilsson <hp (a] bitrange.com>
778 1.1 skrll
779 1.7 christos * mmo.c (mmo_write_symbols_and_terminator): Correct printed value
780 1.7 christos of Main in error message.
781 1.1 skrll
782 1.7 christos 2015-10-18 Doug Evans <xdje42 (a] gmail.com>
783 1.1 skrll
784 1.7 christos * targets.c (bfd_flavour_name): "MMO" is spelled "mmo".
785 1.1 skrll
786 1.7 christos 2015-10-17 Alan Modra <amodra (a] gmail.com>
787 1.1 skrll
788 1.7 christos * elf64-ppc.c (ppc64_elf_size_stubs): Correct __glink_PLTresolve
789 1.7 christos eh_frame FDE for ELFv1.
790 1.5 christos
791 1.7 christos 2015-10-16 H.J. Lu <hongjiu.lu (a] intel.com>
792 1.5 christos
793 1.7 christos * elf32-i386.c (elf_i386_convert_mov_to_lea): Check if symbol
794 1.7 christos is defined.
795 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
796 1.5 christos
797 1.7 christos 2015-10-16 H.J. Lu <hongjiu.lu (a] intel.com>
798 1.5 christos
799 1.7 christos * elf32-i386.c (elf_i386_convert_mov_to_lea): Don't check
800 1.7 christos def_regular.
801 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
802 1.5 christos
803 1.7 christos 2015-10-15 H.J. Lu <hongjiu.lu (a] intel.com>
804 1.5 christos
805 1.7 christos * elflink.c (_bfd_elf_merge_symbol): Fix typos in comments
806 1.1 skrll
807 1.7 christos 2015-10-15 Alan Modra <amodra (a] gmail.com>
808 1.1 skrll
809 1.7 christos * elf32-v850.c (v850_elf_copy_private_bfd_data): Remove assertion
810 1.7 christos that input and output .note.renesas sections are same size.
811 1.7 christos Instead, only copy input to output if they are.
812 1.1 skrll
813 1.7 christos 2015-10-15 Riku Voipio <riku.voipio (a] iki.fi>
814 1.1 skrll
815 1.7 christos PR ld/19123
816 1.7 christos * elfcore.h (elf_core_file_p): Use the file_ptr type to hold the
817 1.7 christos offset for bfd_seek.
818 1.7 christos * elfcode.h (elf_object_p): Likewise.
819 1.1 skrll
820 1.7 christos 2015-10-14 Rich Felker <dalias (a] libc.org>
821 1.1 skrll
822 1.7 christos PR ld/19091
823 1.7 christos * elf32-sh.c (sh_elf_size_dynamic_sections): Always emit
824 1.7 christos DT_PLTGOT for FDPIC output.
825 1.1 skrll
826 1.7 christos 2015-10-13 Alan Modra <amodra (a] gmail.com>
827 1.1 skrll
828 1.7 christos * elf.c (_bfd_elf_map_sections_to_segments): Don't set
829 1.7 christos PT_GNU_RELRO p_flags.
830 1.7 christos (assign_file_positions_for_non_load_sections): Set PT_GNU_RELRO
831 1.7 christos flags to PF_R here.
832 1.1 skrll
833 1.7 christos 2015-10-12 H.J. Lu <hongjiu.lu (a] intel.com>
834 1.1 skrll
835 1.7 christos PR ld/19073
836 1.7 christos * elflink.c (_bfd_elf_add_default_symbol): Skip the unversioned
837 1.7 christos definition after the default version.
838 1.1 skrll
839 1.7 christos 2015-10-12 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
840 1.1 skrll
841 1.7 christos PR ld/19083
842 1.7 christos * elf32-s390.c (elf_s390_gc_sweep_hook): Do not reduce got
843 1.7 christos refcount for relocs not really requiring a got slot.
844 1.7 christos * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
845 1.3 christos
846 1.7 christos 2015-10-11 John David Anglin <danglin (a] gcc.gnu.org>
847 1.1 skrll
848 1.7 christos * elf-hppa.h (elf_hppa_action_discarded): Ignore relocations in
849 1.7 christos .data.rel.ro.local.
850 1.1 skrll
851 1.7 christos 2015-10-07 Cupertino Miranda <cmiranda (a] synopsys.com>
852 1.1 skrll
853 1.7 christos * archures.c: Remove support for older ARC. Added support for new
854 1.7 christos ARC cpus (ARC600, ARC601, ARC700, ARCV2).
855 1.7 christos * bfd-in2.h: Likewise.
856 1.7 christos * config.bfd: Likewise.
857 1.7 christos * cpu-arc.c: Likewise.
858 1.7 christos * elf32-arc.c: Totally changed file with a refactored
859 1.7 christos inplementation of the ARC port.
860 1.7 christos * libbfd.h: Added ARC specific relocation types.
861 1.7 christos * reloc.c: Likewise.
862 1.1 skrll
863 1.7 christos 2015-10-06 H.J. Lu <hongjiu.lu (a] intel.com>
864 1.1 skrll
865 1.7 christos * bfd.c (bfd_update_compression_header): Clear the ch_reserved
866 1.7 christos field in 64-bit output.
867 1.7 christos (bfd_convert_section_contents): Likewise.
868 1.1 skrll
869 1.7 christos 2015-10-05 H.J. Lu <hongjiu.lu (a] intel.com>
870 1.1 skrll
871 1.7 christos PR ld/18914
872 1.7 christos * elflink.c (elf_link_add_object_symbols): Don't re-export a
873 1.7 christos symbol if it isn't undefined.
874 1.1 skrll
875 1.7 christos 2015-10-04 H.J. Lu <hongjiu.lu (a] intel.com>
876 1.3 christos
877 1.7 christos * config.bfd (targ_selvecs, targ64_selvecs): Add iamcu_elf32_vec,
878 1.7 christos i386_pei_vec and x86_64_pei_vec for Solaris2/x86.
879 1.3 christos
880 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
881 1.3 christos
882 1.7 christos * elfnn-aarch64.c (aarch64_tls_transition_without_check): Add
883 1.7 christos relax transitions for TLSDESC_ADD, TLSDESC_LDR, TLSDESC_OFF_G0_NC,
884 1.7 christos TLSDESC_OFF_G1.
885 1.7 christos (aarch64_tls_transition_without_check): Add relaxation support.
886 1.7 christos (aarch64_reloc_got_type): Add support.
887 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
888 1.7 christos (elfNN_aarch64_tls_relax): Likewise.
889 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
890 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
891 1.7 christos (elfNN_aarch64_check_relocs): Likewise.
892 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
893 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
894 1.3 christos
895 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
896 1.3 christos
897 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): Check overflow for
898 1.7 christos BFD_RELOC_AARCH64_TLSDESC_OFF_G1.
899 1.3 christos
900 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
901 1.3 christos
902 1.7 christos * elfnn-aarch64.c(IS_AARCH64_TLS_RELAX_RELOC):
903 1.7 christos Add relaxation support for TLSGD_MOVW_G0_NC and TLSGD_MOVW_G1.
904 1.7 christos (aarch64_tls_transition_without_check): Likewise
905 1.7 christos (elfNN_aarch64_tls_relax): Likwise.
906 1.3 christos
907 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
908 1.3 christos
909 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Create GOT section
910 1.7 christos for TLSLE_MOVW_TPREL_G(1, 1_NC, 2) relocation.
911 1.1 skrll
912 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
913 1.1 skrll
914 1.7 christos * reloc.c: Make AARCH64_TLSIE_MOVW_GOTTPREL_G1 and
915 1.7 christos AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC defined in alphabetical order.
916 1.7 christos * libbfd.h: Regenerate.
917 1.7 christos * bfd-in2.h: Likewise.
918 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): Make
919 1.7 christos TLSIE_MOVW_GOTTPREL_G1 check overflow.
920 1.7 christos (aarch64_reloc_got_type): Add support for TLSIE_MOVW_GOTTPREL_G1
921 1.7 christos and TLSIE_MOVW_GOTTPREL_G0_NC.
922 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
923 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
924 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
925 1.7 christos (elfNN_aarch64_check_relocs): Likewise.
926 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
927 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
928 1.7 christos
929 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
930 1.7 christos
931 1.7 christos * elfnn-aarch64.c (aarch64_reloc_got_type): Add
932 1.7 christos BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC support.
933 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
934 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
935 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
936 1.7 christos (elfNN_aarch64_check_relocs): Likewise.
937 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
938 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
939 1.7 christos
940 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
941 1.7 christos
942 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC): New entry.
943 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
944 1.7 christos BFD_RELOC_AARCH64_TLSGD_MOVW_G0_NC.
945 1.7 christos * libbfd.h: Regenerate.
946 1.7 christos * bfd-in2.h: Likewise
947 1.3 christos
948 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
949 1.3 christos
950 1.7 christos * elfnn-aarch64.c (aarch64_reloc_got_type): Add
951 1.7 christos BFD_RELOC_AARCH64_TLSGD_MOVW_G1 support.
952 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
953 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
954 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
955 1.7 christos (elfNN_aarch64_check_relocs): Likewise.
956 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
957 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
958 1.7 christos
959 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
960 1.7 christos
961 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSGD_MOVW_G1): New entry.
962 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
963 1.7 christos BFD_RELOC_AARCH64_TLSGD_MOVW_G1.
964 1.7 christos * bfd-in2.h: Regenerate.
965 1.7 christos * libbfd.h: Likewise.
966 1.7 christos
967 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
968 1.1 skrll
969 1.7 christos * elfnn-aarch64.c (aarch64_reloc_got_type): Add
970 1.7 christos BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC support.
971 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
972 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
973 1.7 christos (elfNN_aarch64_check_relocs): Likewise.
974 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
975 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
976 1.7 christos
977 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
978 1.7 christos
979 1.7 christos * reloc.c (BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC): New.
980 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry
981 1.7 christos MOVW_GOTOFF_G0_NC.
982 1.7 christos * libbfd.h: Regnerate.
983 1.5 christos * bfd-in2.h: Regenerate.
984 1.7 christos
985 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
986 1.7 christos
987 1.7 christos * elfnn-aarch64.c (aarch64_reloc_got_type): Add support
988 1.7 christos for BFD_RELOC_AARCH64_MOVW_GOTOFF_G1.
989 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
990 1.7 christos (elfNN_aarch64_check_relocs): Likewise
991 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
992 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise
993 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise
994 1.7 christos
995 1.7 christos 2015-010-02 Renlin Li <renlin.li (a] arm.com>
996 1.7 christos
997 1.7 christos * reloc.c (BFD_RELOC_AARCH64_MOVW_GOTOFF_G1): New.
998 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
999 1.7 christos MOVW_GOTOFF_G1.
1000 1.5 christos * libbfd.h: Regenerate.
1001 1.7 christos * bfd-in2.h: Regenerate.
1002 1.7 christos
1003 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
1004 1.7 christos
1005 1.7 christos * elfnn-aarch64.c (aarch64_reloc_got_type): Add
1006 1.7 christos BFD_RELOC_AARCH64_LD_64_GOTOFF_LO15 support.
1007 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
1008 1.7 christos (elfNN_aarch64_check_relocs): Likewise
1009 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1010 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise
1011 1.7 christos (elfNN_aarch64_final_link_relocate): Calculate offset within GOT.
1012 1.7 christos
1013 1.7 christos 2015-10-02 Renlin Li <renlin.li (a] arm.com>
1014 1.7 christos
1015 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Change if to
1016 1.7 christos switch statement.
1017 1.7 christos
1018 1.7 christos 2015-10-01 H.J. Lu <hongjiu.lu (a] intel.com>
1019 1.7 christos
1020 1.7 christos PR ld/19031
1021 1.7 christos * elf64-x86-64.c (elf_x86_64_check_relocs): Set
1022 1.7 christos pointer_equality_needed for R_X86_64_PC32 reloc in non-code
1023 1.7 christos sections.
1024 1.7 christos
1025 1.7 christos 2015-10-01 Renlin Li <renlin.li (a] arm.com>
1026 1.7 christos
1027 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_output_plt_map): Remove.
1028 1.7 christos (elfNN_aarch64_output_arch_local_syms): Emit AARCH64_MAP_INSN once.
1029 1.1 skrll
1030 1.7 christos 2015-10-01 Kaz Kojima <kkojima (a] rr.iij4u.or.jp>
1031 1.3 christos
1032 1.7 christos * config.bfd (targ_selvecs): Remove sh_elf32_vec and
1033 1.7 christos sh_elf32_le_vec from sh*-*-linux cases.
1034 1.3 christos
1035 1.7 christos 2015-10-01 Alan Modra <amodra (a] gmail.com>
1036 1.3 christos
1037 1.7 christos PR ld/19013
1038 1.7 christos * elflink.c (_bfd_elf_merge_sections): Revert last change.
1039 1.3 christos
1040 1.7 christos 2015-09-30 H.J. Lu <hongjiu.lu (a] intel.com>
1041 1.3 christos
1042 1.7 christos PR ld/19031
1043 1.7 christos * elf32-i386.c (elf_i386_check_relocs): Set
1044 1.7 christos pointer_equality_needed for R_386_PC32 reloc in non-code
1045 1.7 christos sections.
1046 1.3 christos
1047 1.7 christos 2015-09-30 H.J. Lu <hongjiu.lu (a] intel.com>
1048 1.3 christos
1049 1.7 christos PR ld/19013
1050 1.7 christos * elflink.c (_bfd_elf_merge_sections): Only merge input bfds
1051 1.7 christos that have the compatible ELF machine code with the output bfd.
1052 1.1 skrll
1053 1.7 christos 2015-09-30 Alan Modra <amodra (a] gmail.com>
1054 1.3 christos
1055 1.7 christos PR ld/19013
1056 1.7 christos * elflink.c (_bfd_elf_merge_sections): Only merge input bfds that
1057 1.7 christos will be handled by elf_link_input_bfd. Rename abfd param to obfd.
1058 1.3 christos
1059 1.7 christos 2015-09-30 Rich Felker <dalias (a] libc.org>
1060 1.3 christos
1061 1.7 christos * config.bfd (targ_selvecs): Add fdpic and misc targets
1062 1.7 christos for sh*-*-linux*.
1063 1.3 christos
1064 1.7 christos 2015-09-29 Andrew Stubbs <ams (a] codesourcery.com>
1065 1.7 christos H.J. Lu <hongjiu.lu (a] intel.com>
1066 1.3 christos
1067 1.7 christos PR binutils/19020
1068 1.7 christos * bfd.c (bfd_convert_section_contents): Add ptr_size parameter.
1069 1.5 christos * bfd-in2.h: Regenerated.
1070 1.3 christos
1071 1.7 christos 2015-08-11 Peter Zotov <whitequark (a] whitequark.org>
1072 1.7 christos
1073 1.7 christos PR ld/18759
1074 1.7 christos * elf32-or1k.c (R_OR1K_32_PCREL): Set pcrel_offset to TRUE.
1075 1.7 christos (R_OR1K_16_PCREL): Likewise.
1076 1.7 christos (R_OR1K_8_PCREL): Likewise.
1077 1.7 christos
1078 1.7 christos 2015-09-23 Nick Clifton <nickc (a] redhat.com>
1079 1.7 christos
1080 1.7 christos * bout.c (b_out_slurp_reloc_table): Cast constant to unsigned in
1081 1.7 christos order to avoid problems with left shifting negative values.
1082 1.7 christos (abs32code): Likewise.
1083 1.7 christos * mach-o.c (FILE_ALIGN): Likewise.
1084 1.7 christos * coff-rs6000.c (xcoff_debug_sections): Delete unused static
1085 1.7 christos array.
1086 1.7 christos * elf32-visium.c (visium_reloc_map): Likewise.
1087 1.7 christos * elf32-arm.c (elf32_arm_final_link_relocate): Remove useless
1088 1.7 christos calls to abs function.
1089 1.7 christos * elf32-frv.c (_frvfdpic_relax_tls_entries): Likewise.
1090 1.7 christos * elf32-score.c (score_elf_final_link_relocate): Likewise.
1091 1.7 christos * elf32-score7.c (score_elf_final_link_relocate): Likewise.
1092 1.7 christos * elf32-i860.c (i860_howto_pc26_reloc): Use multiplication instead
1093 1.7 christos of shifting to create a negative mask.
1094 1.7 christos * elf32-msp430.c (elf_backend_special_sections): Define.
1095 1.7 christos * elfxx-mips.c (got_ofst_reloc_p): Delete unused function.
1096 1.7 christos (got_hi16_reloc_p): Delete unused function.
1097 1.7 christos * ppcboot.c (ppcboot_bfd_print_private_bfd_data): Fix test of
1098 1.7 christos partition name.
1099 1.7 christos
1100 1.7 christos 2015-09-23 Nick Clifton <nickc (a] redhat.com>
1101 1.7 christos
1102 1.7 christos PR binutils/15835
1103 1.7 christos * elf-bfd.h (struct elf_section_list): New structure.
1104 1.7 christos (struct elf_obj_tdata): Replace symtab_shndx_hdr with
1105 1.7 christos symtab_shndx_list. Delete symtab_shndx_section.
1106 1.7 christos (elf_symtab_shndx): Replace macro with elf_symtab_shndx_list.
1107 1.7 christos * elf.c (bfd_elf_get_syms): If symtab index sections are present,
1108 1.7 christos scan them for the section that matches the provided symbol table.
1109 1.7 christos (bfd_section_from_shdr): Record all SHT_SYMTAB_SHNDX sections.
1110 1.7 christos (assign_section_numbers): Use the first symtab index table in the
1111 1.7 christos list.
1112 1.7 christos (_bfd_elf_compute_section_file_positions): Replace use of
1113 1.7 christos symtab_shndx_hdr with use of symtab_shndx_list.
1114 1.7 christos (find_section_in_list): New function.
1115 1.7 christos (assign_file_postions_except_relocs): Use new function.
1116 1.7 christos (_bfd_elf_copy_private_symbol_data): Likewise.
1117 1.7 christos (swap_out_syms): Handle multiple symbol table index sections.
1118 1.7 christos * elf32-m32c.c (m32c_elf_relax_section): Replace use of
1119 1.7 christos symtab_shndx_hdr with use of symtab_shndx_list.
1120 1.7 christos * elf32-rl78.c (rl78_elf_relax_section): Likewise.
1121 1.7 christos * elf32-rx.c (rx_relax_section): Likewise.
1122 1.7 christos * elf32-v850.c (v850_elf_relax_delete_bytes): Likewise.
1123 1.7 christos * elflink.c (bfd_elf_final_link): Likewise.
1124 1.7 christos
1125 1.7 christos 2015-09-21 H.J. Lu <hongjiu.lu (a] intel.com>
1126 1.7 christos
1127 1.7 christos * bfd.c (bfd_update_compression_header): Use bfd_put_32 on
1128 1.7 christos ch_type.
1129 1.7 christos (bfd_check_compression_header): Use bfd_get_32 on ch_type.
1130 1.7 christos (bfd_convert_section_contents): Use bfd_get_32 and bfd_put_32
1131 1.7 christos on ch_type.
1132 1.7 christos
1133 1.7 christos 2015-09-20 Rich Felker <dalias (a] libc.org>
1134 1.7 christos
1135 1.7 christos * elflink.c (_bfd_elf_link_create_dynamic_sections): Don't create
1136 1.7 christos .interp when info->nointerp.
1137 1.7 christos (bfd_elf_size_dynamic_sections): Adjust assert.
1138 1.7 christos * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't size .interp
1139 1.7 christos when info->nointerp.
1140 1.7 christos * elf32-bfin.c (elf32_bfinfdpic_size_dynamic_sections): Likewise.
1141 1.7 christos * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
1142 1.7 christos * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
1143 1.7 christos * elf32-frv.c (elf32_frvfdpic_size_dynamic_sections): Likewise.
1144 1.7 christos * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1145 1.7 christos * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1146 1.7 christos * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
1147 1.7 christos * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
1148 1.7 christos * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
1149 1.7 christos * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1150 1.7 christos * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
1151 1.7 christos * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
1152 1.7 christos * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
1153 1.7 christos * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
1154 1.7 christos * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1155 1.7 christos * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1156 1.7 christos * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
1157 1.7 christos * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
1158 1.7 christos * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1159 1.7 christos * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Likewise.
1160 1.7 christos * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
1161 1.7 christos * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
1162 1.7 christos * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
1163 1.7 christos * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1164 1.7 christos * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1165 1.7 christos * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
1166 1.7 christos * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1167 1.7 christos * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
1168 1.7 christos * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
1169 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
1170 1.7 christos * elfnn-ia64.c (elfNN_ia64_size_dynamic_sections): Likewise.
1171 1.7 christos * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
1172 1.7 christos * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1173 1.7 christos * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
1174 1.7 christos
1175 1.7 christos 2015-09-18 Doug Evans <xdje42 (a] gmail.com>
1176 1.7 christos
1177 1.7 christos * targets.c (enum bfd_flavour): Add comment.
1178 1.7 christos (bfd_flavour_name): New function.
1179 1.7 christos * bfd-in2.h: Regenerate.
1180 1.7 christos
1181 1.7 christos 2015-09-18 Alan Modra <amodra (a] gmail.com>
1182 1.7 christos
1183 1.7 christos * elf64-ppc.h (struct ppc64_elf_params <tls_get_addr_opt>): Rename
1184 1.7 christos from no_tls_get_addr_opt.
1185 1.7 christos * elf64-ppc.c: Update for rename and inversion of tls_get_addr_opt.
1186 1.7 christos (ppc64_elf_tls_setup): Set tls_get_addr_opt to 0 only when at
1187 1.7 christos default of -1.
1188 1.7 christos
1189 1.7 christos 2015-09-17 Alan Modra <amodra (a] gmail.com>
1190 1.7 christos
1191 1.7 christos PR 18867
1192 1.7 christos * elflink.c (elf_link_adjust_relocs): Correct start of insertion
1193 1.7 christos sort main loop.
1194 1.7 christos
1195 1.7 christos 2015-09-16 Alan Modra <amodra (a] gmail.com>
1196 1.7 christos
1197 1.7 christos PR 18867
1198 1.7 christos * elflink.c (elf_link_adjust_relocs): Modify insertion sort to
1199 1.7 christos insert a run. Return status in case of malloc failure.
1200 1.7 christos Adjust callers.
1201 1.7 christos
1202 1.7 christos 2015-09-15 Max Filippov <jcmvbkbc (a] gmail.com>
1203 1.7 christos
1204 1.7 christos * elf32-xtensa.c (elf_xtensa_be_plt_entry)
1205 1.7 christos (elf_xtensa_le_plt_entry): Emit 'entry' instruction only for
1206 1.7 christos windowed ABI.
1207 1.7 christos (elf_xtensa_create_plt_entry): Generate 'l32r' offsets and fix
1208 1.7 christos up instructions according to ABI.
1209 1.7 christos
1210 1.7 christos 2015-09-14 Rich Felker <dalias (a] libc.org>
1211 1.7 christos
1212 1.7 christos * elf32-sh.c (sh_elf_relocate_section): Set EF_SH_PIC flag
1213 1.7 christos instead of clearing it on cross-section relocations.
1214 1.7 christos (sh_elf_merge_private_data): Clear EF_SH_PIC flag by default.
1215 1.7 christos
1216 1.7 christos 2015-09-12 Helge Deller <deller (a] gmx.de>
1217 1.7 christos
1218 1.7 christos PR ld/18514
1219 1.7 christos * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Set .plt entry
1220 1.7 christos size to 0.
1221 1.7 christos
1222 1.7 christos 2015-09-09 Jiong Wang <jiong.wang (a] arm.com>
1223 1.7 christos
1224 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Sort alphabetically.
1225 1.7 christos
1226 1.7 christos 2015-09-09 Jiong Wang <jiong.wang (a] arm.com>
1227 1.7 christos
1228 1.7 christos * elfnn-aarch64.c (aarch64_tls_transition_without_check): Support three
1229 1.7 christos TLS local dynamic traditional relocations types.
1230 1.7 christos (elfNN_aarch64_tls_relax): Support TLS local dynamic traditional to
1231 1.7 christos local executable relaxation.
1232 1.7 christos
1233 1.7 christos 2015-09-03 H.J. Lu <hongjiu.lu (a] intel.com>
1234 1.7 christos
1235 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Remove
1236 1.7 christos convert_mov_to_lea.
1237 1.7 christos
1238 1.7 christos 2015-09-02 H.J. Lu <hongjiu.lu (a] intel.com>
1239 1.3 christos
1240 1.7 christos * elf32-i386.c (R_386_irelative): Renamed to ...
1241 1.7 christos (R_386_ext2): This.
1242 1.7 christos (R_386_vt_offset): Updated.
1243 1.7 christos (elf_i386_rtype_to_howto): Likewise.
1244 1.7 christos (elf_i386_relocate_section): Likewise.
1245 1.3 christos
1246 1.7 christos 2015-09-01 H.J. Lu <hongjiu.lu (a] intel.com>
1247 1.3 christos
1248 1.7 christos PR ld/18900
1249 1.7 christos * elf32-i386.c (elf_i386_link_hash_entry): Add
1250 1.7 christos func_pointer_refcount.
1251 1.7 christos (elf_i386_link_hash_newfunc): Clear func_pointer_refcount.
1252 1.7 christos (elf_i386_get_local_sym_hash): Likewise.
1253 1.7 christos (elf_i386_copy_indirect_symbol): Also copy
1254 1.7 christos func_pointer_refcount.
1255 1.7 christos (elf_i386_check_relocs): Increment func_pointer_refcount.
1256 1.7 christos (elf_i386_gc_sweep_hook): Decrement func_pointer_refcount.
1257 1.7 christos (elf_i386_allocate_dynrelocs): Don't create the PLT entry if
1258 1.7 christos there are only function pointer relocations which can be
1259 1.7 christos resolved at run-time. Keep dynanamic relocations for run-time
1260 1.7 christos function pointer initialization.
1261 1.7 christos (elf_i386_relocate_section): Copy dynamic function pointer
1262 1.7 christos relocations.
1263 1.7 christos * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
1264 1.7 christos func_pointer_refcount.
1265 1.7 christos (elf_x86_64_link_hash_newfunc): Clear func_pointer_refcount.
1266 1.7 christos (elf_x86_64_get_local_sym_hash): Likewise.
1267 1.7 christos (elf_x86_64_copy_indirect_symbol): Also copy
1268 1.7 christos func_pointer_refcount.
1269 1.7 christos (elf_x86_64_check_relocs): Increment func_pointer_refcount.
1270 1.7 christos (elf_x86_64_gc_sweep_hook): Decrement func_pointer_refcount.
1271 1.7 christos (elf_x86_64_allocate_dynrelocs): Don't create the PLT entry if
1272 1.7 christos there are only function pointer relocations which can be
1273 1.7 christos resolved at run-time. Keep dynanamic relocations for run-time
1274 1.7 christos function pointer initialization.
1275 1.7 christos (elf_x86_64_relocate_section): Copy dynamic function pointer
1276 1.7 christos relocations.
1277 1.3 christos
1278 1.7 christos 2015-09-01 Alan Modra <amodra (a] gmail.com>
1279 1.3 christos
1280 1.7 christos * elf64-ppc.c (ppc64_elf_maybe_function_sym): Adjust symbol value
1281 1.7 christos if .opd section has been edited.
1282 1.3 christos
1283 1.7 christos 2015-09-01 Alan Modra <amodra (a] gmail.com>
1284 1.3 christos
1285 1.7 christos PR 18878
1286 1.7 christos * elf64-ppc.c (ARRAY_SIZE): Define. Use throughout.
1287 1.7 christos (enum ppc_stub_type): Add ppc_stub_save_res.
1288 1.7 christos (struct map_stub): Add "next" and "needs_save_res".
1289 1.7 christos (struct ppc_link_hash_entry): Add "save_res" flag.
1290 1.7 christos (struct ppc_link_hash_table): Add "group".
1291 1.7 christos (sfpr_define): Add stub_sec param. Define symbol in stub_sec if
1292 1.7 christos stub_sec is non-null. Set "save_res".
1293 1.7 christos (save_res_funcs): Make file scope, rename from funcs. Adjust uses.
1294 1.7 christos (ppc64_elf_adjust_dynamic_symbol): Prohibit plt call to save_res syms.
1295 1.7 christos (ppc_build_one_stub): Handle ppc_stub_save_res.
1296 1.7 christos (ppc_size_one_stub): Set stub type to ppc_size_one_stub on finding
1297 1.7 christos stub for linker defined save_res sym.
1298 1.7 christos (group_sections): Init new fields of struct map_stub.
1299 1.7 christos (ppc64_elf_size_stubs): Reserve space for save/restore func copy.
1300 1.7 christos (ppc64_elf_build_stubs): Copy save/restore funcs to groups. Emit
1301 1.7 christos alias syms too.
1302 1.7 christos (ppc64_elf_relocate_section): Set destination for ppc_stub_save_res.
1303 1.7 christos
1304 1.7 christos 2015-08-31 Alan Modra <amodra (a] gmail.com>
1305 1.7 christos
1306 1.7 christos * elf64-ppc.c (get_r2off): Return -1 on error.
1307 1.7 christos (ppc_build_one_stub): Adjust for get_r2off change. Don't emit
1308 1.7 christos addi r2,r2,0 on r2off stubs when the low 16-bit delta is zero.
1309 1.7 christos (ppc_size_one_stub): Corresponding size changes for r2off stubs.
1310 1.7 christos Add condition in test for -R objects.
1311 1.7 christos
1312 1.7 christos 2015-08-31 Alan Modra <amodra (a] gmail.com>
1313 1.7 christos
1314 1.7 christos * section.c (section_id): Make file scope.
1315 1.7 christos (bfd_get_next_section_id): New function.
1316 1.7 christos * elf64-ppc.c (struct map_stub): Remove toc_off field. Move decl.
1317 1.7 christos (struct ppc_stub_hash_entry): Delete stub_sec and id_sec. Add
1318 1.7 christos group. Update all uses.
1319 1.7 christos (struct ppc_link_hash_table): Delete top_id, top_index, and
1320 1.7 christos input_list. Add sec_info_arr_size. Rename stub_group to
1321 1.7 christos sec_info, and make group info indirect. Update stub_group refs
1322 1.7 christos throughout file.
1323 1.7 christos (ppc_add_stub): Don't look for stub_sec on link_sec stub_group
1324 1.7 christos entry.
1325 1.7 christos (ppc_build_one_stub): Delete FIXME.
1326 1.7 christos (ppc64_elf_setup_section_lists): Size htab->sec_info for all
1327 1.7 christos sections, not just input sections. Don't create htab->input_list.
1328 1.7 christos (ppc64_elf_next_input_section): Update to use sec_info union as
1329 1.7 christos list pointer.
1330 1.7 christos (PREV_SEC): Delete.
1331 1.7 christos (group_sections): Pass "info" param rather than "htab". Iterate
1332 1.7 christos over output sections rather than input_list. Use sec_info union
1333 1.7 christos as list pointers. Alloc atruct map_stub, and return fail status.
1334 1.7 christos * bfd-in2.h: Regenerate.
1335 1.3 christos
1336 1.7 christos 2015-08-31 Alan Modra <amodra (a] gmail.com>
1337 1.3 christos
1338 1.7 christos * elflink.c (elf_sort_symbol): Use correctly sized type for
1339 1.7 christos calculating signed section->id difference.
1340 1.7 christos (elf_link_add_object_symbols): Likewise.
1341 1.7 christos * pef.c (bfd_pef_scan_start_address): Warning fix.
1342 1.7 christos * vms-alpha.c (vms_new_section_hook): Likewise.
1343 1.7 christos
1344 1.7 christos 2015-08-31 Alan Modra <amodra (a] gmail.com>
1345 1.7 christos
1346 1.7 christos * elf32-nds32.c (nds32_convert_32_to_16_alu1): Warning fix.
1347 1.7 christos (find_relocs_at_address_addr): Make "reloc_type" an enum.
1348 1.7 christos (nds32_elf_relax_delete_blanks): Warning fix.
1349 1.7 christos (nds32_elf_relax_loadstore): Correct loop bound.
1350 1.7 christos
1351 1.7 christos 2015-08-31 Alan Modra <amodra (a] gmail.com>
1352 1.7 christos
1353 1.7 christos * section.c (struct bfd_section): Make "id" and "index" unsigned.
1354 1.7 christos * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Adjust local var to suit.
1355 1.7 christos * elf.c (elf_map_symbols): Likewise.
1356 1.7 christos * elf64-ppc.c (sym_exists_at): Make "id" param unsigned.
1357 1.7 christos (struct ppc_link_hash_table): Make "top_id" and "top_index" unsigned.
1358 1.7 christos (ppc64_elf_setup_section_lists): Ditto for local vars.
1359 1.7 christos * elf32-arm.c: Similarly to elf64-ppc.c.
1360 1.7 christos * elf32-avr.c: Likewise.
1361 1.7 christos * elf32-hppa.c: Likewise.
1362 1.5 christos * elf32-m68hc1x.c: Likewise.
1363 1.7 christos * elf32-metag.c: Likewise.
1364 1.7 christos * elf32-nios2.c: Likewise.
1365 1.7 christos * elfnn-aarch64.c: Likewise.
1366 1.7 christos * simple.c (struct saved_offsets): Make "section_count" unsigned.
1367 1.7 christos * bfd-in2.h: Regenerate.
1368 1.7 christos
1369 1.7 christos 2015-08-27 Alan Modra <amodra (a] gmail.com>
1370 1.7 christos
1371 1.7 christos PR 18867
1372 1.7 christos * elf64-alpha.c (elf64_alpha_sort_relocs_p): New function.
1373 1.7 christos (elf_backend_sort_relocs_p): Define.
1374 1.7 christos
1375 1.7 christos 2015-08-26 Alan Modra <amodra (a] gmail.com>
1376 1.7 christos
1377 1.7 christos PR 18867
1378 1.7 christos * elflink.c (cmp_ext32l_r_offset, cmp_ext32b_r_offset): Delete.
1379 1.7 christos (cmp_ext64l_r_offset, cmp_ext64b_r_offset): Delete.
1380 1.7 christos (ext32l_r_offset, ext32b_r_offset, ext64l_r_offset, ext64b_r_offset):
1381 1.7 christos New functions.
1382 1.7 christos (elf_link_adjust_relocs): Use an insertion sort to sort relocs.
1383 1.7 christos
1384 1.7 christos 2015-08-26 Matthew Fortune <matthew.fortune (a] imgtec.com>
1385 1.7 christos
1386 1.7 christos PR ld/18401
1387 1.7 christos * elfxx-mips.c (bfd_mips_isa_ext_mach): New function: Converts an
1388 1.7 christos ISA value to a bfd machine number.
1389 1.7 christos (bfd_mips_isa_ext): Update the ISA level and revision if
1390 1.7 christos necessary. Use mips_mach_extends_p to decide if the ISA extension
1391 1.7 christos needs to be set.
1392 1.7 christos (_bfd_mips_elf_merge_private_bfd_data): Allow the ISA extension to
1393 1.7 christos be inferred from the ABI setting. Set the ISA level from the
1394 1.7 christos maximum of the incoming and outgoing ISA levels.
1395 1.7 christos
1396 1.7 christos 2015-08-25 Nick Clifton <nickc (a] redhat.com>
1397 1.7 christos
1398 1.7 christos PR binutils/18854
1399 1.7 christos * elf.c (bfd_section_from_shdr): Replace assertions with warnings
1400 1.7 christos about multiple symbol tables.
1401 1.7 christos
1402 1.7 christos 2015-08-25 Renlin Li <renlin.li (a] arm.com>
1403 1.7 christos
1404 1.7 christos * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): Use LP64 instead of
1405 1.7 christos ILP64.
1406 1.7 christos * bfd-in2.h: Regenerate.
1407 1.7 christos
1408 1.7 christos 2015-08-22 Alan Modra <amodra (a] gmail.com>
1409 1.7 christos
1410 1.7 christos * elf.c (_bfd_elf_slurp_version_tables): Always init vd_nodename.
1411 1.7 christos Don't copy fields not set by _bfd_elf_swap_verdef_in.
1412 1.7 christos
1413 1.7 christos 2015-08-19 Jiong Wang <jiong.wang (a] arm.com>
1414 1.7 christos
1415 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize new relocation
1416 1.7 christos types, including BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
1417 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
1418 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
1419 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
1420 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
1421 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC,
1422 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
1423 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC.
1424 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
1425 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1426 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
1427 1.7 christos
1428 1.7 christos 2015-08-19 Jiong Wang <jiong.wang (a] arm.com>
1429 1.7 christos
1430 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12,
1431 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC,
1432 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12,
1433 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC,
1434 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12,
1435 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC.
1436 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12,
1437 1.7 christos BFD_RELOC_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): New entries.
1438 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
1439 1.7 christos * bfd-in2.h: Regenerate.
1440 1.7 christos * libbfd.h: Regenerate.
1441 1.7 christos
1442 1.7 christos 2015-08-19 Jiong Wang <jiong.wang (a] arm.com>
1443 1.7 christos
1444 1.7 christos PR ld/18276
1445 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize new relocation
1446 1.7 christos types, including BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12,
1447 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0,
1448 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC,
1449 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1,
1450 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC,
1451 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2.
1452 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
1453 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1454 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
1455 1.7 christos
1456 1.7 christos 2015-08-19 Jiong Wang <jiong.wang (a] arm.com>
1457 1.7 christos
1458 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_HI12,
1459 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0,
1460 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G0_NC,
1461 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1,
1462 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G1_NC,
1463 1.7 christos BFD_RELOC_AARCH64_TLSLD_MOVW_DTPREL_G2): New entries.
1464 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
1465 1.7 christos * bfd-in2.h: Regenerate.
1466 1.7 christos * libbfd.h: Regenerate.
1467 1.7 christos
1468 1.7 christos 2015-08-19 Jiong Wang <jiong.wang (a] arm.com>
1469 1.7 christos
1470 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
1471 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC.
1472 1.7 christos (aarch64_reloc_got_type): Likewise.
1473 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
1474 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
1475 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1476 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
1477 1.5 christos
1478 1.7 christos 2015-08-19 Jiong Wang <jiong.wang (a] arm.com>
1479 1.5 christos
1480 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): New entry.
1481 1.7 christos * bfd-in2.h: Regenerate.
1482 1.7 christos * libbfd.h: Regenerate.
1483 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
1484 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12_NC.
1485 1.5 christos
1486 1.7 christos 2015-08-19 Alan Modra <amodra (a] gmail.com>
1487 1.5 christos
1488 1.7 christos * elf-s390-common.c: Simplify expressions using
1489 1.7 christos bfd_linke_executable, bfd_link_pie and bfd_link_pic.
1490 1.7 christos * elf32-arm.c: Likewise.
1491 1.5 christos * elf32-bfin.c: Likewise.
1492 1.5 christos * elf32-frv.c: Likewise.
1493 1.5 christos * elf32-m68k.c: Likewise.
1494 1.7 christos * elf32-nios2.c: Likewise.
1495 1.5 christos * elf32-ppc.c: Likewise.
1496 1.5 christos * elf32-s390.c: Likewise.
1497 1.5 christos * elf32-sh.c: Likewise.
1498 1.5 christos * elf64-alpha.c: Likewise.
1499 1.5 christos * elf64-ppc.c: Likewise.
1500 1.5 christos * elf64-s390.c: Likewise.
1501 1.5 christos * elflink.c: Likewise.
1502 1.3 christos
1503 1.7 christos 2015-08-18 Jiong Wang <jiong.wang (a] arm.com>
1504 1.3 christos
1505 1.7 christos * elfnn-aarch64.c (aarch64_reloc_got_type): Delete useless check.
1506 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
1507 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
1508 1.7 christos (elfNN_aarch64_check_relocs): Likewise.
1509 1.7 christos
1510 1.7 christos 2015-08-18 H.J. Lu <hongjiu.lu (a] intel.com>
1511 1.7 christos
1512 1.7 christos PR ld/18841
1513 1.7 christos * elf-bfd.h (elf_link_hash_table): Add dynsym.
1514 1.7 christos * elf32-i386.c (elf_i386_reloc_type_class): Return
1515 1.7 christos reloc_class_ifunc for relocation against STT_GNU_IFUNC symbol.
1516 1.7 christos * elf64-x86-64.c (elf_x86_64_reloc_type_class): Likewise.
1517 1.7 christos * elflink.c (_bfd_elf_link_create_dynamic_sections): Set dynsym.
1518 1.7 christos (bfd_elf_size_dynsym_hash_dynstr): Use dynsym.
1519 1.7 christos (elf_final_link_info): Remove dynsym_sec.
1520 1.7 christos (elf_link_output_extsym): Replace dynsym_sec with dynsym.
1521 1.7 christos (bfd_elf_final_link): Remove reference to dynsym_sec. Replace
1522 1.7 christos dynsym_sec with dynsym.
1523 1.7 christos
1524 1.7 christos 2015-08-18 H.J. Lu <hongjiu.lu (a] intel.com>
1525 1.7 christos
1526 1.8 christos * aoutx.h: Replace shared, executable, relocatable and pie
1527 1.7 christos fields with bfd_link_executable, bfd_link_dll,
1528 1.7 christos bfd_link_relocatable, bfd_link_pic and bfd_link_pie.
1529 1.8 christos * bout.c: Likewise.
1530 1.8 christos * coff-alpha.c: Likewise.
1531 1.8 christos * coff-arm.c: Likewise.
1532 1.8 christos * coff-i386.c: Likewise.
1533 1.8 christos * coff-i960.c: Likewise.
1534 1.8 christos * coff-m68k.c: Likewise.
1535 1.8 christos * coff-mcore.c: Likewise.
1536 1.8 christos * coff-mips.c: Likewise.
1537 1.8 christos * coff-ppc.c: Likewise.
1538 1.8 christos * coff-rs6000.c: Likewise.
1539 1.8 christos * coff-sh.c: Likewise.
1540 1.8 christos * coff-tic80.c: Likewise.
1541 1.8 christos * coff-x86_64.c: Likewise.
1542 1.8 christos * coff64-rs6000.c: Likewise.
1543 1.8 christos * coffgen.c: Likewise.
1544 1.8 christos * cofflink.c: Likewise.
1545 1.8 christos * ecoff.c: Likewise.
1546 1.8 christos * ecofflink.c: Likewise.
1547 1.8 christos * elf-bfd.h: Likewise.
1548 1.8 christos * elf-eh-frame.c: Likewise.
1549 1.8 christos * elf-ifunc.c: Likewise.
1550 1.8 christos * elf-m10200.c: Likewise.
1551 1.8 christos * elf-m10300.c: Likewise.
1552 1.8 christos * elf-s390-common.c: Likewise.
1553 1.8 christos * elf-vxworks.c: Likewise.
1554 1.8 christos * elf.c: Likewise.
1555 1.8 christos * elf32-arm.c: Likewise.
1556 1.8 christos * elf32-avr.c: Likewise.
1557 1.8 christos * elf32-bfin.c: Likewise.
1558 1.8 christos * elf32-cr16.c: Likewise.
1559 1.8 christos * elf32-cr16c.c: Likewise.
1560 1.8 christos * elf32-cris.c: Likewise.
1561 1.8 christos * elf32-crx.c: Likewise.
1562 1.8 christos * elf32-d10v.c: Likewise.
1563 1.8 christos * elf32-dlx.c: Likewise.
1564 1.8 christos * elf32-epiphany.c: Likewise.
1565 1.8 christos * elf32-fr30.c: Likewise.
1566 1.8 christos * elf32-frv.c: Likewise.
1567 1.8 christos * elf32-ft32.c: Likewise.
1568 1.8 christos * elf32-h8300.c: Likewise.
1569 1.8 christos * elf32-hppa.c: Likewise.
1570 1.8 christos * elf32-i370.c: Likewise.
1571 1.8 christos * elf32-i386.c: Likewise.
1572 1.8 christos * elf32-i860.c: Likewise.
1573 1.8 christos * elf32-ip2k.c: Likewise.
1574 1.8 christos * elf32-iq2000.c: Likewise.
1575 1.8 christos * elf32-lm32.c: Likewise.
1576 1.8 christos * elf32-m32c.c: Likewise.
1577 1.8 christos * elf32-m32r.c: Likewise.
1578 1.8 christos * elf32-m68hc11.c: Likewise.
1579 1.8 christos * elf32-m68hc1x.c: Likewise.
1580 1.8 christos * elf32-m68k.c: Likewise.
1581 1.8 christos * elf32-mcore.c: Likewise.
1582 1.8 christos * elf32-mep.c: Likewise.
1583 1.8 christos * elf32-metag.c: Likewise.
1584 1.8 christos * elf32-microblaze.c: Likewise.
1585 1.8 christos * elf32-moxie.c: Likewise.
1586 1.8 christos * elf32-msp430.c: Likewise.
1587 1.8 christos * elf32-mt.c: Likewise.
1588 1.8 christos * elf32-nds32.c: Likewise.
1589 1.8 christos * elf32-nios2.c: Likewise.
1590 1.8 christos * elf32-or1k.c: Likewise.
1591 1.8 christos * elf32-ppc.c: Likewise.
1592 1.8 christos * elf32-rl78.c: Likewise.
1593 1.8 christos * elf32-rx.c: Likewise.
1594 1.8 christos * elf32-s390.c: Likewise.
1595 1.8 christos * elf32-score.c: Likewise.
1596 1.8 christos * elf32-score7.c: Likewise.
1597 1.8 christos * elf32-sh-symbian.c: Likewise.
1598 1.8 christos * elf32-sh.c: Likewise.
1599 1.8 christos * elf32-sh64.c: Likewise.
1600 1.8 christos * elf32-spu.c: Likewise.
1601 1.8 christos * elf32-tic6x.c: Likewise.
1602 1.8 christos * elf32-tilepro.c: Likewise.
1603 1.8 christos * elf32-v850.c: Likewise.
1604 1.8 christos * elf32-vax.c: Likewise.
1605 1.8 christos * elf32-visium.c: Likewise.
1606 1.8 christos * elf32-xc16x.c: Likewise.
1607 1.8 christos * elf32-xstormy16.c: Likewise.
1608 1.8 christos * elf32-xtensa.c: Likewise.
1609 1.8 christos * elf64-alpha.c: Likewise.
1610 1.8 christos * elf64-hppa.c: Likewise.
1611 1.8 christos * elf64-ia64-vms.c: Likewise.
1612 1.8 christos * elf64-mmix.c: Likewise.
1613 1.8 christos * elf64-ppc.c: Likewise.
1614 1.8 christos * elf64-s390.c: Likewise.
1615 1.8 christos * elf64-sh64.c: Likewise.
1616 1.8 christos * elf64-x86-64.c: Likewise.
1617 1.8 christos * elflink.c: Likewise.
1618 1.8 christos * elfnn-aarch64.c: Likewise.
1619 1.8 christos * elfnn-ia64.c: Likewise.
1620 1.8 christos * elfxx-mips.c: Likewise.
1621 1.8 christos * elfxx-sparc.c: Likewise.
1622 1.8 christos * elfxx-tilegx.c: Likewise.
1623 1.8 christos * i386linux.c: Likewise.
1624 1.8 christos * linker.c: Likewise.
1625 1.8 christos * m68klinux.c: Likewise.
1626 1.8 christos * pdp11.c: Likewise.
1627 1.8 christos * pe-mips.c: Likewise.
1628 1.8 christos * peXXigen.c: Likewise.
1629 1.8 christos * reloc.c: Likewise.
1630 1.8 christos * reloc16.c: Likewise.
1631 1.8 christos * sparclinux.c: Likewise.
1632 1.8 christos * sunos.c: Likewise.
1633 1.8 christos * vms-alpha.c: Likewise.
1634 1.8 christos * xcofflink.c: Likewise.
1635 1.3 christos
1636 1.7 christos 2015-08-18 Alan Modra <amodra (a] gmail.com>
1637 1.3 christos
1638 1.7 christos PR 18667
1639 1.7 christos * Makefile.am: Use $(SED) in place of sed throughout.
1640 1.7 christos * Makefile.in: Regenerate.
1641 1.3 christos
1642 1.7 christos 2015-08-18 Alan Modra <amodra (a] gmail.com>
1643 1.3 christos
1644 1.7 christos * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't redefine .TOC.
1645 1.7 christos if already defined, and set linker_def.
1646 1.7 christos (ppc64_elf_set_toc): Use .TOC. value if defined other than by
1647 1.7 christos the backend.
1648 1.3 christos
1649 1.7 christos 2015-08-14 Alan Modra <amodra (a] gmail.com>
1650 1.3 christos
1651 1.7 christos PR ld/18759
1652 1.7 christos * elf32-or1k.c: Revert 2015-08-11 change.
1653 1.3 christos
1654 1.7 christos 2015-08-13 H.J. Lu <hongjiu.lu (a] intel.com>
1655 1.3 christos
1656 1.7 christos PR ld/18801
1657 1.7 christos * elf32-i386.c (elf_i386_size_dynamic_sections): Issue an error
1658 1.7 christos for read-only segment with dynamic IFUNC relocations.
1659 1.7 christos * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
1660 1.3 christos
1661 1.7 christos 2015-08-12 Simon Dardis <simon.dardis (a] imgtec.com>
1662 1.3 christos
1663 1.7 christos * elfxx-mips.c (STUB_MOVE): Change to use 'or' only.
1664 1.7 christos (mips_o32_exec_plt0_entry, mips_n32_exec_plt0_entry,
1665 1.7 christos mips_n64_exec_plt0_entry, micromips_insn32_o32_exec_plt0_entry):
1666 1.7 christos Update to use 'or' instead of 'addu/daddu'.
1667 1.7 christos (_bfd_mips_elf_finish_dynamic_symbol): Update usage of STUB_MOVE.
1668 1.7 christos (move_insns_32): Reorder table.
1669 1.3 christos
1670 1.7 christos 2015-08-11 H.J. Lu <hongjiu.lu (a] intel.com>
1671 1.3 christos
1672 1.7 christos * elf32-i386.c (elf_i386_relocate_section): Properly skip IFUNC
1673 1.7 christos relocations in debug sections.
1674 1.7 christos * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1675 1.3 christos
1676 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1677 1.3 christos
1678 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Improve warning
1679 1.7 christos message for R_AARCH64_LD64_GOTPAGE_LO15/R_AARCH64_LD32_GOTPAGE_LO14.
1680 1.3 christos
1681 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1682 1.3 christos
1683 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): New.
1684 1.7 christos (aarch64_can_relax_tls): Use the new IS_AARCH64_TLS_RELAX_RELOC.
1685 1.3 christos
1686 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1687 1.3 christos
1688 1.8 christos * elfnn-aarch64.c (aarch64_type_of_stub): New parameter "sym_sec".
1689 1.7 christos Loose the check for symbol from ABS section.
1690 1.7 christos (elfNN_aarch64_size_stubs): Pass sym_sec.
1691 1.3 christos
1692 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1693 1.3 christos
1694 1.7 christos PR ld/18668
1695 1.7 christos * elfnn-aarch64.c (aarch64_type_of_stub): Update destination for
1696 1.7 christos calls go through plt stub.
1697 1.7 christos (elfNN_aarch64_final_link_relocate): Adjust code logic for CALL26,
1698 1.7 christos JUMP26 relocation to support inserting veneer for call to plt stub.
1699 1.3 christos
1700 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1701 1.3 christos
1702 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
1703 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12.
1704 1.7 christos (aarch64_reloc_got_type): Likewise.
1705 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
1706 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
1707 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1708 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
1709 1.3 christos
1710 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1711 1.3 christos
1712 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12): New entry.
1713 1.7 christos * bfd-in2.h: Regenerate.
1714 1.7 christos * libbfd.h: Regenerate.
1715 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
1716 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADD_DTPREL_LO12.
1717 1.3 christos
1718 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1719 1.1 skrll
1720 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
1721 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC.
1722 1.7 christos (aarch64_reloc_got_type): Likewise.
1723 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
1724 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
1725 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
1726 1.7 christos (elfNN_aarch64_check_relocs): Likewise.
1727 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1728 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
1729 1.1 skrll
1730 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1731 1.1 skrll
1732 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC): New entry.
1733 1.7 christos * bfd-in2.h: Regenerate.
1734 1.7 christos * libbfd.h: Regenerate.
1735 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
1736 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADD_LO12_NC.
1737 1.1 skrll
1738 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1739 1.1 skrll
1740 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
1741 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21.
1742 1.7 christos (aarch64_reloc_got_type): Likewise.
1743 1.7 christos (elfNN_aarch64_final_link_relocate): Likewise.
1744 1.7 christos (elfNN_aarch64_relocate_section): Likewise.
1745 1.7 christos (elfNN_aarch64_gc_sweep_hook): Likewise.
1746 1.7 christos (elfNN_aarch64_check_relocs): Likewise.
1747 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
1748 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
1749 1.1 skrll
1750 1.7 christos 2015-08-11 Jiong Wang <jiong.wang (a] arm.com>
1751 1.1 skrll
1752 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21): New entry.
1753 1.5 christos * bfd-in2.h: Regenerate.
1754 1.7 christos * libbfd.h: Regenerate.
1755 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
1756 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADR_PAGE21.
1757 1.5 christos
1758 1.7 christos 2015-08-11 H.J. Lu <hongjiu.lu (a] intel.com>
1759 1.5 christos
1760 1.7 christos PR ld/18808
1761 1.7 christos * elf32-i386.c (elf_i386_relocate_section): Skip IFUNC
1762 1.7 christos relocations in debug sections.
1763 1.7 christos * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1764 1.1 skrll
1765 1.7 christos 2015-08-11 Peter Zotov <whitequark (a] whitequark.org>
1766 1.1 skrll
1767 1.7 christos PR ld/18759
1768 1.7 christos * elf32-or1k.c (R_OR1K_32_PCREL): Set pcrel_offset to TRUE.
1769 1.7 christos (R_OR1K_16_PCREL): Likewise.
1770 1.7 christos (R_OR1K_8_PCREL): Likewise.
1771 1.7 christos
1772 1.7 christos 2015-08-11 Nick Clifton <nickc (a] redhat.com>
1773 1.7 christos
1774 1.7 christos PR binutils/18747
1775 1.7 christos * coff-sh.c (_bfd_sh_align_load_span): Fix typo when setting
1776 1.7 christos opcode count.
1777 1.7 christos
1778 1.7 christos PR binutils/18758
1779 1.7 christos * elf.c (_bfd_elf_setup_sections): Add checks for corrupt section
1780 1.7 christos group information.
1781 1.7 christos * peicode.h (pe_ILF_make_a_section): Ensure alignment of the
1782 1.7 christos used_by_bfd pointer.
1783 1.7 christos (pe_ILF_build_a_bfd): Ensure alignment of vars.data pointer.
1784 1.7 christos
1785 1.7 christos 2015-08-11 H.J. Lu <hongjiu.lu (a] intel.com>
1786 1.7 christos
1787 1.7 christos * elf.c (_bfd_elf_copy_private_bfd_data): Fix a typo.
1788 1.7 christos
1789 1.7 christos 2015-08-10 H.J. Lu <hongjiu.lu (a] intel.com>
1790 1.7 christos
1791 1.7 christos * elf-bfd.h (elf_symbol_version): New enum.
1792 1.7 christos (elf_link_hash_entry): Replace hidden with versioned.
1793 1.7 christos * elflink.c (_bfd_elf_merge_symbol): Don't look for symbol
1794 1.7 christos version if the symbol is unversioned. Initialize versioned.
1795 1.7 christos (_bfd_elf_add_default_symbol): Don't look for symbol version
1796 1.7 christos if the symbol is unversioned or hidden. Initialize versioned.
1797 1.7 christos (elf_collect_hash_codes): Don't look for symbol version if the
1798 1.7 christos symbol is unversioned.
1799 1.7 christos (elf_collect_gnu_hash_codes): Likewise.
1800 1.7 christos (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
1801 1.7 christos (_bfd_elf_link_hash_copy_indirect): Check versioned instead of
1802 1.7 christos hidden.
1803 1.7 christos (elf_link_output_extsym): Likewise.
1804 1.7 christos
1805 1.7 christos 2015-08-07 H.J. Lu <hongjiu.lu (a] intel.com>
1806 1.7 christos
1807 1.7 christos PR binutils/18785
1808 1.7 christos * elf.c (_bfd_elf_copy_private_bfd_data): When copying the
1809 1.7 christos sh_link and sh_info fields in stripped section headers, we also
1810 1.7 christos check if the sh_type, sh_flags, sh_addralign and sh_entsize
1811 1.7 christos fields of the output section match the output. Since
1812 1.7 christos --only-keep-debug turns all non-debug sections into SHT_NOBITS
1813 1.7 christos sections, the output SHT_NOBITS type matches any input type.
1814 1.7 christos
1815 1.7 christos 2015-08-07 H.J. Lu <hongjiu.lu (a] intel.com>
1816 1.7 christos
1817 1.7 christos PR ld/18720
1818 1.7 christos * elflink.c (_bfd_elf_merge_symbol): Add a parameter to indicate
1819 1.7 christos if the new symbol matches the existing one. The new hidden
1820 1.7 christos versioned symbol matches the existing symbol if they have the
1821 1.7 christos same symbol version. Update the existing symbol only if they
1822 1.7 christos match.
1823 1.7 christos (_bfd_elf_add_default_symbol): Update call to
1824 1.7 christos _bfd_elf_merge_symbol.
1825 1.7 christos (_bfd_elf_link_assign_sym_version): Don't set the hidden field
1826 1.7 christos here.
1827 1.7 christos (elf_link_add_object_symbols): Override a definition only if the
1828 1.7 christos new symbol matches the existing one.
1829 1.7 christos (_bfd_elf_link_hash_copy_indirect): Don't copy any references to
1830 1.7 christos the hidden versioned symbol.
1831 1.7 christos (elf_link_output_extsym): Bind a symbol locally when linking
1832 1.7 christos executable if it is locally defined, hidden versioned, not
1833 1.7 christos referenced by shared library and not exported. Turn on
1834 1.7 christos VERSYM_HIDDEN only if the hidden versioned symbol is defined
1835 1.7 christos locally.
1836 1.7 christos
1837 1.7 christos 2015-08-05 Nick Clifton <nickc (a] redhat.com>
1838 1.7 christos
1839 1.7 christos * elf.c (_bfd_elf_copy_private_bfd_data): Copy the sh_link and
1840 1.7 christos sh_info fields of sections whose type has been changed to
1841 1.7 christos SHT_NOBITS.
1842 1.7 christos
1843 1.7 christos 2015-08-04 Yuriy M. Kaminskiy" <yumkam (a] gmail.com>
1844 1.7 christos Tyler Hicks <tyhicks (a] canonical.com>
1845 1.7 christos
1846 1.7 christos PR binutils/18750
1847 1.7 christos * ihex.c (ihex_scan): Fixes incorrect escape sequence in error message
1848 1.7 christos and stack overflow when char is signed and \200-\376 was in place of hex
1849 1.7 christos digit; also fixes \377 was handled as EOF instead of "incorrect character".
1850 1.7 christos (ihex_read_section): Changed for consistency.
1851 1.7 christos (ihex_bad_byte): Prevent (now impossible to trigger) stack
1852 1.7 christos overflow and incorrect escape sequence handling.
1853 1.7 christos * srec.c (srec_bad_byte): Likewise.
1854 1.7 christos
1855 1.7 christos 2015-08-03 Hans-Peter Nilsson <hp (a] axis.com>
1856 1.7 christos
1857 1.7 christos * elf32-cris.c (cris_elf_relocate_section)
1858 1.7 christos (elf_cris_finish_dynamic_symbol, cris_elf_check_relocs)
1859 1.7 christos (elf_cris_discard_excess_dso_dynamics): Use SYMBOLIC_BIND, not
1860 1.7 christos just link_info->symbolic, to check if a symbol should be bound
1861 1.7 christos symbolically.
1862 1.7 christos
1863 1.7 christos 2015-07-30 H.J. Lu <hongjiu.lu (a] intel.com>
1864 1.7 christos
1865 1.7 christos PR ld/18735
1866 1.7 christos * elflink.c (_bfd_elf_add_default_symbol): Add the default
1867 1.7 christos symbol if not performing a relocatable link.
1868 1.7 christos (elf_link_add_object_symbols): Adjust the default symbol if
1869 1.7 christos not performing a relocatable link.
1870 1.7 christos
1871 1.7 christos 2015-07-29 H.J. Lu <hongjiu.lu (a] intel.com>
1872 1.7 christos
1873 1.7 christos * elflink.c (elf_link_add_object_symbols): Remove
1874 1.7 christos !info->relocatable check for info->executable. Add
1875 1.7 christos !info->relocatable check for !info->executable.
1876 1.7 christos (elf_link_output_extsym): Remove
1877 1.7 christos !info->relocatable check for info->executable.
1878 1.7 christos
1879 1.7 christos 2015-07-29 Hans-Peter Nilsson <hp (a] bitrange.com>
1880 1.7 christos
1881 1.7 christos * mmo.c (mmo_write_symbols_and_terminator): Skip symbol-type
1882 1.7 christos assignment loop for bfd plugin objects.
1883 1.7 christos
1884 1.7 christos 2015-07-28 Alan Modra <amodra (a] gmail.com>
1885 1.7 christos
1886 1.7 christos * elf.c (_bfd_elf_map_sections_to_segments): Do not make a new
1887 1.7 christos segment for loaded sections after nonloaded sections if the
1888 1.7 christos sections are on the same page.
1889 1.7 christos
1890 1.7 christos 2015-07-28 Iain Buclaw <ibuclaw (a] gdcproject.org>
1891 1.7 christos
1892 1.7 christos * configure.in: Add asprintf and vasprintf to AC_CHECK_DECLS.
1893 1.7 christos * config.in, configure: Regenerate.
1894 1.7 christos
1895 1.7 christos 2015-07-27 H.J. Lu <hongjiu.lu (a] intel.com>
1896 1.7 christos
1897 1.7 christos * configure: Regenerated.
1898 1.5 christos
1899 1.7 christos 2015-07-27 Nick Clifton <nickc (a] redhat.com>
1900 1.5 christos
1901 1.7 christos * elf32-msp430.c (uses_large_model): New function.
1902 1.7 christos (msp430_elf_eh_frame_address_size): New function.
1903 1.7 christos (elf_backend_eh_frame_address_size): Define.
1904 1.5 christos
1905 1.7 christos 2015-07-27 Szabolcs Nagy <szabolcs.nagy (a] arm.com>
1906 1.5 christos
1907 1.7 christos PR ld/18705
1908 1.7 christos * elfnn-aarch64.c (elf_backend_extern_protected_data): Define.
1909 1.5 christos
1910 1.7 christos 2015-07-27 Szabolcs Nagy <szabolcs.nagy (a] arm.com>
1911 1.5 christos
1912 1.7 christos PR ld/18705
1913 1.7 christos * elf32-arm.c (elf_backend_extern_protected_data): Define.
1914 1.1 skrll
1915 1.7 christos 2015-07-25 H.J. Lu <hongjiu.lu (a] intel.com>
1916 1.1 skrll
1917 1.7 christos PR ld/18718
1918 1.7 christos * elflink.c (elf_link_output_extsym): Check symbol version
1919 1.7 christos section check only if not linking executable, the symbol is
1920 1.7 christos referenced by shared library or not locally defined.
1921 1.5 christos
1922 1.7 christos 2015-07-25 Thomas Preud'homme <thomas.preudhomme (a] arm.com>
1923 1.5 christos
1924 1.7 christos * elf32-arm.c (elf32_arm_final_link_relocate): Use SYMBOLIC_BIND to
1925 1.7 christos check if a symbol should be bound symbolically.
1926 1.7 christos * elf32-hppa.c (elf32_hppa_check_relocs,
1927 1.7 christos elf32_hppa_adjust_dynamic_symbol, elf32_hppa_relocate_section,
1928 1.7 christos elf32_hppa_finish_dynamic_symbol): Likewise.
1929 1.7 christos * elf32-m68k.c (elf_m68k_check_relocs,
1930 1.7 christos elf_m68k_relocate_section): Likewise.
1931 1.7 christos * elf32-nios2.c (nios2_elf32_relocate_section,
1932 1.7 christos nios2_elf32_check_relocs, allocate_dynrelocs): Likewise.
1933 1.7 christos * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol,
1934 1.7 christos elf32_tic6x_relocate_section): Likewise.
1935 1.5 christos
1936 1.7 christos 2015-07-24 Alan Modra <amodra (a] gmail.com>
1937 1.5 christos
1938 1.7 christos * elf.c (_bfd_elf_assign_file_positions_for_non_load): Use .rela
1939 1.7 christos prefix for reloc section corresponding to rela section associated
1940 1.7 christos with renamed debug section.
1941 1.5 christos
1942 1.7 christos 2015-07-24 Alan Modra <amodra (a] gmail.com>
1943 1.5 christos
1944 1.7 christos * section.c (bfd_get_section_by_name_if): Iterate over entire hash
1945 1.7 christos chain.
1946 1.5 christos
1947 1.7 christos 2015-07-23 Joseph Myers <joseph (a] codesourcery.com>
1948 1.5 christos
1949 1.7 christos * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections)
1950 1.7 christos <DT_MIPS_RLD_MAP_REL>: Add target address to host address
1951 1.7 christos difference, not to host pointer.
1952 1.5 christos
1953 1.7 christos 2015-07-22 Alan Modra <amodra (a] gmail.com>
1954 1.5 christos
1955 1.7 christos * elf64-ppc.c (opd_entry_value): Remove assertion. Instead,
1956 1.7 christos return -1 if symbol referenced is not defined. Tidy.
1957 1.5 christos
1958 1.7 christos 2015-07-20 Alan Modra <amodra (a] gmail.com>
1959 1.5 christos
1960 1.7 christos * po/SRC-POTFILES.in: Regenerate.
1961 1.5 christos
1962 1.7 christos 2015-07-17 Jiong Wang <jiong.wang (a] arm.com>
1963 1.5 christos
1964 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Sort alphabetically.
1965 1.7 christos (IS_AARCH64_TLSDESC_RELOC): Sort alphabetically.
1966 1.5 christos
1967 1.7 christos 2015-07-16 Jiong Wang <jiong.wang (a] arm.com>
1968 1.5 christos
1969 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC): Recognize
1970 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADR_PREL21.
1971 1.7 christos (aarch64_reloc_got_type): Ditto.
1972 1.7 christos (elfNN_aarch64_final_link_relocate): Ditto.
1973 1.7 christos (elfNN_aarch64_relocate_section): Ditto.
1974 1.7 christos (elfNN_aarch64_gc_sweep_hook): Ditto.
1975 1.7 christos (elfNN_aarch64_check_relocs): Ditto.
1976 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
1977 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Ditto.
1978 1.5 christos
1979 1.7 christos 2015-07-16 Jiong Wang <jiong.wang (a] arm.com>
1980 1.5 christos
1981 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSLD_ADR_PREL21): New entry.
1982 1.1 skrll * bfd-in2.h: Regenerate.
1983 1.7 christos * libbfd.h: Regenerate.
1984 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
1985 1.7 christos BFD_RELOC_AARCH64_TLSLD_ADR_PREL21.
1986 1.3 christos
1987 1.7 christos 2015-07-10 H.J. Lu <hongjiu.lu (a] intel.com>
1988 1.3 christos
1989 1.8 christos PR binutils/18656
1990 1.8 christos * bfd.c (bfd_convert_section_size): New function.
1991 1.8 christos (bfd_convert_section_contents): Likewise.
1992 1.8 christos * bfd-in2.h: Regenerated.
1993 1.7 christos
1994 1.7 christos 2015-07-09 Catherine Moore <clm (a] codesourcery.com>
1995 1.7 christos
1996 1.7 christos * elflink.c (bfd_elf_size_dynamic_sections): Call to
1997 1.7 christos _bfd_elf_maybe_strip_eh_frame_hdr should be before
1998 1.7 christos bed->elf_backend_size_dynamic_sections.
1999 1.7 christos
2000 1.7 christos 2015-07-08 Pitchumani Sivanupandi <pitchumani.s (a] atmel.com>
2001 1.7 christos
2002 1.7 christos * elf32-avr.c: Add 32 bit PC relative relocation for AVR target.
2003 1.7 christos
2004 1.7 christos 2015-07-05 Richard Sandiford <richard.sandiford (a] arm.com>
2005 1.7 christos
2006 1.7 christos * elf64-ppc.c (toc_adjusting_stub_needed): Use the symbol value
2007 1.7 christos plus addend rather than the original st_value when looking up
2008 1.7 christos entries in opd->adjust.
2009 1.7 christos
2010 1.7 christos 2015-07-03 Kai Tietz <ktietz (a] redhat.com>
2011 1.7 christos Nick Clifton <nickc (a] redhat.com>
2012 1.7 christos
2013 1.7 christos PR ld/11539
2014 1.7 christos * coffcode.h (coff_bfd_gc_sections): Define default
2015 1.7 christos to bfd_coff_gc_sections function.
2016 1.7 christos (coff_gc_mark_hook_fn): New type.
2017 1.7 christos * coffgen.c (init_reloc_cookie): Copy and adjust coff
2018 1.7 christos related code about gc-sections from elflink.c to here.
2019 1.7 christos (fini_reloc_cookie): Likewise.
2020 1.7 christos (init_reloc_cookie_rels): Likewise.
2021 1.7 christos (fini_reloc_cookie_rels): Likewise.
2022 1.7 christos (init_reloc_cookie_for_section): Likewise.
2023 1.7 christos (fini_reloc_cookie_for_section): Likewise.
2024 1.7 christos (_bfd_coff_gc_mark_hook): Likewise.
2025 1.7 christos (_bfd_coff_gc_mark_rsec): Likewise.
2026 1.7 christos (_bfd_coff_gc_mark_reloc): Likewise.
2027 1.7 christos (_bfd_coff_gc_mark): Likewise.
2028 1.7 christos (_bfd_coff_gc_mark_extra_sections): Likewise.
2029 1.7 christos (coff_gc_sweep_symbol_info): Likewise.
2030 1.7 christos (coff_gc_sweep_symbol): Likewise.
2031 1.7 christos (gc_sweep_hook_fn): Likewise.
2032 1.7 christos (coff_gc_sweep): Likewise.
2033 1.7 christos (bfd_coff_gc_sections): Likewise.
2034 1.7 christos (_bfd_coff_gc_keep): Likewise.
2035 1.7 christos * libcoff-in.h (coff_reloc_cookie): New struct.
2036 1.7 christos (bfd_coff_gc_sections): New prototype.
2037 1.7 christos * libcoff.h: Regenerate.
2038 1.3 christos
2039 1.7 christos 2015-07-01 Sandra Loosemore <sandra (a] codesourcery.com>
2040 1.7 christos Cesar Philippidis <cesar (a] codesourcery.com>
2041 1.3 christos
2042 1.7 christos * bfd-in2.h: Regenerated.
2043 1.7 christos * elf32-nios2.c (elf_nios2_howto_table_rel): Rename to...
2044 1.7 christos (elf_nios2_r1_howto_table_rel): This.
2045 1.7 christos (elf_nios2_r2_howto_table_rel): New.
2046 1.7 christos (BFD_IS_R2): New.
2047 1.7 christos (lookup_howto): Add ABFD parameter. Adjust to look up in either
2048 1.7 christos the R1 or R2 relocation table, as determined by ABFD.
2049 1.7 christos (nios2_reloc_map): Add R2 relocations.
2050 1.7 christos (nios2_elf32_bfd_reloc_type_lookup): Do lookup using lookup_howto.
2051 1.7 christos Pass it the ABFD parameter.
2052 1.7 christos (nios2_elf32_bfd_reloc_name_lookup): Use ABFD to decide whether to
2053 1.7 christos return an R1 or R2 relocation.
2054 1.7 christos (nios2_elf32_info_to_howto): Do lookup using lookup_howto.
2055 1.7 christos Pass it the ABFD parameter.
2056 1.7 christos (nios2_elf32_do_call26_relocate): Check for alignment on a 4-byte
2057 1.7 christos boundary.
2058 1.7 christos (nios2_elf32_relocate_section): Adjust call to lookup_howto.
2059 1.7 christos * libbfd.h: Regenerated.
2060 1.7 christos * reloc.c (BFD_RELOC_NIOS2_R2_S12): New.
2061 1.7 christos (BFD_RELOC_NIOS2_R2_I10_1_PCREL): New.
2062 1.7 christos (BFD_RELOC_NIOS2_R2_T1I7_1_PCREL): New.
2063 1.7 christos (BFD_RELOC_NIOS2_R2_T1I7_2): New.
2064 1.7 christos (BFD_RELOC_NIOS2_R2_T2I4): New.
2065 1.7 christos (BFD_RELOC_NIOS2_R2_T2I4_1): New.
2066 1.7 christos (BFD_RELOC_NIOS2_R2_T2I4_2): New.
2067 1.7 christos (BFD_RELOC_NIOS2_R2_X1I7_2): New.
2068 1.7 christos (BFD_RELOC_NIOS2_R2_X2L5): New.
2069 1.7 christos (BFD_RELOC_NIOS2_R2_F1I5_2): New.
2070 1.7 christos (BFD_RELOC_NIOS2_R2_L5I4X1): New.
2071 1.7 christos (BFD_RELOC_NIOS2_R2_T1X1I6): New.
2072 1.7 christos (BFD_RELOC_NIOS2_R2_T1X1I6_2): New.
2073 1.3 christos
2074 1.7 christos 2015-07-01 Sandra Loosemore <sandra (a] codesourcery.com>
2075 1.7 christos Cesar Philippidis <cesar (a] codesourcery.com>
2076 1.3 christos
2077 1.7 christos * archures.c (bfd_mach_nios2r1, bfd_mach_nios2r2): New.
2078 1.7 christos * bfd-in2.h: Regenerated.
2079 1.7 christos * cpu-nios2.c (nios2_compatible): New.
2080 1.7 christos (N): Use nios2_compatible instead of bfd_default_compatible.
2081 1.7 christos (NIOS2R1_NEXT, NIOS2R2_NEXT): Define.
2082 1.7 christos (arch_info_struct): New.
2083 1.7 christos (bfd_nios2_arch): Chain to NIOS2R1_NEXT.
2084 1.7 christos * elf32-nios2.c (is_nios2_elf): New.
2085 1.7 christos (nios2_elf32_merge_private_bfd_data): New.
2086 1.7 christos (nios2_elf32_object_p): New.
2087 1.7 christos (bfd_elf32_bfd_merge_private_bfd_data): Define.
2088 1.7 christos (elf_backend_object_p): Define.
2089 1.7 christos
2090 1.7 christos 2015-07-01 H.J. Lu <hongjiu.lu (a] intel.com>
2091 1.7 christos
2092 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Refactor.
2093 1.7 christos
2094 1.7 christos 2015-06-30 Nick Clifton <nickc (a] redhat.com>
2095 1.7 christos
2096 1.7 christos PR binutils/18570
2097 1.7 christos * elf-attrs.c (obj_attr_size): Use an unsigned int type for the tag.
2098 1.7 christos (write_obj_attribute): Likewise.
2099 1.7 christos (elf_new_obj_attr): Likewise.
2100 1.7 christos (bfd_elf_get_obj_attr_int): Likewise.
2101 1.7 christos (bfd_elf_add_obj_attr_int): Likewise.
2102 1.7 christos (bfd_elf_add_obj_attr_string): Likewise.
2103 1.7 christos (bfd_elf_add_obj_attr_int_string): Likewise.
2104 1.7 christos (gnu_obj_attrs_arg_type): Likewise.
2105 1.7 christos (_bfd_elf_obj_attrs_arg_type): Likewise.
2106 1.7 christos (_bfd_elf_parse_attributes): Likewise.
2107 1.7 christos (_bfd_elf_merge_unknown_attribute_list): Likewise.
2108 1.7 christos * elf-bfd.h (struct obj_attribute_list): Likewise.
2109 1.7 christos Update prototypes.
2110 1.7 christos
2111 1.7 christos 2015-06-28 H.J. Lu <hongjiu.lu (a] intel.com>
2112 1.7 christos
2113 1.7 christos * bfd-in.h (compressed_debug_section_type): Remove
2114 1.7 christos COMPRESS_DEBUG_ZLIB.
2115 1.7 christos * bfd-in2.h : Regenerated.
2116 1.7 christos
2117 1.7 christos 2015-06-26 Matthew Fortune <matthew.fortune (a] imgtec.com>
2118 1.7 christos
2119 1.7 christos * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Use executable
2120 1.7 christos instead of !shared to indicate an application vs shared library.
2121 1.7 christos (_bfd_mips_elf_size_dynamic_sections): Likewise.
2122 1.7 christos (_bfd_mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP_REL.
2123 1.7 christos (_bfd_mips_elf_get_target_dtag): Likewise.
2124 1.7 christos
2125 1.7 christos 2015-06-25 DJ Delorie <dj (a] redhat.com>
2126 1.7 christos
2127 1.7 christos * elf32-msp430.c (msp430_final_link_relocate): Fix comments. Fix
2128 1.7 christos REL loads to match RELA stores.
2129 1.7 christos
2130 1.7 christos 2015-06-25 H.J. Lu <hongjiu.lu (a] intel.com>
2131 1.7 christos
2132 1.7 christos * elf.c (_bfd_elf_compute_section_file_positions): Don't
2133 1.7 christos initialize sh_size for .shstrtab here.
2134 1.7 christos
2135 1.7 christos 2015-06-25 H.J. Lu <hongjiu.lu (a] intel.com>
2136 1.7 christos
2137 1.7 christos PR gas/18451
2138 1.7 christos * elf-bfd.h (elf_sym_strtab): New.
2139 1.7 christos (elf_link_hash_table): Add strtabcount, strtabsize and
2140 1.7 christos strtab.
2141 1.7 christos (_bfd_elf_stringtab_init): Removed.
2142 1.7 christos * elf.c (_bfd_elf_stringtab_init): Removed.
2143 1.7 christos (_bfd_elf_compute_section_file_positions): Replace
2144 1.7 christos bfd_strtab_hash/_bfd_elf_stringtab_init/_bfd_stringtab_free/
2145 1.7 christos _bfd_stringtab_size with
2146 1.7 christos elf_strtab_hash/_bfd_elf_strtab_init/_bfd_elf_strtab_free/
2147 1.7 christos _bfd_elf_strtab_size. Use _bfd_elf_strtab_add,
2148 1.7 christos _bfd_elf_strtab_finalize and _bfd_elf_strtab_offset to get
2149 1.7 christos st_name.
2150 1.7 christos (swap_out_syms): Likewise.
2151 1.7 christos * elflink.c (elf_final_link_info): Replace bfd_strtab_hash
2152 1.7 christos with elf_strtab_hash. Remove symbuf, symbuf_count,
2153 1.7 christos symbuf_size and shndxbuf_size.
2154 1.7 christos (elf_link_flush_output_syms): Removed.
2155 1.7 christos (elf_link_output_sym): Renamed to ...
2156 1.7 christos (elf_link_output_symstrtab): This. Replace _bfd_stringtab_add
2157 1.7 christos with _bfd_elf_strtab_add. Don't flush symbols to the file nor
2158 1.7 christos swap out symbols.
2159 1.7 christos (elf_link_swap_symbols_out): New.
2160 1.7 christos (elf_link_output_extsym): Replace elf_link_output_sym with
2161 1.7 christos elf_link_output_symstrtab.
2162 1.7 christos (elf_link_input_bfd): Likewise.
2163 1.7 christos (elf_final_link_free): Replace _bfd_stringtab_free with
2164 1.7 christos _bfd_elf_strtab_free. Remove symbuf.
2165 1.7 christos (bfd_elf_final_link): Replace _bfd_elf_stringtab_init with
2166 1.7 christos _bfd_elf_strtab_init. Don't set symbuf, symbuf_count,
2167 1.7 christos symbuf_size nor shndxbuf_size. Initialize strtabsize and
2168 1.7 christos strtab. Initialize symshndxbuf to -1 when number of sections
2169 1.7 christos >= 64K. Replace elf_link_output_sym/elf_link_output_sym with
2170 1.7 christos elf_link_output_symstrtab/elf_link_output_symstrtab. Don't
2171 1.7 christos call elf_link_flush_output_syms. Call _bfd_elf_strtab_finalize
2172 1.7 christos and elf_link_swap_symbols_out. Replace _bfd_stringtab_size
2173 1.7 christos and _bfd_stringtab_emit with _bfd_elf_strtab_size and
2174 1.7 christos _bfd_elf_strtab_emit.
2175 1.7 christos
2176 1.7 christos 2015-06-24 H.J. Lu <hongjiu.lu (a] intel.com>
2177 1.7 christos
2178 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Silence older
2179 1.7 christos GCC warning.
2180 1.7 christos
2181 1.7 christos 2015-06-24 H.J. Lu <hongjiu.lu (a] intel.com>
2182 1.7 christos
2183 1.7 christos * elf32-i386.c (elf_i386_allocate_dynrelocs): Always allocate
2184 1.7 christos space for the first .plt entry.
2185 1.7 christos (elf_i386_size_dynamic_sections): Always add DT_PLTGOT for .plt
2186 1.7 christos section. Add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL only if
2187 1.7 christos there are PLT relocations.
2188 1.7 christos * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Always
2189 1.7 christos allocate space for the first .plt entry.
2190 1.7 christos (elf_x86_64_size_dynamic_sections): Always add DT_PLTGOT for
2191 1.7 christos .plt section. Add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL only if
2192 1.7 christos there are PLT relocations.
2193 1.7 christos
2194 1.7 christos 2015-06-24 H.J. Lu <hongjiu.lu (a] intel.com>
2195 1.7 christos
2196 1.7 christos PR ld/18591
2197 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Don't convert
2198 1.7 christos R_X86_64_GOTPCREL to R_X86_64_PC32 if it will cause relocation
2199 1.7 christos overflow.
2200 1.7 christos
2201 1.7 christos 2015-06-23 Jiong Wang <jiong.wang (a] arm.com>
2202 1.7 christos
2203 1.7 christos * elfnn-aarch64.c (aarch64_readonly_dynrelocs): New function.
2204 1.7 christos (elfNN_aarch64_size_dynamic_sections): Traverse hash table to check
2205 1.7 christos relocations against read-only sections.
2206 1.7 christos
2207 1.7 christos 2015-06-18 Nick Clifton <nickc (a] redhat.com>
2208 1.7 christos
2209 1.7 christos PR 18481
2210 1.7 christos * elf32-arm.c (R_ARM_TLS_LE32): Set the special function to NULL.
2211 1.7 christos
2212 1.7 christos 2015-06-15 Jon Turney <jon.turney (a] dronecode.org.uk>
2213 1.7 christos
2214 1.7 christos * bfd.c: Change struct bfd_build_id to use bfd_size_type.
2215 1.7 christos * bfd-in2.h : Regenerate.
2216 1.7 christos
2217 1.7 christos 2015-06-16 Alan Modra <amodra (a] gmail.com>
2218 1.3 christos
2219 1.7 christos * elf32-ppc.c (ppc_elf_relocate_section): Correct binary search of
2220 1.7 christos dynamic relocs.
2221 1.3 christos
2222 1.7 christos 2015-06-10 Jon Turney <jon.turney (a] dronecode.org.uk>
2223 1.3 christos
2224 1.7 christos * elf-bfd.h : Remove struct elf_build_id.
2225 1.7 christos * bfd.c : Add struct bfd_build_id.
2226 1.7 christos * bfd-in2.h: Regenerate.
2227 1.7 christos * elf.c (elfobj_grok_gnu_build_id): Update to use bfd_build_id.
2228 1.7 christos * libpei.h: Add protoype and macros for
2229 1.7 christos bfd_XXi_slurp_codeview_record.
2230 1.7 christos * peXXigen.c (_bfd_XXi_slurp_codeview_record): Make public
2231 1.7 christos * peicode.h (pe_bfd_read_buildid): Add.
2232 1.7 christos (pe_bfd_object_p): Use pe_bfd_read_buildid().
2233 1.3 christos
2234 1.7 christos 2015-06-15 Renlin Li <renlin.li (a] arm.com>
2235 1.7 christos
2236 1.7 christos * reloc.c (BFD_RELOC_AARCH64_LD64_GOTOFF_LO15): New entry.
2237 1.7 christos * bfd-in2.h: Regenerate.
2238 1.7 christos * libbfd.h: Regenerate.
2239 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
2240 1.7 christos BFD_RELOC_AARCH64_LD64_GOTOFF_LO15.
2241 1.3 christos
2242 1.7 christos 2015-06-15 Alan Modra <amodra (a] gmail.com>
2243 1.3 christos
2244 1.7 christos * cofflink.c (_bfd_coff_generic_relocate_section): Revert
2245 1.7 christos 2014-03-26 change. Call _bfd_clear_contents for relocs against
2246 1.7 christos local and global symbols defined in discarded input sections.
2247 1.3 christos
2248 1.7 christos 2015-06-05 Nick Clifton <nickc (a] redhat.com>
2249 1.3 christos
2250 1.7 christos * elf32-msp430.c (rl78_sym_diff_handler): New function.
2251 1.7 christos (msp430_howto_table): Use the new function for the SYM_DIFF reloc.
2252 1.7 christos (msp430x_howto_table): Likewise.
2253 1.3 christos
2254 1.7 christos 2015-06-05 Alan Modra <amodra (a] gmail.com>
2255 1.3 christos
2256 1.7 christos * elf64-ppc.c (ppc_elf_relocate_section): Move dynamic text
2257 1.7 christos relocs with insns moved by --ppc476-workaround. Correct
2258 1.7 christos output of REL16 relocs.
2259 1.1 skrll
2260 1.7 christos 2015-06-01 Jiong Wang <jiong.wang (a] arm.com>
2261 1.1 skrll
2262 1.7 christos * elfnn-aarch64.c (aarch64_reloc_got_type): Support
2263 1.7 christos BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
2264 1.7 christos (elfNN_aarch64_final_link_relocate): Ditto.
2265 1.7 christos (elfNN_aarch64_gc_swap_hook): Ditto.
2266 1.7 christos (elfNN_aarch64_check_relocs): Ditto.
2267 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
2268 1.1 skrll
2269 1.7 christos 2015-06-01 Jiong Wang <jiong.wang (a] arm.com>
2270 1.1 skrll
2271 1.7 christos * reloc.c (BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14): New entry.
2272 1.5 christos * bfd-in2.h: Regenerate.
2273 1.7 christos * libbfd.h: Regenerate.
2274 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
2275 1.7 christos BFD_RELOC_AARCH64_LD32_GOTPAGE_LO14.
2276 1.7 christos
2277 1.7 christos 2015-06-01 Jiong Wang <jiong.wang (a] arm.com>
2278 1.1 skrll
2279 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): Set overflow type to
2280 1.7 christos complain_overflow_unsigned for BFD_RELOC_AARCH64_TLSLE_ADD_LO12.
2281 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Don't use
2282 1.7 christos PGOFF for BFD_RELOC_AARCH64_TLSLE_ADD_LO12.
2283 1.1 skrll
2284 1.7 christos 2015-06-01 Jiong Wang <jiong.wang (a] arm.com>
2285 1.7 christos
2286 1.7 christos * elfnn-aarch64.c (aarch64_reloc_got_type): Support
2287 1.7 christos BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
2288 1.7 christos (elfNN_aarch64_final_link_relocate): Ditto.
2289 1.7 christos (elfNN_aarch64_gc_swap_hook): Ditto.
2290 1.7 christos (elfNN_aarch64_check_relocs): Ditto.
2291 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
2292 1.1 skrll
2293 1.7 christos 2015-06-01 Jiong Wang <jiong.wang (a] arm.com>
2294 1.1 skrll
2295 1.7 christos * reloc.c (BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15): New entry.
2296 1.7 christos * bfd-in2.h: Regenerate.
2297 1.7 christos * libbfd.h: Regenerate.
2298 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): New entry for
2299 1.7 christos BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15.
2300 1.5 christos
2301 1.7 christos 2015-05-28 Catherine Moore <clm (a] codesourcery.com>
2302 1.7 christos Bernd Schmidt <bernds (a] codesourcery.com>
2303 1.7 christos Paul Brook <paul (a] codesourcery.com>
2304 1.5 christos
2305 1.7 christos * bfd-in2.h: Regenerated.
2306 1.7 christos * elf-bfd.h (DWARF2_EH_HDR, COMPACT_EH_HDR): Define.
2307 1.7 christos (COMPACT_EH_CANT_UNWIND_OPCODE): Define.
2308 1.7 christos (dwarf_eh_frame_hdr_info): Move dwarf-specific fields from
2309 1.7 christos eh_frame_hdr_info.
2310 1.7 christos (compact_eh_frame_hdr_info): Declare.
2311 1.7 christos (eh_frame_hdr_info): Redeclare with union for dwarf-specific
2312 1.7 christos fields and compact-eh fields.
2313 1.7 christos (elf_backend_data): Add cant_unwind_opcode and compact_eh_encoding.
2314 1.7 christos (bfd_elf_section_data): Add eh_frame_entry_field.
2315 1.7 christos (elf_section_eh_frame_entry): Define.
2316 1.7 christos (bfd_elf_parse_eh_frame_entries): Declare.
2317 1.7 christos (_bfd_elf_parse_eh_frame_entry): Declare.
2318 1.7 christos (_bfd_elf_end_eh_frame_parsing): Declare.
2319 1.7 christos (_bfd_elf_write_section_eh_frame_entry): Declare.
2320 1.7 christos (_bfd_elf_eh_frame_entry_present): Declare.
2321 1.7 christos (_bfd_elf_section_for_symbol): Declare.
2322 1.7 christos * elf-eh-frame.c (bfd_elf_discard_eh_frame_entry): New function.
2323 1.7 christos (bfd_elf_record_eh_frame_entry): New function.
2324 1.7 christos (_bfd_elf_parse_eh_frame_entry): New function.
2325 1.7 christos (_bfd_elf_parse_eh_frame): Update hdr_info field references.
2326 1.7 christos (cmp_eh_frame_hdr): New function.
2327 1.7 christos (add_eh_frame_hdr_terminator): New function.
2328 1.7 christos (_bfd_elf_end_eh_frame_parsing): New function.
2329 1.7 christos (find_merged_cie): Update hdr_info field references.
2330 1.7 christos (_bfd_elf_discard_section_eh_frame): Likewise.
2331 1.7 christos (_bfd_elf_discard_section_eh_frame_hdr): Add Compact EH support.
2332 1.7 christos (_bfd_elf_eh_frame_entry_present): New function.
2333 1.7 christos (_bfd_elf_maybe_strip_eh_frame_hdr): Add Compact EH support.
2334 1.7 christos (_bfd_elf_write_section_eh_frame_entry): New function.
2335 1.7 christos (_bfd_elf_write_section_eh_frame): Update hdr_info field references.
2336 1.7 christos (_bfd_elf_fixup_eh_frame_hdr): New function.
2337 1.7 christos (write_compact_eh_frame_hdr): New function.
2338 1.7 christos (write_dwarf_eh_frame_hdr): New function.
2339 1.7 christos (_bfd_elf_write_section_eh_frame_hdr): Add Compact EH support.
2340 1.7 christos * elflink.c (_bfd_elf_section_for_symbol): New function.
2341 1.7 christos (elf_section_ignore_discarded_relocs): Add Compact EH support.
2342 1.7 christos (elf_link_input_bfd): Likewise.
2343 1.7 christos (bfd_elf_final_link): Likewise.
2344 1.7 christos (_bfd_elf_gc_mark): Likewise.
2345 1.7 christos (bfd_elf_parse_eh_frame_entries): New function.
2346 1.7 christos (bfd_elf_gc_sections): Add Compact EH support.
2347 1.7 christos (bfd_elf_discard_info): Likewise.
2348 1.7 christos * elfxx-mips.c: Include dwarf2.h.
2349 1.7 christos (_bfd_mips_elf_compact_eh_encoding): New function.
2350 1.7 christos (_bfd_mips_elf_cant_unwind_opcode): New function.
2351 1.7 christos * elfxx-mips.h (_bfd_mips_elf_compact_eh_encoding): Declare.
2352 1.7 christos (_bfd_mips_elf_cant_unwind_opcode): Declare.
2353 1.7 christos (elf_backend_compact_eh_encoding): Define.
2354 1.7 christos (elf_backend_cant_unwind_opcode): Define.
2355 1.7 christos * elfxx-target.h (elf_backend_compact_eh_encoding): Provide default.
2356 1.7 christos (elf_backend_cant_unwind_opcode): Provide default.
2357 1.7 christos (elf_backend_data elfNN_bed): Add elf_backend_compact_eh_encoding and
2358 1.7 christos elf_backend_cant_unwind_opcode.
2359 1.7 christos * section.c (SEC_INFO_TYPE_EH_FRAME_ENTRY): Add definition.
2360 1.7 christos
2361 1.7 christos 2015-05-27 H.J. Lu <hongjiu.lu (a] intel.com>
2362 1.7 christos
2363 1.7 christos PR binutils/18458
2364 1.7 christos * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section
2365 1.7 christos for now binding only if pointer equality isn't needed.
2366 1.7 christos (elf_i386_allocate_dynrelocs): Use .plt.got section for now
2367 1.7 christos binding only if pointer equality isn't needed.
2368 1.7 christos * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got
2369 1.7 christos section for now binding only if pointer equality isn't needed.
2370 1.7 christos (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now
2371 1.7 christos binding only if pointer equality isn't needed.
2372 1.7 christos
2373 1.7 christos 2015-05-26 H.J. Lu <hongjiu.lu (a] intel.com>
2374 1.7 christos
2375 1.7 christos PR binutils/18437
2376 1.7 christos * elf32-i386.c (elf_i386_get_plt_sym_val): Skip extra relocations
2377 1.7 christos in .rel.plt/.rela.plt.
2378 1.7 christos * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
2379 1.7 christos
2380 1.7 christos 2015-05-19 Jiong Wang <jiong.wang (a] arm.com>
2381 1.7 christos
2382 1.7 christos * elfnn-aarch64.c (aarch64_tls_transition_without_check): Sort
2383 1.7 christos relocation case labels alphabetically.
2384 1.7 christos (elfNN_aarch64_final_link_relocate): Ditto.
2385 1.7 christos (elfNN_aarch64_tls_relax): Ditto.
2386 1.7 christos (elfNN_aarch64_relocate_section): Ditto.
2387 1.7 christos (elfNN_aarch64_gc_sweep_hook): Ditto.
2388 1.7 christos (elfNN_aarch64_check_relocs): Ditto.
2389 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Ditto.
2390 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Ditto.
2391 1.7 christos
2392 1.7 christos 2015-05-18 Jiong Wang <jiong.wang (a] arm.com>
2393 1.7 christos
2394 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_adjust_dynamic_symbol): Rewrite
2395 1.7 christos comments.
2396 1.7 christos
2397 1.7 christos 2015-05-16 H.J. Lu <hongjiu.lu (a] intel.com>
2398 1.7 christos
2399 1.7 christos * elf32-i386.c (elf_i386_check_relocs): Create .plt.got section
2400 1.7 christos for now binding.
2401 1.7 christos (elf_i386_allocate_dynrelocs): Use .plt.got section for now
2402 1.7 christos binding.
2403 1.7 christos * elf64-x86-64.c (elf_x86_64_check_relocs): Create .plt.got
2404 1.7 christos section for now binding.
2405 1.7 christos (elf_x86_64_allocate_dynrelocs): Use .plt.got section for now
2406 1.7 christos binding.
2407 1.7 christos
2408 1.7 christos 2015-05-14 H.J. Lu <hongjiu.lu (a] intel.com>
2409 1.7 christos
2410 1.7 christos * bfd.c (bfd_update_compression_header): Also write the zlib
2411 1.7 christos header if the SHF_COMPRESSED bit cleared..
2412 1.7 christos (bfd_check_compression_header): Return the uncompressed size.
2413 1.7 christos * compress.c (decompress_contents): Don't skip the zlib header.
2414 1.7 christos (bfd_compress_section_contents): Properly handle ELFCOMPRESS_ZLIB,
2415 1.7 christos which doesn't have the zlib header.
2416 1.7 christos (bfd_init_section_decompress_status): Likewise.
2417 1.7 christos (bfd_get_full_section_contents): Updated.
2418 1.7 christos (bfd_is_section_compressed): Likewise.
2419 1.7 christos (bfd_is_section_compressed_with_header): Return the uncompressed
2420 1.7 christos size.
2421 1.7 christos * elf.c (_bfd_elf_make_section_from_shdr): Updated.
2422 1.7 christos * bfd-in2.h: Regenerated.
2423 1.5 christos
2424 1.7 christos 2015-05-14 Jiong Wang <jiong.wang (a] arm.com>
2425 1.5 christos
2426 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow
2427 1.7 christos check restrictions.
2428 1.5 christos
2429 1.7 christos 2015-05-14 Max Filippov <jcmvbkbc (a] gmail.com>
2430 1.5 christos
2431 1.7 christos * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Treat PLT reference
2432 1.7 christos as GOT reference when plt.refcount is not positive.
2433 1.5 christos
2434 1.7 christos 2015-05-12 H.J. Lu <hongjiu.lu (a] intel.com>
2435 1.5 christos
2436 1.7 christos * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate space
2437 1.7 christos for the first .plt entry only if needed.
2438 1.7 christos * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
2439 1.5 christos
2440 1.7 christos 2015-05-11 H.J. Lu <hongjiu.lu (a] intel.com>
2441 1.5 christos
2442 1.7 christos * Makefile.am (ALL_MACHINES): Add cpu-iamcu.lo.
2443 1.5 christos (ALL_MACHINES_CFILES): Likewise.
2444 1.7 christos * archures.c (bfd_mach_iamcu): New.
2445 1.7 christos (bfd_mach_i386_iamcu): Likewise.
2446 1.7 christos (bfd_mach_i386_iamcu_intel_syntax): Likewise.
2447 1.7 christos (bfd_iamcu_arch): Likewise.
2448 1.7 christos (bfd_archures_list): Add &bfd_iamcu_arch.
2449 1.7 christos * config.bfd (targ_selvecs): Add iamcu_elf32_vec to
2450 1.7 christos i386_elf32_vec.
2451 1.7 christos (targ_archs): Add bfd_iamcu_arch if needed.
2452 1.7 christos * configure.ac: Support iamcu_elf32_vec.
2453 1.7 christos * cpu-iamcu.c: New file.
2454 1.7 christos * elf32-i386.c (elf32_iamcu_elf_object_p): New function.
2455 1.7 christos Add support for iamcu_elf32_vec and elf32_iamcu_bed.
2456 1.7 christos * targets.c (iamcu_elf32_vec): New.
2457 1.7 christos (_bfd_target_vector): Add iamcu_elf32_vec.
2458 1.7 christos * Makefile.in: Regenerated.
2459 1.7 christos * bfd-in2.h: Likewise.
2460 1.7 christos * configure: Likewise.
2461 1.7 christos
2462 1.7 christos 2015-05-11 H.J. Lu <hongjiu.lu (a] intel.com>
2463 1.7 christos
2464 1.7 christos * elfcode.h (elf_object_p): Replace EM_486 with EM_IAMCU.
2465 1.7 christos
2466 1.7 christos 2015-05-10 H.J. Lu <hongjiu.lu (a] intel.com>
2467 1.7 christos
2468 1.7 christos * elf32-i386.c (elf_i386_convert_mov_to_lea): Replace input_bfd
2469 1.7 christos and output_bfd with abfd.
2470 1.7 christos * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
2471 1.7 christos
2472 1.7 christos 2015-05-06 Toni Spets <toni.spets (a] iki.fi>
2473 1.1 skrll
2474 1.7 christos PR ld/18372
2475 1.7 christos * peXXigen.c (rsrc_process_section): Skip discarded resource
2476 1.7 christos sections.
2477 1.1 skrll
2478 1.7 christos 2015-05-01 H.J. Lu <hongjiu.lu (a] intel.com>
2479 1.1 skrll
2480 1.7 christos * config.bfd: Support i[3-7]86-*-elf*.
2481 1.1 skrll
2482 1.7 christos 2015-04-30 H.J. Lu <hongjiu.lu (a] intel.com>
2483 1.5 christos
2484 1.7 christos * elf32-i386.c (elf_backend_post_process_headers): Undef for
2485 1.7 christos Solaris 2.
2486 1.5 christos
2487 1.7 christos 2015-04-30 Nick Clifton <nickc (a] redhat.com>
2488 1.1 skrll
2489 1.7 christos PR 18317
2490 1.7 christos * elf32-mep.c (MEPREL): Use bfd_elf_generic_reloc instead of
2491 1.7 christos mep_reloc.
2492 1.7 christos (mep_reloc): Delete unused function.
2493 1.1 skrll
2494 1.7 christos 2015-04-29 Nick Clifton <nickc (a] redhat.com>
2495 1.1 skrll
2496 1.7 christos PR 17099
2497 1.7 christos * coff-i386.c (coff_i386_rtype_to_howto): Allow absolute PCRLONG
2498 1.7 christos relocs.
2499 1.1 skrll
2500 1.7 christos 2015-04-27 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
2501 1.1 skrll
2502 1.7 christos * elf-s390-common.c (elf_s390_merge_obj_attributes): New function.
2503 1.7 christos * elf32-s390.c (elf32_s390_merge_private_bfd_data): Call
2504 1.7 christos elf_s390_merge_obj_attributes.
2505 1.7 christos * elf64-s390.c (elf64_s390_merge_private_bfd_data): New function.
2506 1.1 skrll
2507 1.7 christos 2015-04-24 Jiong Wang <jiong.wang (a] arm.com>
2508 1.1 skrll
2509 1.7 christos PR ld/18270
2510 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_size_dynamic): Count local symbol for
2511 1.7 christos GOT_NORMAL for both sgot/srelgot section.
2512 1.7 christos (elfNN_aarch64_final_link_relocate): Relocate against GOT entry address
2513 1.7 christos and generate necessary runtime relocation for GOT entry.
2514 1.1 skrll
2515 1.7 christos 2015-04-24 H.J. Lu <hongjiu.lu (a] intel.com>
2516 1.1 skrll
2517 1.7 christos PR binutils/18209
2518 1.7 christos * archive.c (_bfd_get_elt_at_filepos): Copy is_linker_input.
2519 1.1 skrll
2520 1.7 christos 2015-04-24 Jiong Wang <jiong.wang (a] arm.com>
2521 1.1 skrll
2522 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Reject
2523 1.7 christos PC-relative relocation for external symbol.
2524 1.1 skrll
2525 1.7 christos 2015-04-24 Nick Clifton <nickc (a] redhat.com>
2526 1.3 christos
2527 1.7 christos PR 18313
2528 1.7 christos * compress.c (decompress_contents): Zero initialse the z_stream
2529 1.7 christos structure.
2530 1.3 christos
2531 1.7 christos 2015-04-24 Nick Clifton <nickc (a] redhat.com>
2532 1.3 christos
2533 1.7 christos * elf.c (_bfd_elf_is_local_label_name): Extend test for assembler
2534 1.7 christos local labels to include local labels with a numeric suffix and
2535 1.7 christos fake symbols.
2536 1.3 christos
2537 1.7 christos 2015-04-24 H.J. Lu <hongjiu.lu (a] intel.com>
2538 1.3 christos
2539 1.7 christos PR binutils/18316
2540 1.7 christos * section.c (SEC_MEP_VLIW): New.
2541 1.7 christos * bfd-in2.h: Regenerated.
2542 1.3 christos
2543 1.7 christos 2015-04-23 H.J. Lu <hongjiu.lu (a] intel.com>
2544 1.5 christos
2545 1.7 christos PR ld/18277
2546 1.7 christos * compress.c (bfd_compress_section_contents): Remove the
2547 1.7 christos write_compress argument.
2548 1.7 christos (bfd_init_section_compress_status): Updated.
2549 1.7 christos (bfd_compress_section): Likewise.
2550 1.7 christos * elf.c (_bfd_elf_set_reloc_sh_name): New.
2551 1.7 christos (_bfd_elf_init_reloc_shdr): Add delay_st_name_p. Set sh_name
2552 1.7 christos to (unsigned int) -1 if delay_st_name_p is TRUE. Use
2553 1.7 christos _bfd_elf_set_reloc_sh_name.
2554 1.7 christos (elf_fake_sections): Don't rename DWARF debug section for
2555 1.7 christos linker output if it will be compressed. Instead, set
2556 1.7 christos delay_st_name_p to TRUE and pass it to _bfd_elf_init_reloc_shdr.
2557 1.7 christos (assign_section_numbers): Call _bfd_elf_strtab_addref only if
2558 1.7 christos sh_name != (unsigned int) -1. Don't finalize nor assign
2559 1.7 christos shstrtab section here. Delay setting output section names to
2560 1.7 christos _bfd_elf_write_object_contents.
2561 1.7 christos (_bfd_elf_compute_section_file_positions): Update comments on
2562 1.7 christos sh_offset for shstrtab section.
2563 1.7 christos (assign_file_positions_for_non_load_sections): Set sh_offset to
2564 1.7 christos -1 for shstrtab section.
2565 1.7 christos (assign_file_positions_except_relocs): Likewise.
2566 1.7 christos (_bfd_elf_assign_file_positions_for_non_load): Set up sh_name
2567 1.7 christos when compressing DWARF debug sections. Place shstrtab section
2568 1.7 christos after DWARF debug sections have been compressed.
2569 1.7 christos (_bfd_elf_write_object_contents): Setting sh_name for output
2570 1.7 christos sections.
2571 1.5 christos
2572 1.7 christos 2015-04-23 H.J. Lu <hongjiu.lu (a] intel.com>
2573 1.5 christos
2574 1.7 christos PR binutils/18209
2575 1.7 christos * bfd.c (bfd): Add is_linker_input.
2576 1.7 christos * elf.c (convert_debug_to_zdebug): New.
2577 1.7 christos (convert_zdebug_to_debug): Likewise.
2578 1.7 christos (_bfd_elf_make_section_from_shdr): Don't convert .debug_* to
2579 1.7 christos .zdebug_* here. Use convert_zdebug_to_debug. Set SEC_ELF_RENAME.
2580 1.7 christos (_bfd_elf_init_reloc_shdr): Pass a pointer to section name
2581 1.7 christos instead of a pointer to section.
2582 1.7 christos (elf_fake_sections): Rename the section name if SEC_ELF_RENAME
2583 1.7 christos is set.
2584 1.7 christos * section.c (SEC_ELF_RENAME): New.
2585 1.7 christos * bfd-in2.h: Regenerated.
2586 1.5 christos
2587 1.7 christos 2015-04-23 Alan Modra <amodra (a] gmail.com>
2588 1.5 christos
2589 1.7 christos * elf64-ppc.c (TOC_BASE_ALIGN): Define.
2590 1.7 christos (ppc64_elf_next_toc_section): Align multi-got toc base.
2591 1.7 christos (ppc64_elf_set_toc): Likewise initial toc base and .TOC. symbol.
2592 1.7 christos
2593 1.7 christos 2015-04-22 H.J. Lu <hongjiu.lu (a] intel.com>
2594 1.7 christos
2595 1.7 christos PR ld/18289
2596 1.7 christos * elf32-i386.c (elf_i386_link_hash_entry): Add gotoff_ref.
2597 1.7 christos (elf_i386_link_hash_newfunc): Initialize gotoff_ref to 0.
2598 1.7 christos (elf_i386_create_dynamic_sections): Always allow copy relocs for
2599 1.7 christos building executables.
2600 1.7 christos (elf_i386_copy_indirect_symbol): Also copy gotoff_ref.
2601 1.7 christos (elf_i386_check_relocs): Set gotoff_ref for R_386_GOTOFF.
2602 1.7 christos (elf_i386_adjust_dynamic_symbol): Also allocate copy relocs for
2603 1.7 christos PIE and R_386_GOTOFF.
2604 1.7 christos (elf_i386_relocate_section): Allow R_386_GOTOFF in executable.
2605 1.7 christos
2606 1.7 christos 2015-04-20 H.J. Lu <hongjiu.lu (a] intel.com>
2607 1.7 christos
2608 1.7 christos * elf.c (assign_section_numbers): Always set up sh_name.
2609 1.7 christos
2610 1.7 christos 2015-04-20 H.J. Lu <hongjiu.lu (a] intel.com>
2611 1.7 christos
2612 1.7 christos * elf.c (assign_file_positions_for_non_load_sections): Iterate
2613 1.7 christos sections by pointer.
2614 1.7 christos (_bfd_elf_assign_file_positions_for_non_load): Likewise.
2615 1.7 christos
2616 1.7 christos 2015-04-14 H.J. Lu <hongjiu.lu (a] intel.com>
2617 1.7 christos
2618 1.7 christos * bfd-in.h (compressed_debug_section_type): New.
2619 1.7 christos * compress.c (bfd_compress_section_contents): Add an argument
2620 1.7 christos for linker write compression and always generate .zdebug_*
2621 1.7 christos section when linking.
2622 1.7 christos (bfd_init_section_compress_status): Pass FALSE to
2623 1.7 christos bfd_compress_section_contents.
2624 1.7 christos (bfd_compress_section): New function.
2625 1.7 christos * elf.c (elf_fake_sections): For linking, set SEC_ELF_COMPRESS
2626 1.7 christos on DWARF debug sections if COMPRESS_DEBUG is set and rename
2627 1.7 christos section if COMPRESS_DEBUG_GABI_ZLIB isn't set.
2628 1.7 christos (assign_file_positions_for_non_load_sections): Set sh_offset
2629 1.7 christos to -1 if SEC_ELF_COMPRESS is set.
2630 1.7 christos (assign_file_positions_except_relocs): Likwise.
2631 1.7 christos (_bfd_elf_assign_file_positions_for_relocs): Renamed to ...
2632 1.7 christos (_bfd_elf_assign_file_positions_for_non_load): This. Change
2633 1.7 christos return time to bfd_boolean. Compress the section if
2634 1.7 christos SEC_ELF_COMPRESS is set.
2635 1.7 christos (_bfd_elf_write_object_contents): Updated.
2636 1.7 christos (_bfd_elf_set_section_contents): Write section contents to
2637 1.7 christos the buffer if SEC_ELF_COMPRESS is set.
2638 1.7 christos * merge.c: Include "elf-bfd.h".
2639 1.7 christos (sec_merge_emit): Add arguments for contents and offset. Write
2640 1.7 christos to contents with offset if contents isn't NULL.
2641 1.7 christos (_bfd_write_merged_section): Write section contents to the
2642 1.7 christos buffer if SEC_ELF_COMPRESS is set. Pass contents and
2643 1.7 christos output_offset to sec_merge_emit.
2644 1.7 christos * elflink.c (bfd_elf_final_link): Allocate the buffer for
2645 1.7 christos output section contents if SEC_ELF_COMPRESS is set.
2646 1.7 christos * section.c (SEC_ELF_COMPRESS): New.
2647 1.7 christos * bfd-in2.h: Regenerated.
2648 1.5 christos
2649 1.7 christos 2015-04-15 Alan Modra <amodra (a] gmail.com>
2650 1.5 christos
2651 1.7 christos * elf32-rl78.c (rl78_elf_relocate_section): Typo fix.
2652 1.5 christos
2653 1.7 christos 2015-04-14 Nick Clifton <nickc (a] redhat.com>
2654 1.5 christos
2655 1.7 christos * elf32-rl78.c (RL78_OP_REL): New macro.
2656 1.7 christos (rl78_elf_howto_table): Use it for complex relocs.
2657 1.7 christos (get_symbol_value): Handle the cases when the info or status
2658 1.7 christos arguments are NULL.
2659 1.7 christos (get_romstart): Cache the status returned by get_symbol_value.
2660 1.7 christos (get_ramstart): Likewise.
2661 1.7 christos (RL78_STACK_PUSH): Generate an error message if the stack
2662 1.7 christos overflows.
2663 1.7 christos (RL78_STACK_POP): Likewise for underflows.
2664 1.7 christos (rl78_compute_complex_reloc): New function. Contains the basic
2665 1.7 christos processing code for all RL78 complex relocs.
2666 1.7 christos (rl78_special_reloc): New function. Provides special reloc
2667 1.7 christos handling for complex relocs.
2668 1.7 christos (rl78_elf_relocate_section): Use rl78_compute_complex_reloc.
2669 1.7 christos (rl78_offset_for_reloc): Likewise.
2670 1.7 christos
2671 1.7 christos 2015-04-14 H.J. Lu <hongjiu.lu (a] intel.com>
2672 1.7 christos
2673 1.7 christos PR ld/pr17709
2674 1.7 christos * elflink.c (_bfd_elf_adjust_dynamic_copy): Check
2675 1.7 christos info->extern_protected_data when warning copy relocs against
2676 1.7 christos protected symbols.
2677 1.7 christos (_bfd_elf_symbol_refs_local_p): Check info->extern_protected_data
2678 1.7 christos when checking protected non-function symbols.
2679 1.7 christos
2680 1.7 christos 2015-04-13 John Baldwin <jhb (a] FreeBSD.org>
2681 1.7 christos
2682 1.7 christos * elf.c (elfcore_grok_note): Recognize NT_X86_XSTATE on
2683 1.7 christos FreeBSD.
2684 1.7 christos (elfcore_write_xstatereg): Use correct note name on FreeBSD.
2685 1.7 christos
2686 1.7 christos 2015-04-13 H.J. Lu <hongjiu.lu (a] intel.com>
2687 1.7 christos
2688 1.7 christos PR ld/18250
2689 1.7 christos * elflink.c (elf_link_is_defined_archive_symbol): Return FALSE
2690 1.7 christos if the object has been claimed by plugin.
2691 1.7 christos
2692 1.7 christos 2015-04-11 H.J. Lu <hongjiu.lu (a] intel.com>
2693 1.7 christos
2694 1.7 christos * elf32-i386.c (elf_i386_relocate_section): Replace SYMBOLIC_BIND
2695 1.7 christos with SYMBOL_REFERENCES_LOCAL when checking R_386_GOTOFF against
2696 1.7 christos protected data symbol when building shared library.
2697 1.7 christos * elf64-x86-64.c (elf_x86_64_relocate_section): Check
2698 1.7 christos R_X86_64_GOTOFF64 against undefined symbol and replace
2699 1.7 christos SYMBOLIC_BIND with SYMBOL_REFERENCES_LOCAL when checking
2700 1.7 christos R_X86_64_GOTOFF64 against protected data symbol when building
2701 1.7 christos shared library.
2702 1.7 christos
2703 1.7 christos 2015-04-10 H.J. Lu <hongjiu.lu (a] intel.com>
2704 1.7 christos
2705 1.7 christos PR ld/pr17709
2706 1.7 christos * elf32-i386.c (elf_i386_relocate_section): Also check R_386_GOTOFF
2707 1.7 christos against protected data symbol when building shared library.
2708 1.7 christos * elf64-x86-64.c (elf_x86_64_relocate_section): Also check
2709 1.7 christos R_X86_64_GOTOFF64 against protected data symbol when building
2710 1.7 christos shared library.
2711 1.7 christos
2712 1.7 christos 2015-04-10 H.J. Lu <hongjiu.lu (a] intel.com>
2713 1.7 christos
2714 1.7 christos PR ld/pr15228
2715 1.7 christos PR ld/pr17709
2716 1.7 christos * elf-bfd.h (elf_backend_data): Add extern_protected_data.
2717 1.7 christos * elf32-i386.c (elf_backend_extern_protected_data): New.
2718 1.7 christos Defined to 1.
2719 1.7 christos * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise.
2720 1.7 christos * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on
2721 1.7 christos copy relocs against protected symbols if extern_protected_data
2722 1.7 christos is true.
2723 1.7 christos (_bfd_elf_symbol_refs_local_p): Don't return true on protected
2724 1.7 christos non-function symbols if extern_protected_data is true.
2725 1.7 christos * elfxx-target.h (elf_backend_extern_protected_data): New.
2726 1.7 christos Default to 0.
2727 1.7 christos (elfNN_bed): Initialize extern_protected_data with
2728 1.7 christos elf_backend_extern_protected_data.
2729 1.7 christos
2730 1.7 christos 2015-04-10 H.J. Lu <hongjiu.lu (a] intel.com>
2731 1.7 christos
2732 1.7 christos * compress.c (bfd_compress_section_contents): Replace bfd_malloc
2733 1.7 christos and free with bfd_alloc and bfd_release on compressed buffer.
2734 1.7 christos Release buffer if compressed section isn't smaller.
2735 1.7 christos
2736 1.7 christos 2015-04-10 Alan Modra <amodra (a] gmail.com>
2737 1.7 christos
2738 1.7 christos PR ld/18222
2739 1.7 christos * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't report an error
2740 1.7 christos on adding a protected visibility variable to .dynbss.
2741 1.7 christos
2742 1.7 christos 2015-04-10 Alan Modra <amodra (a] gmail.com>
2743 1.7 christos
2744 1.7 christos Revert 2015-03-05 H.J. Lu <hongjiu.lu (a] intel.com>
2745 1.7 christos PR ld/pr15228
2746 1.7 christos PR ld/pr17709
2747 1.7 christos * elf-bfd.h (elf_backend_data): Delete extern_protected_data.
2748 1.7 christos * elf32-i386.c (elf_backend_extern_protected_data): Delete.
2749 1.7 christos * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise.
2750 1.7 christos * elflink.c (_bfd_elf_adjust_dynamic_copy): Remove
2751 1.7 christos extern_protected_data test.
2752 1.7 christos (_bfd_elf_symbol_refs_local_p): Likewise.
2753 1.7 christos * elfxx-target.h (elf_backend_extern_protected_data): Delete.
2754 1.7 christos (elfNN_bed): Delete elf_backend_extern_protected_data init.
2755 1.7 christos
2756 1.7 christos 2015-04-09 H.J. Lu <hongjiu.lu (a] intel.com>
2757 1.7 christos
2758 1.7 christos * compress.c (bfd_compress_section_contents): Update comments.
2759 1.7 christos (bfd_init_section_decompress_status): Likewise.
2760 1.7 christos (bfd_init_section_compress_status): Likewise.
2761 1.7 christos
2762 1.7 christos 2015-04-09 H.J. Lu <hongjiu.lu (a] intel.com>
2763 1.7 christos
2764 1.7 christos * elfxx-target.h (TARGET_BIG_SYM): Add BFD_COMPRESS_GABI to
2765 1.7 christos object_flags.
2766 1.7 christos (TARGET_LITTLE_SYM): Likewise.
2767 1.7 christos
2768 1.7 christos 2015-04-09 Max Filippov <jcmvbkbc (a] gmail.com>
2769 1.7 christos
2770 1.7 christos * elf32-xtensa.c (splay-tree.h): include header.
2771 1.7 christos (text_action_struct): drop next pointer.
2772 1.7 christos (text_action_list_struct): drop head pointer, add count and
2773 1.7 christos tree fields.
2774 1.7 christos (find_fill_action): instead of linear search in text_action_list
2775 1.7 christos search in the tree.
2776 1.7 christos (text_action_compare, action_first, action_next): new functions.
2777 1.7 christos (text_action_add, text_action_add_literal): instead of linear
2778 1.7 christos search and insertion insert new node into the tree.
2779 1.7 christos (removed_by_actions): pass additional parameter: action_list,
2780 1.7 christos use it to traverse the tree.
2781 1.7 christos (offset_with_removed_text): pass additional action_list parameter
2782 1.7 christos to removed_by_actions.
2783 1.7 christos (map_action_fn_context): new typedef.
2784 1.7 christos (map_action_fn_context_struct): new structure.
2785 1.7 christos (map_action_fn): new function.
2786 1.7 christos (map_removal_by_action): use splay_tree_foreach to build map.
2787 1.7 christos (find_insn_action): replace linear search in text_action_list
2788 1.7 christos with series of splay_tree_lookups.
2789 1.7 christos (print_action, print_action_list_fn): new functions.
2790 1.7 christos (print_action_list): use splay_tree_foreach.
2791 1.7 christos (init_xtensa_relax_info): drop action_list.head initialization.
2792 1.7 christos Initialize the tree.
2793 1.7 christos (compute_text_actions): use non-zero action_list_count instead of
2794 1.7 christos non-NULL action list.
2795 1.7 christos (xlate_map_context): new typedef.
2796 1.7 christos (xlate_map_context_struct): new structure.
2797 1.7 christos (xlate_map_fn): new function.
2798 1.7 christos (build_xlate_map): use splay_tree_foreach to build map.
2799 1.7 christos (action_remove_bytes_fn): new function.
2800 1.7 christos (relax_section): use zero action_list_count instead of NULL
2801 1.7 christos action list. Use splay_tree_foreach to count final section size.
2802 1.7 christos Drop unused variable 'removed'.
2803 1.7 christos
2804 1.7 christos 2015-04-09 Max Filippov <jcmvbkbc (a] gmail.com>
2805 1.7 christos
2806 1.7 christos * elf32-xtensa.c (removed_literal_map_entry): new typedef.
2807 1.7 christos (removed_literal_map_entry_struct): new structure.
2808 1.7 christos (removed_literal_list_struct): add new fields: n_map and map.
2809 1.7 christos (map_removed_literal, removed_literal_compare): new functions.
2810 1.7 christos (find_removed_literal): build index array for literals ordered
2811 1.7 christos by VMA, use binary search to find removed literal.
2812 1.7 christos
2813 1.7 christos 2015-04-09 Max Filippov <jcmvbkbc (a] gmail.com>
2814 1.7 christos
2815 1.7 christos * elf32-xtensa.c (removal_by_action_entry_struct,
2816 1.7 christos removal_by_action_map_struct): new structures.
2817 1.7 christos (removal_by_action_entry, removal_by_action_map): new typedefs.
2818 1.7 christos (text_action_list_struct): add new field: map.
2819 1.7 christos (map_removal_by_action, removed_by_actions_map,
2820 1.7 christos offset_with_removed_text_map): new functions.
2821 1.7 christos (relax_section): replace offset_with_removed_text with
2822 1.7 christos offset_with_removed_text_map.
2823 1.7 christos (translate_reloc, relax_property_section, relax_section_symbols):
2824 1.7 christos replace removed_by_actions with removed_by_actions_map.
2825 1.7 christos
2826 1.7 christos 2015-04-09 Max Filippov <jcmvbkbc (a] gmail.com>
2827 1.7 christos
2828 1.7 christos * elf32-xtensa.c (reloc_range_list, reloc_range_list_entry,
2829 1.7 christos reloc_range): new typedef.
2830 1.7 christos (reloc_range_list_struct, reloc_range_list_entry_struct,
2831 1.7 christos reloc_range_struct): new structures.
2832 1.7 christos (reloc_range_compare, build_reloc_ranges,
2833 1.7 christos reloc_range_list_append, reloc_range_list_remove,
2834 1.7 christos reloc_range_list_update_range, free_reloc_range_list): new
2835 1.7 christos functions.
2836 1.7 christos (compute_text_actions): precompute relocation opcodes before the
2837 1.7 christos loop. Add relevant_relocs variable, initialize it before the
2838 1.7 christos loop, pass it to the check_section_ebb_pcrels_fit.
2839 1.7 christos (check_section_ebb_pcrels_fit): add new parameter:
2840 1.7 christos relevant_relocs. Update address range in the relevant_relocs if
2841 1.7 christos it's non-NULL and iterate only over relevant relocations.
2842 1.7 christos
2843 1.7 christos 2015-04-09 Nick Clifton <nickc (a] redhat.com>
2844 1.7 christos
2845 1.7 christos * elf32-rx.c (describe_flags): Report the settings of the string
2846 1.7 christos insn using bits.
2847 1.7 christos (rx_elf_merge_private_bfd_data): Handle merging of the string insn
2848 1.7 christos using bits.
2849 1.7 christos
2850 1.7 christos 2015-04-08 H.J. Lu <hongjiu.lu (a] intel.com>
2851 1.7 christos
2852 1.7 christos * compress.c (bfd_compress_section_contents): Work around a GCC
2853 1.7 christos uninitialized warning bug fixed in GCC 4.7.
2854 1.7 christos
2855 1.7 christos 2015-04-08 H.J. Lu <hongjiu.lu (a] intel.com>
2856 1.7 christos
2857 1.7 christos * archive.c (_bfd_get_elt_at_filepos): Also copy BFD_COMPRESS_GABI
2858 1.7 christos bit.
2859 1.7 christos * bfd.c (bfd::flags): Increase size to 18 bits.
2860 1.7 christos (BFD_COMPRESS_GABI): New.
2861 1.7 christos (BFD_FLAGS_SAVED): Add BFD_COMPRESS_GABI.
2862 1.7 christos (BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
2863 1.7 christos (bfd_update_compression_header): New fuction.
2864 1.7 christos (bfd_check_compression_header): Likewise.
2865 1.7 christos (bfd_get_compression_header_size): Likewise.
2866 1.7 christos (bfd_is_section_compressed_with_header): Likewise.
2867 1.7 christos * compress.c (MAX_COMPRESSION_HEADER_SIZE): New.
2868 1.7 christos (bfd_compress_section_contents): Return the uncompressed size if
2869 1.7 christos the full section contents is compressed successfully. Support
2870 1.7 christos converting from/to .zdebug* sections.
2871 1.7 christos (bfd_get_full_section_contents): Call
2872 1.7 christos bfd_get_compression_header_size to get compression header size.
2873 1.7 christos (bfd_is_section_compressed): Renamed to ...
2874 1.7 christos (bfd_is_section_compressed_with_header): This. Add a pointer
2875 1.7 christos argument to return compression header size.
2876 1.7 christos (bfd_is_section_compressed): Use it.
2877 1.7 christos (bfd_init_section_decompress_status): Call
2878 1.7 christos bfd_get_compression_header_size to get compression header size.
2879 1.7 christos Return FALSE if uncompressed section size is 0.
2880 1.7 christos * elf.c (_bfd_elf_make_section_from_shdr): Support converting
2881 1.7 christos from/to .zdebug* sections.
2882 1.7 christos * bfd-in2.h: Regenerated.
2883 1.5 christos
2884 1.7 christos 2015-04-07 Alan Modra <amodra (a] gmail.com>
2885 1.5 christos
2886 1.7 christos * elf.c (_bfd_elf_get_reloc_section): Allow for .got.plt being
2887 1.7 christos mapped to output .got section.
2888 1.1 skrll
2889 1.7 christos 2015-04-07 Alan Modra <amodra (a] gmail.com>
2890 1.1 skrll
2891 1.7 christos * elf32-ppc.c (struct ppc_elf_link_hash_entry): Add has_addr16_ha
2892 1.7 christos and has_addr16_lo. Make has_sda_refs a bitfield.
2893 1.7 christos (ppc_elf_check_relocs): Set new flags.
2894 1.7 christos (ppc_elf_link_hash_table_create): Update default_params.
2895 1.7 christos (ppc_elf_adjust_dynamic_symbol): Clear protected_def in cases
2896 1.7 christos where we won't be making .dynbss entries or editing code. Set
2897 1.7 christos params->pic_fixup when we'll edit code for protected var access.
2898 1.7 christos (allocate_dynrelocs): Allocate got entry for edited code and
2899 1.7 christos discard dyn_relocs.
2900 1.7 christos (struct ppc_elf_relax_info): Add picfixup_size.
2901 1.7 christos (ppc_elf_relax_section): Rename struct one_fixup to struct
2902 1.7 christos one_branch_fixup. Rename fixups to branch_fixups. Size space for
2903 1.7 christos pic fixups.
2904 1.7 christos (ppc_elf_relocate_section): Edit non-PIC accessing protected
2905 1.7 christos visibility variables to PIC. Don't emit dyn_relocs for code
2906 1.7 christos we've edited.
2907 1.7 christos * elf32-ppc.h (struct ppc_elf_params): Add pic_fixup.
2908 1.1 skrll
2909 1.7 christos 2015-04-07 Nick Clifton <nickc (a] redhat.com>
2910 1.1 skrll
2911 1.7 christos * elf.c (_bfd_elf_is_local_label_name): Treat assembler generated
2912 1.7 christos local labels as local.
2913 1.1 skrll
2914 1.7 christos 2015-04-06 H.J. Lu <hongjiu.lu (a] intel.com>
2915 1.3 christos
2916 1.7 christos * compress.c (get_uncompressed_size): Removed.
2917 1.7 christos (bfd_compress_section_contents): Use bfd_putb64 to write
2918 1.7 christos uncompressed section size.
2919 1.7 christos (bfd_init_section_decompress_status): Replace
2920 1.7 christos get_uncompressed_size with bfd_getb64.
2921 1.3 christos
2922 1.7 christos 2015-04-04 H.J. Lu <hongjiu.lu (a] intel.com>
2923 1.1 skrll
2924 1.7 christos * elf.c (_bfd_elf_init_private_section_data): Also preserve the
2925 1.7 christos SHF_COMPRESSED bit if not decompress.
2926 1.1 skrll
2927 1.7 christos 2015-04-04 H.J. Lu <hongjiu.lu (a] intel.com>
2928 1.1 skrll
2929 1.7 christos * compress.c (get_uncompressed_size): New. Extracted from ...
2930 1.7 christos (bfd_init_section_decompress_status): This. Use it.
2931 1.3 christos
2932 1.7 christos 2015-04-02 Andrew Turner <andrew (a] freebsd.org>
2933 1.3 christos
2934 1.7 christos * config.bfd: Add aarch64-*-freebsd* target triple.
2935 1.3 christos
2936 1.7 christos 2015-04-02 H.J. Lu <hongjiu.lu (a] intel.com>
2937 1.3 christos
2938 1.7 christos * configure: Regenerated.
2939 1.3 christos
2940 1.7 christos 2015-04-01 Tejas Belagod <tejas.belagod (a] arm.com>
2941 1.7 christos Marcus Shawcroft <marcus.shawcroft (a] arm.com>
2942 1.7 christos Jiong Wang <jiong.wang (a] arm.com>
2943 1.1 skrll
2944 1.7 christos * bfd-in.h (bfd_elf64_aarch64_set_options)
2945 1.7 christos (bfd_elf32_aarch64_set_options): Add parameter.
2946 1.7 christos * bfd-in2.h: Regenerated.
2947 1.7 christos * elfnn-aarch64.c (aarch64_erratum_843419_stub)
2948 1.7 christos (_bfd_aarch64_adrp_p, _bfd_aarch64_erratum_843419_sequence_p)
2949 1.7 christos (_bfd_aarch64_erratum_843419_stub_name)
2950 1.7 christos (_bfd_aarch64_erratum_843419_fixup)
2951 1.7 christos (_bfd_aarch64_erratum_843419_scan)
2952 1.7 christos (_bfd_aarch64_erratum_843419_branch_to_stub)
2953 1.7 christos (_bfd_aarch64_erratum_843419_p): Define.
2954 1.7 christos (enum elf_aarch64_stub_type): Define
2955 1.7 christos aarch64_stub_erratum_843419_veneer.
2956 1.7 christos (struct elf_aarch64_stub_hash_entry): Define adrp_offset.
2957 1.7 christos (struct elf_aarch64_link_hash_table): Define fix_erratum_843419
2958 1.7 christos and fix_erratum_843419_adr.
2959 1.7 christos (stub_hash_newfunc): Initialize adrp_offset;
2960 1.7 christos (_bfd_aarch64_add_stub_entry_after): Define.
2961 1.7 christos (aarch64_map_one_stub, aarch64_build_one_stub)
2962 1.7 christos (aarch64_size_one_stub): Handle
2963 1.7 christos aarch64_stub_erratum_843419_veneer.
2964 1.7 christos (_bfd_aarch64_resize_stubs): Round stub section size.
2965 1.7 christos (elfNN_aarch64_size_stubs): Add scan for 843419.
2966 1.7 christos (bfd_elfNN_aarch64_set_options): Add parameter. Initialize
2967 1.7 christos fix_erratum_843419 and fix_erratum_843419_adr.
2968 1.7 christos (struct erratum_835769_branch_to_stub_data): Add info.
2969 1.7 christos (elfNN_aarch64_write_section): Initialise info. Handle 843419.
2970 1.7 christos (elfNN_aarch64_size_dynamic_sections): Handle 843419.
2971 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_decode_adrp_imm)
2972 1.7 christos (_bfd_aarch64_sign_extend): Define.
2973 1.7 christos (reencode_adr_imm): Remove static. Rename to:
2974 1.7 christos (_bfd_aarch64_reencode_adr_imm): Define.
2975 1.7 christos (_bfd_aarch64_elf_put_addend): Call _bfd_aarch64_reencode_adr_imm.
2976 1.7 christos * elfxx-aarch64.h (AARCH64_ADR_OP, AARCH64_ADRP_OP)
2977 1.7 christos (AARCH64_ADRP_OP_MASK, _bfd_aarch64_sign_extend)
2978 1.7 christos (_bfd_aarch64_decode_adrp_imm, _bfd_aarch64_reencode_adr_imm):
2979 1.7 christos Define.
2980 1.3 christos
2981 1.7 christos 2015-04-01 H.J. Lu <hongjiu.lu (a] intel.com>
2982 1.3 christos
2983 1.5 christos * configure: Regenerated.
2984 1.1 skrll
2985 1.7 christos 2015-03-31 Ed Schouten <ed (a] nuxi.nl>
2986 1.1 skrll
2987 1.7 christos * config.bfd (targ_defvec): Set to x86_64_elf64_cloudabi_vec
2988 1.7 christos for x86_64-*-cloudabi*.
2989 1.7 christos * configure.ac: Handle x86_64_elf64_cloudabi_vec.
2990 1.7 christos * configure: Regenerated.
2991 1.7 christos * elf64-x86-64.c (TARGET_LITTLE_SYM): Support x86_64-*-cloudabi*.
2992 1.7 christos (TARGET_LITTLE_NAME): Likewise.
2993 1.7 christos (ELF_OSABI): Likewise.
2994 1.7 christos (elf64_bed): Likewise.
2995 1.7 christos * targets.c (x86_64_elf64_cloudabi_vec): New.
2996 1.7 christos (_bfd_target_vector): Add x86_64_elf64_cloudabi_vec.
2997 1.3 christos
2998 1.7 christos 2015-03-31 H.J. Lu <hongjiu.lu (a] intel.com>
2999 1.3 christos
3000 1.7 christos * configure.ac: Revert the AM_ZLIB change.
3001 1.7 christos * Makefile.in: Regenerated.
3002 1.7 christos * aclocal.m4: Likewise.
3003 1.7 christos * configure: Likewise.
3004 1.7 christos * doc/Makefile.in: Likewise.
3005 1.7 christos
3006 1.7 christos 2015-03-30 H.J. Lu <hongjiu.lu (a] intel.com>
3007 1.7 christos
3008 1.7 christos PR ld/18169
3009 1.7 christos * elf-bfd.h (elf_backend_data): Add get_reloc_section.
3010 1.7 christos (_bfd_elf_get_reloc_section): New.
3011 1.7 christos * elf.c (_bfd_elf_get_reloc_section): Likewise.
3012 1.7 christos (assign_section_numbers): Call get_reloc_section to look up the
3013 1.7 christos section the relocs apply.
3014 1.7 christos * elfxx-target.h (elf_backend_get_reloc_section): Likewise.
3015 1.7 christos (elfNN_bed): Initialize get_reloc_section with
3016 1.7 christos elf_backend_get_reloc_section.
3017 1.7 christos
3018 1.7 christos 2015-03-29 H.J. Lu <hongjiu.lu (a] intel.com>
3019 1.7 christos
3020 1.7 christos * Makefile.am (ZLIB): New.
3021 1.7 christos (ZLIBINC): Likewise.
3022 1.7 christos (AM_CFLAGS): Add $(ZLIBINC).
3023 1.7 christos (libbfd_la_LIBADD): Add $(ZLIB).
3024 1.7 christos * compress.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
3025 1.7 christos (decompress_contents): Don't check HAVE_ZLIB_H.
3026 1.7 christos (bfd_compress_section_contents): Likewise.
3027 1.7 christos (bfd_get_full_section_contents): Likewise.
3028 1.7 christos (bfd_init_section_decompress_status): Likewise.
3029 1.7 christos (bfd_init_section_compress_status): Likewise.
3030 1.7 christos * configure.ac (AM_ZLIB): Removed.
3031 1.7 christos (zlibdir): New. AC_SUBST.
3032 1.7 christos (zlibinc): Likewise.
3033 1.7 christos Add --with-system-zlib.
3034 1.5 christos * Makefile.in: Regenerated.
3035 1.7 christos * acinclude.m4: Likewise.
3036 1.7 christos * config.in: Likewise.
3037 1.7 christos * configure: Likewise.
3038 1.7 christos * doc/Makefile.in: Likewise.
3039 1.7 christos
3040 1.7 christos 2015-03-27 Alan Modra <amodra (a] gmail.com>
3041 1.7 christos
3042 1.7 christos PR ld/15228
3043 1.7 christos PR ld/18167
3044 1.7 christos * elflink.c (elf_merge_st_other): Add "sec" parameter. Don't set
3045 1.7 christos protected_def when symbol section is read-only. Adjust all calls.
3046 1.7 christos * elf-bfd.h (struct elf_link_hash_entry): Update protected_def comment.
3047 1.7 christos
3048 1.7 christos 2015-03-26 Tejas Belagod <tejas.belagod (a] arm.com>
3049 1.7 christos
3050 1.7 christos * elfnn-aarch64.c (aarch64_build_one_stub): Replace the call to generic
3051 1.7 christos _bfd_final_link_relocate with aarch64_relocate.
3052 1.7 christos
3053 1.7 christos 2015-03-26 H.J. Lu <hongjiu.lu (a] intel.com>
3054 1.7 christos
3055 1.7 christos PR ld/18160
3056 1.7 christos * elflink.c (elf_gc_sweep): Skip if relocation is incompatible.
3057 1.7 christos (bfd_elf_gc_sections): Likewise.
3058 1.7 christos
3059 1.7 christos 2015-03-25 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3060 1.7 christos
3061 1.7 christos * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Adjust stub section
3062 1.7 christos size for initial branch.
3063 1.7 christos (elfNN_aarch64_build_stubs): Write initial branch.
3064 1.7 christos _bfd_aarch64_decode_(elfNN_aarch64_output_arch_local_syms): Write
3065 1.7 christos mapping symbol on initial branch.
3066 1.7 christos
3067 1.7 christos 2015-03-25 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3068 1.7 christos
3069 1.7 christos * elfnn-aarch64.c (_bfd_aarch64_erratum_835769_scan):
3070 1.7 christos Update erratum count.
3071 1.7 christos
3072 1.7 christos 2015-03-25 Senthil Kumar Selvaraj <senthil_kumar.selvaraj (a] atmel.com>
3073 1.7 christos
3074 1.7 christos * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't break on
3075 1.7 christos first matching debug section.
3076 1.7 christos
3077 1.7 christos 2015-03-24 H.J. Lu <hongjiu.lu (a] intel.com>
3078 1.7 christos
3079 1.7 christos PR gas/18087
3080 1.7 christos * compress.c (bfd_compress_section_contents): Don't write the
3081 1.7 christos zlib header and set contents as well as compress_status if
3082 1.7 christos compression didn't make the section smaller.
3083 1.7 christos (bfd_init_section_compress_status): Don't check compression
3084 1.7 christos size here.
3085 1.7 christos
3086 1.7 christos 2015-03-24 Nick Clifton <nickc (a] redhat.com>
3087 1.7 christos
3088 1.7 christos PR binutils/17512
3089 1.7 christos * coffgen.c (coff_get_normalized_symtab): Fix test for out of
3090 1.7 christos range auxillary sections.
3091 1.7 christos
3092 1.7 christos 2015-03-24 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3093 1.7 christos
3094 1.7 christos * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor
3095 1.7 christos code into:
3096 1.7 christos (_bfd_aarch64_get_stub_for_link_section): Define.
3097 1.7 christos
3098 1.7 christos 2015-03-24 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3099 1.7 christos
3100 1.7 christos * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Adjust
3101 1.7 christos update of section_group[].stub_sec.
3102 1.7 christos
3103 1.7 christos 2015-03-24 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3104 1.7 christos
3105 1.7 christos * elfnn-aarch64.c (struct aarch64_erratum_835769_fix) Remove.
3106 1.7 christos (erratum_835769_scan) Drop fix_table_size_p and fixes_p arguments.
3107 1.7 christos Delete fixes, fix_table_size and associated code. Call
3108 1.7 christos _bfd_aarch64_add_stub_entry_in_group. Rename to...
3109 1.7 christos (bfd_aarch64_erratum_835769_scan): Define.
3110 1.7 christos (elfNN_aarch64_size_stubs): Delete erratum_835769_fixes,
3111 1.7 christos erratum_835769_fix_table_size, i and associated code. Relocate
3112 1.7 christos call to _bfd_aarch64_erratum_835769_scan. Delete adhoc stub size
3113 1.7 christos correction. Delete construction of stub entry from
3114 1.7 christos erratum_835769_fixes array.
3115 1.7 christos
3116 1.7 christos 2015-03-24 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3117 1.7 christos
3118 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Use
3119 1.7 christos _bfd_aarch64_add_stub_entry_in_group.
3120 1.7 christos
3121 1.7 christos 2015-03-24 Alan Modra <amodra (a] gmail.com>
3122 1.7 christos
3123 1.7 christos * elf64-ppc.c (ppc64_elf_relocate_section): Report overflow to
3124 1.7 christos stubs, even those for undefined weak symbols. Otherwise, don't
3125 1.7 christos report relocation overflow on branches to undefined strong
3126 1.7 christos symbols. Fix memory leak.
3127 1.7 christos * elf32-ppc.c (ppc_elf_relocate_section): Don't report relocation
3128 1.7 christos overflow on branches to undefined strong symbols.
3129 1.7 christos
3130 1.7 christos 2015-03-23 Keith Seitz <keiths (a] redhat.com>
3131 1.7 christos
3132 1.7 christos * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Add
3133 1.7 christos missing ';'.
3134 1.7 christos
3135 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3136 1.7 christos
3137 1.7 christos * elfnn-aarch64.c (erratum_835769_scan): Factor stub name
3138 1.7 christos construction into...
3139 1.7 christos (_bfd_aarch64_erratum_835769_stub_name): Define.
3140 1.7 christos
3141 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3142 1.7 christos
3143 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Factor out
3144 1.7 christos stub resize code into...
3145 1.7 christos (bfd_aarch64_resize_stubs): Define.
3146 1.7 christos
3147 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3148 1.7 christos
3149 1.7 christos * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Factor stub
3150 1.7 christos creation code into...
3151 1.7 christos (bfd_aarch64_create_stub_section): Define.
3152 1.3 christos
3153 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3154 1.3 christos
3155 1.7 christos * elfnn-aarch64.c (_bfd_aarch64_create_or_find_stub_sec): Rename
3156 1.7 christos from elf_aarch64_create_or_find_stub_sec.
3157 1.7 christos (_bfd_aarch64_add_stub_entry_in_group): Rename from
3158 1.7 christos elfNN_aarch64_add_stub. Call
3159 1.7 christos _bfd_aarch64_create_or_find_stub_sec.
3160 1.7 christos (elfNN_aarch64_size_stubs, elfNN_aarch64_size_stubs): Call
3161 1.7 christos _bfd_aarch64_add_stub_entry_in_group.
3162 1.3 christos
3163 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3164 1.3 christos
3165 1.7 christos * elfnn-aarch64.c (erratum_835769_scan) Add comment. Reverse
3166 1.7 christos sense of boolean return.
3167 1.7 christos (elfNN_aarch64_size_stubs): Adjust for above.
3168 1.3 christos
3169 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3170 1.3 christos
3171 1.7 christos * elfnn-aarch64.c (elf_aarch64_create_or_find_stub_sec):
3172 1.7 christos Remove unused parameter.
3173 1.7 christos (elfNN_aarch64_size_stubs): Adjust for above.
3174 1.1 skrll
3175 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3176 1.1 skrll
3177 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_size_stubs): Remove bfd_indx.
3178 1.1 skrll
3179 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3180 1.1 skrll
3181 1.7 christos * elfnn-aarch64.c (aarch64_erratum_835769_fixes)
3182 1.7 christos (num_aarch64_erratum_835769_fixes): Remove.
3183 1.7 christos (elfNN_aarch64_size_stubs): Remove assignments to above.
3184 1.1 skrll
3185 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3186 1.1 skrll
3187 1.7 christos * elfnn-aarch64.c (aarch64_mem_op_p): Update comment. Rename rtn
3188 1.7 christos to rt2.
3189 1.7 christos (aarch64_erratum_seqeunce): Rename rtn to rt2.
3190 1.1 skrll
3191 1.7 christos 2015-03-23 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3192 1.1 skrll
3193 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_write_section): Adjust layout.
3194 1.1 skrll
3195 1.7 christos 2015-03-19 Nick Clifton <nickc (a] redhat.com>
3196 1.1 skrll
3197 1.7 christos * elf32-rl78.c (rl78_cpu_name): New function. Prints the name of
3198 1.7 christos the RL78 core based upon the flags.
3199 1.7 christos (rl78_elf_merge_private_bfd_data): Handle merging of G13 and G14
3200 1.7 christos flags.
3201 1.7 christos (rl78_elf_print_private_bfd_data): Use rl78_cpu_name.
3202 1.7 christos (elf32_rl78_machine): Always return bfd_mach_rl78.
3203 1.1 skrll
3204 1.7 christos 2015-03-19 Nick Clifton <nickc (a] redhat.com>
3205 1.1 skrll
3206 1.7 christos PR 18078
3207 1.7 christos * compress.c (bfd_compress_section_contents): Do not define this
3208 1.7 christos function if it is not used.
3209 1.5 christos
3210 1.7 christos 2015-03-18 H.J. Lu <hongjiu.lu (a] intel.com>
3211 1.5 christos
3212 1.7 christos * compress.c (bfd_compress_section_contents): Make it static.
3213 1.8 christos * bfd-in2.h: Regenerated.
3214 1.5 christos
3215 1.7 christos 2015-03-18 Eric Youngdale <eyoungdale (a] ptc.com>
3216 1.5 christos
3217 1.7 christos PR ld/16598
3218 1.7 christos * peicode.h (pe_ILF_build_a_bfd): Add support for creating relocs
3219 1.7 christos suitable for the AMD64.
3220 1.5 christos
3221 1.7 christos 2015-03-18 Jon Turney <jon.turney (a] dronecode.org.uk>
3222 1.7 christos Nick Clifton <nickc (a] redhat.com>
3223 1.5 christos
3224 1.7 christos PR binutils/18087
3225 1.7 christos * coffgen.c (make_a_section_from_file): Only prepend a z to a
3226 1.7 christos debug section's name if the section was actually compressed.
3227 1.7 christos * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
3228 1.7 christos * compress.c (bfd_init_section_compress_status): Do not compress
3229 1.7 christos the section if doing so would make it bigger. In such cases leave
3230 1.7 christos the section alone and return COMPRESS_SECTION_NONE.
3231 1.7 christos
3232 1.7 christos 2015-03-17 Alan Modra <amodra (a] gmail.com>
3233 1.7 christos
3234 1.7 christos * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return count of 0
3235 1.7 christos on nothing to do, before malloc of returned symbol array.
3236 1.1 skrll
3237 1.7 christos 2015-03-16 Nick Clifton <nickc (a] redhat.com>
3238 1.1 skrll
3239 1.7 christos * elf32-rx.c (elf32_rx_relax_delete_bytes): If the relocs are not
3240 1.7 christos stored in the elf_section_data structure then load them as
3241 1.7 christos necessary.
3242 1.1 skrll
3243 1.7 christos 2015-03-14 Andreas Krebbel <krebbel (a] linux.vnet.ibm.com>
3244 1.1 skrll
3245 1.7 christos * elf-s390-common.c (elf_s390_elf_sort_relocs_p): Don't sort
3246 1.7 christos relocs against code sections.
3247 1.7 christos * elf32-s390.c: Define elf_backend_sort_relocs_p.
3248 1.7 christos * elf64-s390.c: Likewise.
3249 1.1 skrll
3250 1.7 christos 2015-03-11 Alan Modra <amodra (a] gmail.com>
3251 1.1 skrll
3252 1.7 christos * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Examine stubs in
3253 1.7 christos reverse order. Account for larger size of __tls_get_addr_opt stub.
3254 1.1 skrll
3255 1.7 christos 2015-03-10 Yuri Gribov <y.gribov (a] samsung.arm>
3256 1.1 skrll
3257 1.7 christos PR ld/16572
3258 1.7 christos * elf32-arm.c (elf32_arm_final_link_relocate): Remove support for
3259 1.7 christos ELF_ARM_HASENTRY.
3260 1.7 christos (elf32_arm_print_private_bfd_data): Likewise.
3261 1.7 christos
3262 1.7 christos 2015-03-06 Nick Clifton <nickc (a] redhat.com>
3263 1.7 christos
3264 1.7 christos PR binutils/17765
3265 1.7 christos * elflink.c (put_value): Like previous delta, but for the 32-bit
3266 1.7 christos case.
3267 1.7 christos
3268 1.7 christos 2015-03-05 Nick Clifton <nickc (a] redhat.com>
3269 1.7 christos
3270 1.7 christos PR binutils/17765
3271 1.7 christos * elflink.c (put_value): Avoid using an undefined shift
3272 1.7 christos operation.
3273 1.7 christos
3274 1.7 christos 2015-03-05 H.J. Lu <hongjiu.lu (a] intel.com>
3275 1.7 christos
3276 1.7 christos PR ld/pr15228
3277 1.7 christos PR ld/pr17709
3278 1.7 christos * elf-bfd.h (elf_backend_data): Add extern_protected_data.
3279 1.7 christos * elf32-i386.c (elf_backend_extern_protected_data): New.
3280 1.7 christos Defined to 1.
3281 1.7 christos * elf64-x86-64.c (elf_backend_extern_protected_data): Likewise.
3282 1.7 christos * elflink.c (_bfd_elf_adjust_dynamic_copy): Don't error on
3283 1.7 christos copy relocs against protected symbols if extern_protected_data
3284 1.7 christos is true.
3285 1.7 christos (_bfd_elf_symbol_refs_local_p): Don't return true on protected
3286 1.7 christos non-function symbols if extern_protected_data is true.
3287 1.7 christos * elfxx-target.h (elf_backend_extern_protected_data): New.
3288 1.7 christos Default to 0.
3289 1.7 christos (elfNN_bed): Initialize extern_protected_data with
3290 1.7 christos elf_backend_extern_protected_data.
3291 1.7 christos
3292 1.7 christos 2015-03-05 Nick Clifton <nickc (a] redhat.com>
3293 1.7 christos
3294 1.7 christos PR binutils/18025
3295 1.7 christos * coffgen.c (coff_find_nearest_line_with_names): If the dwarf2
3296 1.7 christos lookup fails, check for an address bias in the dwarf info, and if
3297 1.7 christos one exists, retry the lookup with the biased value.
3298 1.7 christos * dwarf2.c (_bfd_dwarf2_find_symbol_bias): New function.
3299 1.7 christos Determines if a bias exists bewteen the addresses of functions
3300 1.7 christos based on DWARF information vs symbol table information.
3301 1.7 christos * libbfd-in.h (_bfd_dwarf2_find_symbol_bias): Prototype.
3302 1.5 christos * libbfd.h: Regenerate.
3303 1.1 skrll
3304 1.7 christos 2015-03-04 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3305 1.7 christos
3306 1.7 christos * elfxx-aarch64.c (decode_add_imm, decode_movw_imm)
3307 1.7 christos (decode_tst_branch_ofs_14, decode_ld_lit_ofs_19)
3308 1.7 christos (decode_cond_branch_ofs_19, decode_branch_ofs_26): Remove.
3309 1.7 christos
3310 1.7 christos 2015-03-04 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3311 1.3 christos
3312 1.7 christos * elfnn-aarch64.c (aarch64_build_one_stub): Call abort.
3313 1.7 christos (aarch64_size_one_stub): Likewise.
3314 1.7 christos (aarch64_map_one_stub): Likewise.
3315 1.1 skrll
3316 1.7 christos 2015-03-04 Andreas Arnez <arnez (a] linux.vnet.ibm.com>
3317 1.1 skrll
3318 1.7 christos * cpu-s390.c (N): New macro.
3319 1.7 christos (bfd_s390_31_arch): New. Define only if default target word size
3320 1.7 christos is 64 bits. Otherwise define...
3321 1.7 christos (bfd_390_64_arch): ...this. Make static.
3322 1.7 christos (bfd_s390_arch): Define according to the default target word size.
3323 1.7 christos Let the 'next' field point to the alternate arch.
3324 1.3 christos
3325 1.7 christos 2015-03-04 Richard Sandiford <richard.sandiford (a] arm.com>
3326 1.3 christos
3327 1.7 christos PR gas/17843
3328 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Expect
3329 1.7 christos R_AARCH64_TLSLE_MOVW_TPREL_G0_NC and R_AARCH64_TLSLE_MOVW_TPREL_G1_NC
3330 1.7 christos to be used with MOVK rather than MOVZ.
3331 1.3 christos
3332 1.7 christos 2015-03-03 DJ Delorie <dj (a] redhat.com>
3333 1.3 christos
3334 1.7 christos * elf32-rl78.c (rl78_elf_relax_section): Only relax ADDR16's if
3335 1.7 christos there's a symbol.
3336 1.3 christos
3337 1.7 christos 2015-02-28 Alan Modra <amodra (a] gmail.com>
3338 1.1 skrll
3339 1.7 christos * elf32-ppc.c (ppc_elf_tls_setup): Set no_tls_get_addr_opt if
3340 1.7 christos not PLT_NEW.
3341 1.1 skrll
3342 1.7 christos 2015-02-27 H.J. Lu <hongjiu.lu (a] intel.com>
3343 1.1 skrll
3344 1.7 christos * elf32-i386.c (need_convert_mov_to_lea): New.
3345 1.7 christos (elf_i386_check_relocs): Set need_convert_mov_to_lea if needed.
3346 1.7 christos (elf_i386_convert_mov_to_lea): Return TRUE if
3347 1.7 christos need_convert_mov_to_lea is unset.
3348 1.7 christos * elf64-x86-64.c (need_convert_mov_to_lea): New.
3349 1.7 christos (elf_x86_64_check_relocs): Set need_convert_mov_to_lea if needed.
3350 1.7 christos (elf_x86_64_convert_mov_to_lea): Return TRUE if
3351 1.7 christos need_convert_mov_to_lea is unset.
3352 1.1 skrll
3353 1.7 christos 2015-02-27 Nick Clifton <nickc (a] redhat.com>
3354 1.1 skrll
3355 1.7 christos PR binutils/17910
3356 1.7 christos * coffgen.c (_bfd_coff_internal_syment_name): Only check for
3357 1.7 christos string length overflow when the string table length is actually
3358 1.7 christos set.
3359 1.1 skrll
3360 1.7 christos 2015-02-27 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3361 1.1 skrll
3362 1.8 christos * bfd-in2.h: Regenerate.
3363 1.8 christos * libbfd.h: Regenerate.
3364 1.1 skrll
3365 1.7 christos 2015-02-26 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3366 1.1 skrll
3367 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): Fix
3368 1.7 christos TLSDESC_LD_PREL19 field width and masks.
3369 1.7 christos (aarch64_tls_transition_without_check)
3370 1.7 christos (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
3371 1.7 christos (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
3372 1.7 christos (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
3373 1.7 christos BFD_RELOC_AARCH64_TLSDESC_LD_PREL19.
3374 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
3375 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
3376 1.1 skrll
3377 1.7 christos 2015-02-26 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3378 1.1 skrll
3379 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLSDESC_RELOC): Reorder R_TYPE
3380 1.7 christos tests.
3381 1.7 christos (aarch64_tls_transition_without_check)
3382 1.7 christos (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
3383 1.7 christos (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
3384 1.7 christos (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
3385 1.7 christos BFD_RELOC_AARCH64_TLSDESC_ADR_PREL21.
3386 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
3387 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
3388 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define.
3389 1.1 skrll
3390 1.7 christos 2015-02-26 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3391 1.3 christos
3392 1.7 christos * elfnn-aarch64.c (IS_AARCH64_TLS_RELOC)
3393 1.7 christos (elfNN_aarch64_howto_table, aarch64_tls_transition_without_check)
3394 1.7 christos (aarch64_reloc_got_type, elfNN_aarch64_final_link_relocate)
3395 1.7 christos (elfNN_aarch64_tls_relax, elfNN_aarch64_relocate_section)
3396 1.7 christos (elfNN_aarch64_gc_sweep_hook, elfNN_aarch64_check_relocs): Handle
3397 1.7 christos BFD_RELOC_AARCH64_TLSGD_ADR_PREL21.
3398 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
3399 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
3400 1.7 christos * reloc.c (BFD_RELOC_AARCH64_TLSGD_ADR_PREL21): Define.
3401 1.3 christos
3402 1.7 christos 2015-02-26 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3403 1.3 christos
3404 1.7 christos * elfnn-aarch64.c: (TLSIE_LD_GOTTREL_PREL19): Fix HOWTO bit field width.
3405 1.7 christos (aarch64_tls_transition_without_check, aarch64_reloc_got_type)
3406 1.7 christos (elfNN_aarch64_final_link_relocate, elfNN_aarch64_tls_relax)
3407 1.7 christos (elfNN_aarch64_relocate_section, elfNN_aarch64_gc_sweep_hook)
3408 1.7 christos (elfNN_aarch64_check_relocs): Handle
3409 1.7 christos BFD_RELOC_AARCH64_TLSIE_LD_GOTTPREL_PREL19.
3410 1.3 christos
3411 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend)
3412 1.7 christos (_bfd_aarch64_elf_resolve_relocation): Likewise.
3413 1.3 christos
3414 1.7 christos 2015-02-26 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3415 1.3 christos
3416 1.7 christos * elfnn-aarch64.c: (TLSDESC_CALL): Fix HOWTO bit field width.
3417 1.3 christos
3418 1.7 christos 2015-02-26 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3419 1.3 christos
3420 1.7 christos * elfnn-aarch64.c (TLSLE_MOVW_TPREL_G2)
3421 1.7 christos (TLSLE_MOVW_TPREL_G1, TLSLE_MOVW_TPREL_G1_NC)
3422 1.7 christos (TLSLE_MOVW_TPREL_G0, TLSLE_MOVW_TPREL_G0_NC): Fix bit field
3423 1.7 christos width.
3424 1.3 christos
3425 1.7 christos 2015-02-26 Marcus Shawcroft <marcus.shawcroft (a] arm.com>
3426 1.3 christos
3427 1.7 christos * elfnn-aarch64.c: (TLSIE_MOVW_GOTTPREL_G0_NC): Fix HOWTO bit
3428 1.7 christos field width.
3429 1.3 christos
3430 1.7 christos 2015-02-26 Nick Clifton <nickc (a] redhat.com>
3431 1.3 christos
3432 1.7 christos PR binutils/17512
3433 1.7 christos * coffcode.h (coff_compute_section_file_positions): Report
3434 1.7 christos negative page sizes.
3435 1.7 christos * elf.c (elf_fake_sections): Handle excessive alignmment powers.
3436 1.7 christos (assign_file_positions_for_non_load_sections): Replace assertion
3437 1.7 christos with an error message.
3438 1.7 christos (rewrite_elf_program_header): Handle excessive segment
3439 1.7 christos alignments.
3440 1.7 christos * mach-o.c (bfd_mach_o_read_section_32): Likewise.
3441 1.7 christos (bfd_mach_o_read_section_64): Likewise.
3442 1.7 christos * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Use %B to
3443 1.7 christos print a bfd name, not %A.
3444 1.3 christos
3445 1.7 christos 2015-02-26 Alan Modra <amodra (a] gmail.com>
3446 1.3 christos
3447 1.7 christos * elf64-ppc.c (plt_stub_size, build_plt_stub): Don't build
3448 1.7 christos thread-safe stubs for iplt.
3449 1.7 christos (build_tls_get_addr_stub): Restore r2 immediately after call.
3450 1.1 skrll
3451 1.7 christos 2015-02-26 Terry Guo <terry.guo (a] arm.com>
3452 1.1 skrll
3453 1.7 christos * elf32-arm.c (elf32_arm_merge_eabi_attributes): Update how we
3454 1.7 christos merge Tag_ABI_HardFP_use.
3455 1.1 skrll
3456 1.7 christos 2015-02-26 Alan Modra <amodra (a] gmail.com>
3457 1.1 skrll
3458 1.7 christos * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Heed -z nocopyreloc.
3459 1.7 christos Use text relocs rather than giving an error on trying to use
3460 1.7 christos .dynbss for protected shared lib vars.
3461 1.7 christos * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
3462 1.3 christos
3463 1.7 christos 2015-02-25 Andrew Burgess <andrew.burgess (a] embecosm.com>
3464 1.1 skrll
3465 1.7 christos * elf32-avr.c (struct elf_avr_section_data): New structure.
3466 1.7 christos (struct avr_relax_info): New structure.
3467 1.7 christos (elf_avr_new_section_hook): New function.
3468 1.7 christos (struct elf_avr_section_data): Add relax_info.
3469 1.7 christos (get_avr_relax_info): New function.
3470 1.7 christos (init_avr_relax_info): New function.
3471 1.7 christos (elf32_avr_relax_delete_bytes): Find next property record before
3472 1.7 christos deleting bytes. When deleting don't move bytes beyond the next
3473 1.7 christos property record.
3474 1.7 christos (avr_elf32_assign_records_to_section): New function.
3475 1.7 christos (avr_property_record_compare): New function.
3476 1.7 christos (avr_load_all_property_sections): New function.
3477 1.7 christos (elf32_avr_relax_section): Load property data. After relaxing the
3478 1.7 christos section, move any .align directives that have enough deleted bytes
3479 1.7 christos before them.
3480 1.7 christos (bfd_elf32_new_section_hook): Define.
3481 1.7 christos
3482 1.7 christos 2015-02-25 Andrew Burgess <andrew.burgess (a] embecosm.com>
3483 1.7 christos
3484 1.7 christos * elf32-avr.h (struct avr_property_header): New strucure.
3485 1.7 christos (avr_elf32_load_property_records): Declare.
3486 1.7 christos (avr_elf32_property_record_name): Declare.
3487 1.7 christos * elf32-avr.c: Add bfd_stdint.h include.
3488 1.7 christos (retrieve_local_syms): New function.
3489 1.7 christos (get_elf_r_symndx_section): New function.
3490 1.7 christos (get_elf_r_symndx_offset): New function.
3491 1.7 christos (internal_reloc_compare): New function.
3492 1.7 christos (struct avr_find_section_data): New structure.
3493 1.7 christos (avr_is_section_for_address): New function.
3494 1.7 christos (avr_find_section_for_address): New function.
3495 1.7 christos (avr_elf32_load_records_from_section): New function.
3496 1.7 christos (avr_elf32_load_property_records): New function.
3497 1.7 christos (avr_elf32_property_record_name): New function.
3498 1.7 christos
3499 1.7 christos 2015-02-25 Andrew Burgess <andrew.burgess (a] embecosm.com>
3500 1.7 christos
3501 1.7 christos * elf32-avr.h (AVR_PROPERTY_RECORD_SECTION_NAME): Define.
3502 1.7 christos (AVR_PROPERTY_RECORDS_VERSION): Define.
3503 1.7 christos (AVR_PROPERTY_SECTION_HEADER_SIZE): Define.
3504 1.7 christos (struct avr_property_record): New structure.
3505 1.7 christos
3506 1.7 christos 2015-02-24 Nick Clifton <nickc (a] redhat.com>
3507 1.7 christos
3508 1.7 christos * elf32-v850.c (v850_set_note): New function. Creates a Renesas
3509 1.7 christos style note entry.
3510 1.7 christos (v850_elf_make_note_section): New function. Creates a note
3511 1.7 christos section.
3512 1.7 christos (v850_elf_create_sections): New function. Create a note section
3513 1.7 christos if one is not already present.
3514 1.7 christos (v850_elf_set_note): New function. Adds a note to a bfd.
3515 1.7 christos (v850_elf_copy_private_bfd_data): New function. Copies V850
3516 1.7 christos notes.
3517 1.7 christos (v850_elf_merge_notes): New function. Merges V850 notes.
3518 1.7 christos (print_v850_note): New function. Displays a V850 note.
3519 1.7 christos (v850_elf_print_notes): New function. Displays all notes attached
3520 1.7 christos to a bfd.
3521 1.7 christos (v850_elf_merge_private_bfd_data): Call v850_elf_merge_notes.
3522 1.7 christos (v850_elf_print_private_bfd_data): Call v850_elf_print_notes.
3523 1.7 christos (v850_elf_fake_sections): Set the type of the V850 note section.
3524 1.7 christos * bfd-in.h (v850_elf_create_sections): Add prototype.
3525 1.7 christos (v850_elf_set_note): Add prototype.
3526 1.7 christos * bfd-in2.h: Regenerate.
3527 1.1 skrll
3528 1.7 christos 2015-02-24 Nick Clifton <nickc (a] redhat.com>
3529 1.1 skrll
3530 1.7 christos * configure.ac (AC_CHECK_HEADERS): Add wctype.h.
3531 1.7 christos * configure: Regenerate.
3532 1.7 christos * config.in: Regenerate.
3533 1.7 christos * peXXigen.c: Include wctype.h if HAVE_WCTYPE_H is defined.
3534 1.7 christos (u16_mbtowc): Use wint_t types if HAVE_WCTYPE_H is defined.
3535 1.7 christos (rsrc_cmp): Use towlower instead of wcsncasecmp if HAVE_WCTYPE_H
3536 1.7 christos is defined.
3537 1.1 skrll
3538 1.7 christos 2015-02-24 Nick Clifton <nickc (a] redhat.com>
3539 1.1 skrll
3540 1.7 christos * pdp11.c (set_section_contents): Pad the .text and .data sections
3541 1.7 christos to their aligned sizes.
3542 1.1 skrll
3543 1.7 christos 2015-02-23 Yoshinori Sato <ysato (a] users.sourceforge.jp>
3544 1.1 skrll
3545 1.7 christos * config.bfd: Add h8300-*-linux.
3546 1.7 christos * configure.ac: Add h8300_elf32_linux_vec.
3547 1.7 christos * configure: Regenerate.
3548 1.7 christos * elf32-h8300.c: Likewise.
3549 1.7 christos * targets.c(_bfd_target_vector): Likewise.
3550 1.1 skrll
3551 1.7 christos 2015-02-23 Nick Clifton <nickc (a] redhat.com>
3552 1.1 skrll
3553 1.7 christos PR 17914
3554 1.7 christos * cpu-w65.c: Correct typos in license notice.
3555 1.1 skrll
3556 1.7 christos PR 17940
3557 1.7 christos * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust debug
3558 1.7 christos symbols at end of sections. Adjust function sizes.
3559 1.7 christos
3560 1.7 christos 2015-02-20 Andreas Arnez <arnez (a] linux.vnet.ibm.com>
3561 1.7 christos
3562 1.7 christos * elf-bfd.h (elfcore_write_s390_vxrs_low): Add prototype.
3563 1.7 christos (elfcore_write_s390_vxrs_high): Likewise.
3564 1.7 christos * elf.c (elfcore_grok_s390_vxrs_low): New function.
3565 1.7 christos (elfcore_grok_s390_vxrs_high): New function.
3566 1.7 christos (elfcore_grok_note): Call them.
3567 1.7 christos (elfcore_write_s390_vxrs_low): New function.
3568 1.7 christos (elfcore_write_s390_vxrs_high): New function.
3569 1.7 christos (elfcore_write_register_note): Call them.
3570 1.7 christos
3571 1.7 christos 2015-02-19 Branko Drevensek <branko.drevensek (a] gmail.com>
3572 1.7 christos
3573 1.7 christos PR 17995
3574 1.7 christos * verilog.c (verilog_write_record): Correct buffer size.
3575 1.7 christos
3576 1.7 christos 2015-02-19 Alan Modra <amodra (a] gmail.com>
3577 1.7 christos
3578 1.7 christos * elflink.c (_bfd_elf_define_linkage_sym): Set 'bed' earlier.
3579 1.7 christos
3580 1.7 christos 2015-02-19 Alan Modra <amodra (a] gmail.com>
3581 1.7 christos
3582 1.7 christos PR ld/4317
3583 1.7 christos * elflink.c (elf_link_input_bfd): Drop undefined local syms.
3584 1.7 christos (elf_link_output_extsym): Drop local and global undefined syms.
3585 1.7 christos Tidy. Expand comment.
3586 1.7 christos
3587 1.7 christos 2015-02-17 Alan Modra <amodra (a] gmail.com>
3588 1.7 christos
3589 1.7 christos PR ld/17975
3590 1.7 christos * elflink.c (struct elf_outext_info): Remove need_second_pass
3591 1.7 christos and second_pass.
3592 1.7 christos (elf_link_output_extsym): Delete code handling second forced
3593 1.7 christos local pass. Move code emitting NULL STT_FILE symbol later, so
3594 1.7 christos that it can be omitted if forced local is stripped. Don't
3595 1.7 christos emit the NULL STT_FILE if no file symbols have been output.
3596 1.7 christos (bfd_elf_final_link): Remove second forced local pass.
3597 1.7 christos * elf32-ppc.c (add_stub_sym): Set linker_def on linker syms.
3598 1.7 christos (ppc_elf_size_dynamic_sections): Likewise.
3599 1.7 christos * elf64-ppc.c (ppc_build_one_stub): Likewise.
3600 1.7 christos (build_global_entry_stubs): Likewise.
3601 1.7 christos (ppc64_elf_build_stubs): Likewise.
3602 1.7 christos
3603 1.7 christos 2015-02-16 H.J. Lu <hongjiu.lu (a] intel.com>
3604 1.7 christos
3605 1.7 christos PR ld/17975
3606 1.7 christos * elflink.c (elf_link_output_extsym): Only check filesym_count
3607 1.7 christos when outputting a NULL FILE symbol. Set second_pass_sym to
3608 1.7 christos h->forced_local && !h->root.linker_def.
3609 1.7 christos
3610 1.7 christos 2015-02-15 H.J. Lu <hongjiu.lu (a] intel.com>
3611 1.7 christos
3612 1.7 christos * elf32-i386.c (elf_i386_always_size_sections): Set root.linker_def
3613 1.7 christos on _TLS_MODULE_BASE_.
3614 1.7 christos * elf64-x86-64.c (elf_x86_64_always_size_sections): Likewise.
3615 1.7 christos
3616 1.7 christos 2015-02-15 Alan Modra <amodra (a] gmail.com>
3617 1.7 christos
3618 1.7 christos * dwarf2.c (read_rangelist): Correct buffer overflow check
3619 1.7 christos Whitespace throughout file.
3620 1.7 christos
3621 1.7 christos 2015-02-14 Alan Modra <amodra (a] gmail.com>
3622 1.7 christos
3623 1.7 christos PR ld/17973
3624 1.7 christos * bfd.c (struct bfd): Add lto_output.
3625 1.7 christos * linker.c (_bfd_handle_already_linked): Explicitly test for
3626 1.7 christos objects added by the lto plugin.
3627 1.7 christos * opncls.c (_bfd_new_bfd_contained_in): Copy lto_output and
3628 1.7 christos no_export flags from archive.
3629 1.7 christos * archive.c (open_nested_file): New function, setting lto_output
3630 1.7 christos and no_export, extracted from..
3631 1.7 christos (find_nested_archive): ..here. Flip params. Rename from
3632 1.7 christos _bfd_find_nested_archive.
3633 1.7 christos (_bfd_get_elt_at_filepos): Correct var typo. Use open_nested_file.
3634 1.7 christos (_bfd_look_for_bfd_in_cache): Copy no_export.
3635 1.7 christos * elflink.c (elf_link_add_object_symbols): Remove now unnecessary
3636 1.7 christos my_archive->no_export test.
3637 1.7 christos (elf_link_input_bfd): Drop existing lto_output STT_FILE syms.
3638 1.7 christos Don't use the file name when adding lto_output STT_FILE sym.
3639 1.7 christos * bfd-in2.h: Regenerate.
3640 1.3 christos
3641 1.7 christos 2015-02-13 Alan Modra <amodra (a] gmail.com>
3642 1.3 christos
3643 1.7 christos PR binutils/17512
3644 1.7 christos * elf64-ppc.c (opd_entry_value): Tighten offset check. Remove
3645 1.7 christos now redundant assert.
3646 1.7 christos
3647 1.7 christos 2015-02-12 Nick Clifton <nickc (a] redhat.com>
3648 1.7 christos
3649 1.7 christos PR binutils/17512
3650 1.7 christos * dwarf.c (read_1_byte, read_1_signed_byte, read_2_bytes)
3651 1.7 christos (read_4_bytes, read_8_bytes, read_n_bytes, read_string)
3652 1.7 christos (read_indirect_string, read_alt_indirect_string)
3653 1.7 christos (read_alt_indirect_ref, read_address, read_abbrevs)
3654 1.7 christos (read_attribute_value, read_attribute, decode_line_info)
3655 1.7 christos (find_abstract_instance_name, read_rangelist)
3656 1.7 christos (scan_unit_for_symbols, parse_comp_unit)
3657 1.7 christos (_bfd_dwarf2_find_nearest_line): Harden DWARF reading code. Pass
3658 1.7 christos end pointers to reading functions and check for offsets taking
3659 1.7 christos pointers out of range. Replace calls to read_*_leb128 with calls
3660 1.7 christos to safe_read_leb128.
3661 1.7 christos
3662 1.7 christos (* elf64-ppc.c (opd_entry_value): Add a check for an overlarge
3663 1.7 christos offset.
3664 1.7 christos * syms.c (_bfd_stab_section_find_nearest_line): Add checks for
3665 1.7 christos computed file_name address being before the start of the string
3666 1.7 christos table.
3667 1.7 christos
3668 1.7 christos 2015-02-11 H.J. Lu <hongjiu.lu (a] intel.com>
3669 1.7 christos
3670 1.7 christos PR ld/17878
3671 1.7 christos * bfd.c (bfd_plugin_format): New.
3672 1.7 christos (bfd): Add plugin_format and plugin_dummy_bfd.
3673 1.7 christos * plugin.c (try_load_plugin): Take a pointer to bfd_boolean
3674 1.7 christos argument to return TRUE if any plugin is found. Set plugin_format.
3675 1.7 christos (has_plugin): New.
3676 1.7 christos (bfd_plugin_target_p): New.
3677 1.7 christos (bfd_plugin_specified_p): Likewise.
3678 1.7 christos (bfd_plugin_target_p): Likewise.
3679 1.7 christos (register_ld_plugin_object_p): Likewise.
3680 1.7 christos (bfd_plugin_set_plugin): Set has_plugin.
3681 1.7 christos (load_plugin): Cache try_load_plugin result.
3682 1.7 christos (bfd_plugin_object_p): Try ld_plugin_object_p first. Check
3683 1.7 christos plugin_format.
3684 1.7 christos * plugin.h (bfd_plugin_target_p): New.
3685 1.7 christos (bfd_plugin_specified_p): Likewise.
3686 1.7 christos (register_ld_plugin_object_p): Likewise.
3687 1.7 christos * bfd-in2.h: Regenerated.
3688 1.1 skrll
3689 1.7 christos 2015-02-11 Pedro Alves <palves (a] redhat.com>
3690 1.1 skrll
3691 1.7 christos * libbfd-in.h [__cplusplus]: Open extern "C" scope.
3692 1.7 christos * libcoff-in.h [__cplusplus]: Open extern "C" scope.
3693 1.7 christos * libbfd.h: Regenerate.
3694 1.7 christos * libcoff.h: Regenerate.
3695 1.3 christos
3696 1.7 christos * elf-bfd.h [__cplusplus]: Wrap in extern "C".
3697 1.7 christos * mach-o.h [__cplusplus]: Wrap in extern "C".
3698 1.7 christos * som.h [__cplusplus]: Wrap in extern "C".
3699 1.7 christos
3700 1.7 christos 2015-02-10 Nick Clifton <nickc (a] redhat.com>
3701 1.7 christos
3702 1.7 christos PR binutils/17512
3703 1.7 christos * coffcode.h (styp_to_sec_flags): Use an unsigned long type to
3704 1.7 christos hold the flag bits.
3705 1.7 christos * peXXigen.c (pe_print_reloc): Use unsigned types to hold the
3706 1.7 christos size and number of relocs.
3707 1.7 christos (pe_print_debugdata): Use a 32-bit aligned buffer to store the
3708 1.7 christos codeview record.
3709 1.7 christos * versados.c (process_otr): Check the esdid value before using it
3710 1.7 christos to access the EDATA.
3711 1.7 christos
3712 1.7 christos 2015-02-09 Ed Maste <emaste (a] freebsd.org>
3713 1.7 christos
3714 1.7 christos * elf32-i386.c (elf_i386_get_plt_sym_val): Avoid incrementing
3715 1.7 christos uninitialized and unused variable.
3716 1.7 christos * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
3717 1.3 christos
3718 1.7 christos 2015-02-09 Alan Modra <amodra (a] gmail.com>
3719 1.3 christos
3720 1.7 christos * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault on NULL
3721 1.7 christos tls_sec.
3722 1.7 christos * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
3723 1.7 christos * elflink.c (elf_link_output_extsym): Don't assert on NULL tls_sec.
3724 1.3 christos
3725 1.7 christos 2015-02-09 Alan Modra <amodra (a] gmail.com>
3726 1.1 skrll
3727 1.7 christos * elflink.c: Whitespace, formatting fixes.
3728 1.7 christos (elf_link_input_bfd): Clarify comment.
3729 1.7 christos (elf_link_output_extsym): Exclude symbols in linker created
3730 1.7 christos sections when testing for plugin symbols.
3731 1.7 christos
3732 1.7 christos 2015-02-07 H.J. Lu <hongjiu.lu (a] intel.com>
3733 1.7 christos
3734 1.7 christos PR ld/17935
3735 1.7 christos * elf32-i386.c (elf_i386_readonly_dynrelocs): Also issue a
3736 1.7 christos warning for relocation in readonly section for -z text.
3737 1.7 christos (elf_i386_size_dynamic_sections): Likewise.
3738 1.7 christos * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
3739 1.7 christos (elf_x86_64_size_dynamic_sections): Likewise.
3740 1.7 christos
3741 1.7 christos 2015-02-06 H.J. Lu <hongjiu.lu (a] intel.com>
3742 1.7 christos
3743 1.7 christos PR ld/12365
3744 1.7 christos PR ld/14272
3745 1.7 christos * elflink.c (_bfd_elf_fix_symbol_flags): Revert the last change.
3746 1.7 christos (elf_link_input_bfd): Mark the plugin symbol undefined if it is
3747 1.7 christos referenced from a non-IR file.
3748 1.7 christos
3749 1.7 christos 2015-02-06 Nick Clifton <nickc (a] redhat.com>
3750 1.7 christos
3751 1.7 christos PR binutils/17512
3752 1.7 christos * peXXigen.c (rsrc_print_resource_entries): Add range check for
3753 1.7 christos addresses that wrap around the address space.
3754 1.7 christos (rsrc_parse_entry): Likewise.
3755 1.7 christos
3756 1.7 christos 2015-02-03 H.J. Lu <hongjiu.lu (a] intel.com>
3757 1.7 christos
3758 1.7 christos PR ld/12365
3759 1.7 christos PR ld/14272
3760 1.7 christos * elflink.c (_bfd_elf_fix_symbol_flags): Mark the plugin symbol
3761 1.7 christos undefined if it is referenced from a non-IR file.
3762 1.7 christos
3763 1.7 christos 2015-02-03 Nick Clifton <nickc (a] redhat.com>
3764 1.7 christos
3765 1.7 christos PR binutils/17512
3766 1.7 christos * ecoff.c: Use bfd_alloc2 to allocate space for structure arrays.
3767 1.7 christos (_bfd_ecoff_slurp_symbol_table): Check for a negative symbol
3768 1.7 christos index or an out of range fdr index.
3769 1.7 christos * elf-m10300.c (mn10300_info_to_howto): Fix typo in error message.
3770 1.7 christos * elf32-arc.c (arc_info_to_howto_rel): Likewise.
3771 1.7 christos * elf32-avr.c (avr_info_to_howto_rela): Likewise.
3772 1.7 christos * elf32-cr16.c (elf_cr16_info_to_howto): Likewise.
3773 1.7 christos * elf32-cr16c.c (elf_cr16c_info_to_howto_rel): Likewise.
3774 1.7 christos * elf32-cris.c (cris_info_to_howto_rela): Likewise.
3775 1.7 christos * elf32-crx.c (elf_crx_info_to_howto): Likewise.
3776 1.7 christos * elf32-d10v.c (d10v_info_to_howto_rel): Likewise.
3777 1.7 christos * elf32-d30v.c (d30v_info_to_howto_rel): Likewise.
3778 1.7 christos * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise.
3779 1.7 christos * elf32-fr30.c (fr30_info_to_howto_rela): Likewise.
3780 1.7 christos * elf32-frv.c (frv_info_to_howto_rela): Likewise.
3781 1.7 christos * elf32-i370.c (i370_elf_info_to_howto): Likewise.
3782 1.7 christos * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise.
3783 1.7 christos * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise.
3784 1.7 christos * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise.
3785 1.7 christos * elf32-lm32.c (lm32_info_to_howto_rela): Likewise.
3786 1.7 christos * elf32-m32c.c (m32c_info_to_howto_rela): Likewise.
3787 1.7 christos * elf32-m32r.c (m32r_info_to_howto_rel): Likewise.
3788 1.7 christos * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise.
3789 1.7 christos * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise.
3790 1.7 christos * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
3791 1.7 christos * elf32-mep.c (mep_info_to_howto_rela): Likewise.
3792 1.7 christos * elf32-metag.c (metag_info_to_howto_rela): Likewise.
3793 1.7 christos * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
3794 1.7 christos * elf32-moxie.c (moxie_info_to_howto_rela): Likewise.
3795 1.7 christos * elf32-msp430.c (msp430_info_to_howto_rela): Likewise.
3796 1.7 christos * elf32-mt.c (mt_info_to_howto_rela): Likewise.
3797 1.7 christos * elf32-nds32.c (nds32_info_to_howto_rel): Likewise.
3798 1.7 christos * elf32-or1k.c (or1k_info_to_howto_rela): Likewise.
3799 1.7 christos * elf32-pj.c (pj_elf_info_to_howto): Likewise.
3800 1.7 christos * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
3801 1.7 christos * elf32-rl78.c (rl78_info_to_howto_rela): Likewise.
3802 1.7 christos * elf32-rx.c (rx_info_to_howto_rela): Likewise.
3803 1.7 christos * elf32-sh.c (sh_elf_info_to_howto): Likewise.
3804 1.7 christos * elf32-spu.c (spu_elf_info_to_howto): Likewise.
3805 1.7 christos * elf32-v850.c (v850_elf_perform_relocation): Likewise.
3806 1.7 christos * elf32-vax.c (rtype_to_howto): Likewise.
3807 1.7 christos * elf32-visium.c (visium_info_to_howto_rela): Likewise.
3808 1.7 christos * elf32-xgate.c (xgate_info_to_howto_rel): Likewise.
3809 1.7 christos * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise.
3810 1.7 christos * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
3811 1.7 christos * elf64-mmix.c (mmix_info_to_howto_rela): Likewise.
3812 1.7 christos * mach-o.c: Use bfd_alloc2 to allocate space for structure arrays.
3813 1.7 christos (bfd_mach_o_canonicalize_one_reloc): Fix check on out
3814 1.7 christos of range symbol indicies.
3815 1.7 christos (bfd_mach_o_canonicalize_relocs): Check for out of range alloc.
3816 1.7 christos (bfd_mach_o_canonicalize_dynamic_reloc): Likewise.
3817 1.7 christos (bfd_mach_o_build_dysymtab): Likewise.
3818 1.7 christos (bfd_mach_o_write_symtab_content): Set the string table size to
3819 1.7 christos zero upon error.
3820 1.7 christos (bfd_mach_o_read_symtab_symbols): Reset the nsyms value if the
3821 1.7 christos read fails.
3822 1.7 christos * peXXigen.c (pe_print_edata): Check for numeric overflow in edt
3823 1.7 christos fields.
3824 1.7 christos * tekhex.c (first_phase): Check for src pointer reaching end of
3825 1.7 christos buffer.
3826 1.7 christos
3827 1.7 christos 2015-02-03 Will Newton <will.newton (a] linaro.org>
3828 1.7 christos
3829 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol):
3830 1.7 christos Set st_value to zero for undefined symbols if the reference
3831 1.7 christos is weak or pointer_equality_needed is FALSE.
3832 1.7 christos
3833 1.7 christos * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Improve
3834 1.8 christos comment discussing why we clear st_value for some symbols.
3835 1.7 christos
3836 1.7 christos 2015-02-02 Kuan-Lin Chen <kuanlinchentw (a] gmail.com>
3837 1.7 christos
3838 1.7 christos * elf32-nds32.c (nds32_get_section_contents): Add one more argument.
3839 1.7 christos (nds32_elf_relocate_section): Do not relocate R_NDS32_LONGJUMP7.
3840 1.7 christos
3841 1.7 christos 2015-01-29 Alan Modra <amodra (a] gmail.com>
3842 1.7 christos
3843 1.7 christos * elf64-ppc.c (ppc64_elf_relocate_section): Correct GOT_TLSLD
3844 1.7 christos optimization. Tidy mask for GOT_TLSGD optimization.
3845 1.7 christos * elf32-ppc.c (ppc_elf_relocate_section): Likewise. Correct
3846 1.7 christos location of nop zapping high insn too.
3847 1.7 christos
3848 1.7 christos 2015-01-28 Alan Modra <amodra (a] gmail.com>
3849 1.7 christos
3850 1.7 christos * elf64-ppc.h (struct ppc64_elf_params): Add "object_in_toc".
3851 1.7 christos * elf64-ppc.c (ppc64_elf_add_symbol_hook): Assume that global symbols
3852 1.7 christos in .toc indicate xlc compiled code that might require a rw .toc.
3853 1.7 christos
3854 1.7 christos 2015-01-28 James Bowman <james.bowman (a] ftdichip.com>
3855 1.7 christos
3856 1.7 christos * Makefile.am: Add FT32 files.
3857 1.7 christos * archures.c (enum bfd_architecture): Add bfd_arch_ft32.
3858 1.7 christos (bfd_mach_ft32): Define.
3859 1.7 christos (bfd_ft32_arch): Declare.
3860 1.7 christos (bfd_archures_list): Add bfd_ft32_arch.
3861 1.7 christos * config.bfd: Handle FT32.
3862 1.7 christos * configure.ac: Likewise.
3863 1.7 christos * cpu-ft32.c: New file.
3864 1.7 christos * elf32-ft32.c: New file.
3865 1.7 christos * reloc.c (BFD_RELOC_FT32_10, BFD_RELOC_FT32_20, BFD_RELOC_FT32_17,
3866 1.7 christos BFD_RELOC_FT32_18): Define.
3867 1.7 christos * targets.c (_bfd_target_vector): Add ft32_elf32_vec.
3868 1.7 christos * bfd-in2.h: Regenerate.
3869 1.7 christos * libbfd.h: Regenerate.
3870 1.7 christos * Makefile.in: Regenerate.
3871 1.7 christos * configure: Regenerate.
3872 1.7 christos * po/SRC-POTFILES.in: Regenerate.
3873 1.1 skrll
3874 1.7 christos 2015-01-27 Nick Clifton <nickc (a] redhat.com>
3875 1.1 skrll
3876 1.7 christos PR binutils/17512
3877 1.7 christos * pdp11.c (aout_get_external_symbols): Return false if there are
3878 1.7 christos no symbols.
3879 1.7 christos
3880 1.7 christos * dwarf2.c (concat_filename): Check for an empty directory table.
3881 1.7 christos (scan_unit_for_symbols): Check for reading off the end of the
3882 1.7 christos unit.
3883 1.7 christos (parse_comp_unit): Check for a DW_AT_comp_dir attribute with a
3884 1.7 christos non-string form.
3885 1.7 christos * elf64-ppc.c (opd_entry_value): Fail if there are no relocs
3886 1.7 christos available.
3887 1.7 christos
3888 1.7 christos 2015-01-26 Kuan-Lin Chen <kuanlinchentw (a] gmail.com>
3889 1.7 christos
3890 1.7 christos * elf32-nds32.c (nds32_elf_pick_relax): Fix again setting.
3891 1.7 christos
3892 1.7 christos 2015-01-22 DJ Delorie <dj (a] redhat.com>
3893 1.7 christos
3894 1.7 christos * elf32-m32c.c (m32c_apply_reloc_24): New.
3895 1.7 christos (m32c_elf_howto_table): Use it for R_M32C_24.
3896 1.7 christos (m32c_elf_relocate_section): Handle R_M32C_24 specially.
3897 1.7 christos
3898 1.7 christos 2015-01-22 Nick Clifton <nickc (a] redhat.com>
3899 1.7 christos
3900 1.7 christos PR binutils/17512
3901 1.7 christos * coffcode.h (handle_COMDAT): When searching for the section
3902 1.7 christos symbol, make sure that there is space left in the symbol table.
3903 1.7 christos * vms-alpha.c (_bfd_vms_slurp_ehdr): Add range checks.
3904 1.7 christos
3905 1.7 christos 2015-01-21 Nick Clifton <nickc (a] redhat.com>
3906 1.7 christos
3907 1.7 christos PR binutils/17512
3908 1.7 christos * coffcode.h (coff_set_arch_mach_hook): Check return value from
3909 1.7 christos bfd_malloc.
3910 1.7 christos (coff_slurp_line_table): Return FALSE if the line number
3911 1.7 christos information was corrupt.
3912 1.7 christos (coff_slurp_symbol_table): Return FALSE if the symbol information
3913 1.7 christos was corrupt.
3914 1.7 christos * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Always
3915 1.7 christos initialise the fields of the dyld_info structure.
3916 1.7 christos (bfd_mach_o_build_exec_seg_command): Replace assertion with an
3917 1.7 christos error message and a return value.
3918 1.7 christos (bfd_mach_o_layout_commands): Change the function to boolean.
3919 1.7 christos Return FALSE if the function fails.
3920 1.7 christos (bfd_mach_o_build_commands): Fail if bfd_mach_o_layout_commands
3921 1.7 christos fails.
3922 1.7 christos (bfd_mach_o_read_command): Fail if an unrecognised command is
3923 1.7 christos encountered.
3924 1.7 christos * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Set bfd_error if the
3925 1.7 christos read fails.
3926 1.7 christos (slurp_symtab): Check the return from bfd_malloc.
3927 1.7 christos (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if the copy
3928 1.7 christos encountered an error.
3929 1.7 christos (_bfd_XXi_final_link_postscript): Fail if a section could not be
3930 1.7 christos copied.
3931 1.7 christos * peicode.h (pe_bfd_object_p): Fail if the header could not be
3932 1.7 christos swapped in.
3933 1.7 christos * tekhex.c (first_phase): Fail if the section is too big.
3934 1.7 christos * versados.c (struct esdid): Add content_size field.
3935 1.7 christos (process_otr): Use and check the new field.
3936 1.7 christos (versados_get_section_contents): Check that the section exists and
3937 1.7 christos that the requested data is available.
3938 1.7 christos
3939 1.7 christos 2015-01-20 Chung-Lin Tang <cltang (a] codesourcery.com>
3940 1.7 christos
3941 1.7 christos * elf32-nios2.c (elf_backend_default_execstack): Define as 0.
3942 1.7 christos
3943 1.7 christos 2015-01-20 Alan Modra <amodra (a] gmail.com>
3944 1.7 christos
3945 1.7 christos PR ld/17615
3946 1.7 christos * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Don't drop
3947 1.7 christos ELF_COMMON_DEF syms.
3948 1.7 christos
3949 1.7 christos 2015-01-19 Alan Modra <amodra (a] gmail.com>
3950 1.7 christos
3951 1.7 christos PR ld/17615
3952 1.7 christos * elf-bfd.h (ELF_COMMON_DEF_P): Note that this might be true for
3953 1.7 christos linker script assignments too.
3954 1.7 christos * elflink.c (elf_gc_sweep_symbol): Don't drop ELF_COMMON_DEF syms.
3955 1.7 christos (bfd_elf_gc_mark_dynamic_ref_symbol): Similarly.
3956 1.7 christos
3957 1.7 christos 2015-01-19 Alan Modra <amodra (a] gmail.com>
3958 1.7 christos
3959 1.7 christos * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Correct loop iteration
3960 1.7 christos to allow return of first howto.
3961 1.7 christos * elf32-fr30.c (fr30_reloc_type_lookup): Likewise.
3962 1.7 christos * elf32-m32c.c (m32c_reloc_type_lookup): Likewise.
3963 1.7 christos * elf32-moxie.c (moxie_reloc_type_lookup): Likewise.
3964 1.7 christos * elf32-or1k.c (or1k_reloc_type_lookup): Likewise.
3965 1.7 christos * elf32-rl78.c (rl78_reloc_type_lookup): Likewise.
3966 1.7 christos * elf32-rx.c (rx_reloc_type_lookup): Likewise.
3967 1.7 christos * elf32-tilepro.c (tilepro_reloc_type_lookup): Likewise.
3968 1.7 christos * elf32-xstormy16.c (xstormy16_reloc_type_lookup): Likewise.
3969 1.7 christos * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise.
3970 1.7 christos * elf32-nios2.c (nios2_reloc_map): Add mapping for R_NIOS2_NONE.
3971 1.7 christos * elf32-spu.c (spu_elf_bfd_to_reloc_type): Allow return of R_SPU_NONE.
3972 1.7 christos (spu_elf_reloc_type_lookup): Adjust to suit.
3973 1.7 christos
3974 1.7 christos 2015-01-19 Alan Modra <amodra (a] gmail.com>
3975 1.7 christos
3976 1.7 christos * bfd-in.h (bfd_get_section_limit_octets): New define, extracted from..
3977 1.7 christos (bfd_get_section_limit): ..here.
3978 1.7 christos * reloc.c (bfd_perform_relocation): Correct bfd_reloc_outofrange check.
3979 1.7 christos (bfd_install_relocation, _bfd_final_link_relocate): Add same check here.
3980 1.7 christos * elf32-sh.c (sh_elf_reloc): Correct bfd_reloc_outofrange check.
3981 1.7 christos * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Remove duplicated
3982 1.7 christos bfd_reloc_outofrange check.
3983 1.7 christos * bfd-in2.h: Regenerate.
3984 1.1 skrll
3985 1.7 christos * cpu-ns32k.c (_bfd_do_ns32k_reloc_contents): Return bfd_reloc_ok
3986 1.7 christos on zero size relocs.
3987 1.7 christos * ecoff.c (ecoff_reloc_link_order): Likewise.
3988 1.7 christos * elf32-nds32.c (nds32_relocate_contents): Likewise.
3989 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
3990 1.7 christos
3991 1.7 christos * reloc.c (_bfd_relocate_contents): Don't bomb on zero size relocs.
3992 1.7 christos (_bfd_clear_contents): Likewise.
3993 1.7 christos * elfxx-mips.c (mips_elf_obtain_contents): Likewise.
3994 1.7 christos (mips_elf_perform_relocation): Likewise.
3995 1.7 christos
3996 1.7 christos * aoutx.h (aout_link_reloc_link_order): Allow for NULL return
3997 1.7 christos from malloc on zero size alloc.
3998 1.7 christos * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
3999 1.7 christos * elflink.c (elf_reloc_link_order): Likewise.
4000 1.7 christos * linker.c (_bfd_generic_reloc_link_order): Likewise.
4001 1.7 christos * pdp11.c (aout_link_reloc_link_order): Likewise.
4002 1.7 christos * xcofflink.c (xcoff_reloc_link_order): Likewise.
4003 1.7 christos
4004 1.7 christos * aoutx.h (howto_table_ext): Ensure NONE relocs have size 3,
4005 1.7 christos bitsize 0, and complain_overflow_dont.
4006 1.7 christos * coff-sparc.c (coff_sparc_howto_table): Likewise.
4007 1.7 christos * elf-hppa.h (elf_hppa_howto_table): Likewise.
4008 1.7 christos * elf-m10200.c (elf_mn10200_howto_table): Likewise.
4009 1.7 christos * elf-m10300.c (elf_mn10300_howto_table): Likewise.
4010 1.7 christos * elf32-arc.c (elf_arc_howto_table): Likewise.
4011 1.7 christos * elf32-arm.c (elf32_arm_howto_table_1): Likewise.
4012 1.7 christos * elf32-avr.c (elf_avr_howto_table): Likewise.
4013 1.7 christos * elf32-bfin.c (bfin_howto_table): Likewise.
4014 1.7 christos * elf32-cr16.c (cr16_elf_howto_table): Likewise.
4015 1.7 christos * elf32-cris.c (cris_elf_howto_table): Likewise.
4016 1.7 christos * elf32-crx.c (crx_elf_howto_table): Likewise.
4017 1.7 christos * elf32-d10v.c (elf_d10v_howto_table): Likewise.
4018 1.7 christos * elf32-d30v.c (elf_d30v_howto_table): Likewise.
4019 1.7 christos * elf32-dlx.c (dlx_elf_howto_table): Likewise.
4020 1.7 christos * elf32-epiphany.c (epiphany_elf_howto_table): Likewise.
4021 1.7 christos * elf32-fr30.c (fr30_elf_howto_table): Likewise.
4022 1.7 christos * elf32-frv.c (elf32_frv_howto_table): Likewise.
4023 1.7 christos * elf32-h8300.c (h8_elf_howto_table): Likewise.
4024 1.7 christos * elf32-i370.c (i370_elf_howto_raw): Likewise.
4025 1.7 christos * elf32-i386.c (elf_howto_table): Likewise.
4026 1.7 christos * elf32-i860.c (elf32_i860_howto_table): Likewise.
4027 1.7 christos * elf32-i960.c (elf32_i960_relocate): Likewise.
4028 1.7 christos * elf32-ip2k.c (ip2k_elf_howto_table): Likewise.
4029 1.7 christos * elf32-iq2000.c (iq2000_elf_howto_table): Likewise.
4030 1.7 christos * elf32-lm32.c (lm32_elf_howto_table): Likewise.
4031 1.7 christos * elf32-m32c.c (m32c_elf_howto_table): Likewise.
4032 1.7 christos * elf32-m32r.c (m32r_elf_howto_table): Likewise.
4033 1.7 christos * elf32-m68hc11.c (elf_m68hc11_howto_table): Likewise.
4034 1.7 christos * elf32-m68hc12.c (elf_m68hc11_howto_table): Likewise.
4035 1.7 christos * elf32-m68k.c (howto_table): Likewise.
4036 1.7 christos * elf32-mcore.c (mcore_elf_howto_raw): Likewise.
4037 1.7 christos * elf32-mep.c (mep_elf_howto_table): Likewise.
4038 1.7 christos * elf32-metag.c (elf_metag_howto_table): Likewise.
4039 1.7 christos * elf32-microblaze.c (microblaze_elf_howto_raw): Likewise.
4040 1.7 christos * elf32-mips.c (elf_mips_howto_table_rel): Likewise.
4041 1.7 christos * elf32-moxie.c (moxie_elf_howto_table): Likewise.
4042 1.7 christos * elf32-msp430.c (elf_msp430_howto_table): Likewise.
4043 1.7 christos * elf32-mt.c (mt_elf_howto_table): Likewise.
4044 1.7 christos * elf32-nds32.c (nds32_elf_howto_table): Likewise.
4045 1.7 christos * elf32-nios2.c (elf_nios2_howto_table_rel): Likewise.
4046 1.7 christos * elf32-or1k.c (or1k_elf_howto_table): Likewise.
4047 1.7 christos * elf32-pj.c (pj_elf_howto_table): Likewise.
4048 1.7 christos * elf32-ppc.c (ppc_elf_howto_raw): Likewise.
4049 1.7 christos * elf32-rl78.c (rl78_elf_howto_table): Likewise.
4050 1.7 christos * elf32-rx.c (rx_elf_howto_table): Likewise.
4051 1.7 christos * elf32-s390.c (elf_howto_table): Likewise.
4052 1.7 christos * elf32-score.c (elf32_score_howto_table): Likewise.
4053 1.7 christos * elf32-score7.c (elf32_score_howto_table): Likewise.
4054 1.7 christos * elf32-sh-relocs.h (R_SH_NONE): Likewise.
4055 1.7 christos * elf32-spu.c (elf_howto_table): Likewise.
4056 1.7 christos * elf32-tic6x.c (elf32_tic6x_howto_table): Likewise.
4057 1.7 christos * elf32-tilepro.c (tilepro_elf_howto_table): Likewise.
4058 1.7 christos * elf32-v850.c (v850_elf_howto_table): Likewise.
4059 1.7 christos * elf32-vax.c (howto_table): Likewise.
4060 1.7 christos * elf32-visium.c (visium_elf_howto_table): Likewise.
4061 1.7 christos * elf32-xc16x.c (xc16x_elf_howto_table): Likewise.
4062 1.7 christos * elf32-xgate.c (elf_xgate_howto_table): Likewise.
4063 1.7 christos * elf32-xstormy16.c (xstormy16_elf_howto_table): Likewise.
4064 1.7 christos * elf32-xtensa.c (elf_howto_table): Likewise.
4065 1.7 christos * elf64-alpha.c (elf64_alpha_howto_table): Likewise.
4066 1.7 christos * elf64-mips.c (mips_elf64_howto_table_rel): Likewise.
4067 1.7 christos * elf64-mmix.c (elf_mmix_howto_table): Likewise.
4068 1.7 christos * elf64-ppc.c (ppc64_elf_howto_raw): Likewise.
4069 1.7 christos * elf64-s390.c (elf_howto_table): Likewise.
4070 1.7 christos * elf64-sh64.c (sh_elf64_howto_table): Likewise.
4071 1.7 christos * elf64-x86-64.c (x86_64_elf_howto_table): Likewise.
4072 1.7 christos * elfn32-mips.c (elf_mips_howto_table_rel): Likewise.
4073 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): Likewise.
4074 1.7 christos (elfNN_aarch64_howto_none): Likewise.
4075 1.7 christos * elfxx-ia64.c (ia64_howto_table): Likewise.
4076 1.7 christos * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Likewise.
4077 1.7 christos * elfxx-tilegx.c (tilegx_elf_howto_table): Likewise.
4078 1.7 christos * nlm32-sparc.c (nlm32_sparc_howto_table): Likewise.
4079 1.7 christos
4080 1.7 christos 2015-01-15 H.J. Lu <hongjiu.lu (a] intel.com>
4081 1.7 christos
4082 1.7 christos PR ld/17847
4083 1.7 christos * elf64-x86-64.c (elf_x86_64_relocate_section): Don't complain
4084 1.7 christos about -fPIC if the symbol is undefined when building executable.
4085 1.7 christos
4086 1.7 christos 2015-01-15 Nick Clifton <nickc (a] redhat.com>
4087 1.7 christos
4088 1.7 christos PR binutils/17512
4089 1.7 christos * elf-m10300.c (mn10300_info_to_howto): Replace assertion with an
4090 1.7 christos error message. Never return an invalid howto pointer.
4091 1.7 christos * elf32-cr16.c (cr16_info_to_howto): Likewise.
4092 1.7 christos * elf32-crx.c (elf_crx_info_to_howto): Likewise.
4093 1.7 christos * elf32-i370.c (i370_elf_info_to_howto): Likewise.
4094 1.7 christos * elf32-mcore.c (mcore_elf_info_to_howto): Likewise.
4095 1.7 christos * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise.
4096 1.7 christos * elf32-mips.c (mips_elf32_rtype_to_howto): Likewise.
4097 1.7 christos * elf32-pj.c (pj_elf_info_to_howto): Likewise.
4098 1.7 christos * elf32-ppc.c (ppc_elf_info_to_howto): Likewise.
4099 1.7 christos * elf32-spu.c (spu_elf_info_to_howto): Likewise.
4100 1.7 christos * elf32-v850.c (v850_elf_info_to_howto_rela): Likewise.
4101 1.7 christos * elf32-vax.c (rtype_to_howto): Likewise.
4102 1.7 christos * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise.
4103 1.7 christos * elf64-mips.c (mips_elf64_rtype_to_howto): Likewise.
4104 1.7 christos * elfn32-mips.c (sh_elf_info_to_howto): Likewise.
4105 1.7 christos * elf32-sh.c (sh_elf_info_to_howto): Likewise.
4106 1.7 christos (sh_elf_reloc): Check that the reloc is in range.
4107 1.7 christos * reloc.c (bfd_perform_relocation): Check that the section is big
4108 1.7 christos enough for the entire reloc.
4109 1.7 christos (bfd_generic_get_relocated_section_contents): Report unexpected
4110 1.7 christos return values from perform_reloc.
4111 1.7 christos
4112 1.7 christos 2015-01-15 Nick Clifton <nickc (a] redhat.com>
4113 1.7 christos
4114 1.7 christos * elf32-msp430.c (msp430_elf_relax_section): Skip unhandled
4115 1.7 christos relocs. Include PC-relative adjustment for R_MSP430X_ABS16
4116 1.7 christos relaxation.
4117 1.7 christos
4118 1.7 christos 2015-01-15 Alan Modra <amodra (a] gmail.com>
4119 1.7 christos
4120 1.7 christos * elflink.c (_bfd_elf_link_omit_section_dynsym): Return true for
4121 1.7 christos any output section matching a linker created dynobj section.
4122 1.7 christos
4123 1.7 christos 2015-01-15 Alan Modra <amodra (a] gmail.com>
4124 1.7 christos
4125 1.7 christos PR 17842
4126 1.7 christos * elflink.c (elf_link_output_sym): Assert elf_onesymtab set.
4127 1.7 christos (bfd_elf_final_link): Always create a symbol table when emit_relocs.
4128 1.7 christos Don't assign symtab file position unless symbols will be output.
4129 1.7 christos Merge blocks with condition in common. Don't call
4130 1.7 christos elf_backend_output_arch_local_syms or elf_backend_output_arch_syms
4131 1.7 christos unless other symbols are output. Move assignment of symtab_shndx
4132 1.7 christos file position. Localize variable.
4133 1.7 christos
4134 1.7 christos 2015-01-14 Jiong Wang <jiong.wang (a] arm.com>
4135 1.7 christos
4136 1.7 christos * elf32-arm.c (elf32_arm_final_link_relocate): Reject R_ARM_32/_NOI when
4137 1.7 christos trying to defer them to runtime.
4138 1.7 christos
4139 1.7 christos 2015-01-13 Thomas Preud'homme <thomas.preudhomme (a] arm.com>
4140 1.7 christos
4141 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND
4142 1.7 christos to check if a symbol should be bound symbolically.
4143 1.7 christos
4144 1.7 christos 2015-01-13 Jiong Wang <jiong.wang (a] arm.com>
4145 1.7 christos
4146 1.7 christos * elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check
4147 1.7 christos for TLSLE_MOVW_TPREL_G2.
4148 1.7 christos
4149 1.7 christos 2015-01-13 Jiong Wang <jiong.wang (a] arm.com>
4150 1.7 christos
4151 1.7 christos PR ld/17415
4152 1.7 christos * elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark
4153 1.7 christos R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned.
4154 1.7 christos * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Correct the
4155 1.7 christos bit mask.
4156 1.3 christos
4157 1.7 christos 2015-01-12 Terry Guo <terry.guo (a] arm.com>
4158 1.3 christos
4159 1.7 christos * elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New
4160 1.7 christos function.
4161 1.7 christos (_bfd_elf_gc_mark_extra_sections): Use it.
4162 1.3 christos
4163 1.7 christos 2015-01-11 H.J. Lu <hongjiu.lu (a] intel.com>
4164 1.3 christos
4165 1.7 christos PR ld/17827
4166 1.7 christos * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE,
4167 1.7 christos only discard space for pc-relative relocs symbols which turn
4168 1.7 christos out to need copy relocs.
4169 1.3 christos
4170 1.7 christos 2015-01-09 Nick Clifton <nickc (a] redhat.com>
4171 1.3 christos
4172 1.7 christos * tekhex.c (getvalue): Fix thinko in test for correct extraction
4173 1.7 christos of value.
4174 1.7 christos (getsym): Return false if there was not enough data to extract the
4175 1.7 christos symbol.
4176 1.5 christos
4177 1.7 christos 2015-01-09 Anthony Green <green (a] moxielogic.com>
4178 1.5 christos
4179 1.7 christos * elf32-moxie.c (ELF_MACHINE_ALT1): Define.
4180 1.5 christos
4181 1.7 christos 2015-01-08 Nick Clifton <nickc (a] redhat.com>
4182 1.5 christos
4183 1.7 christos * elf32-msp430.c (msp430_elf_relax_section): Add relaxation of
4184 1.7 christos 16-bit absolute BR instructions to 10-bit pc-relative JMP
4185 1.7 christos instructions.
4186 1.5 christos
4187 1.7 christos 2015-01-08 Nick Clifton <nickc (a] redhat.com>
4188 1.5 christos
4189 1.7 christos PR binutils/17512
4190 1.7 christos * coffcode.h (coff_slurp_symbol_table): Return false if we failed
4191 1.7 christos to load the line table.
4192 1.7 christos * elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum
4193 1.7 christos maxpagesize of 1.
4194 1.7 christos * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if
4195 1.7 christos the Data Directory Size is too large.
4196 1.5 christos
4197 1.7 christos 2015-01-06 H.J. Lu <hongjiu.lu (a] intel.com>
4198 1.5 christos
4199 1.7 christos PR binutils/17512
4200 1.7 christos * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation.
4201 1.7 christos * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
4202 1.5 christos
4203 1.7 christos 2015-01-06 Nick Clifton <nickc (a] redhat.com>
4204 1.5 christos
4205 1.7 christos PR binutils/17512
4206 1.7 christos * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the
4207 1.7 christos string table.
4208 1.5 christos
4209 1.7 christos * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1.
4210 1.7 christos (bfd_perform_relocation): Include the size of the reloc in the
4211 1.7 christos test for an out of range relocation.
4212 1.7 christos (bfd_generic_get_relocated_section_contents): Remove reloc range
4213 1.7 christos test.
4214 1.5 christos
4215 1.7 christos * coff-i860.c (CALC_ADDEND): Always set an addend value.
4216 1.7 christos * tekhex.c (getvalue): Add an end pointer parameter. Use it to
4217 1.7 christos avoid reading off the end of the buffer.
4218 1.7 christos (getsym): Likewise.
4219 1.7 christos (first_phase): Likewise.
4220 1.7 christos (pass_over): Pass an end pointer to the invoked function.
4221 1.5 christos
4222 1.7 christos 2015-01-05 H.J. Lu <hongjiu.lu (a] intel.com>
4223 1.5 christos
4224 1.7 christos PR binutils/17512
4225 1.7 christos * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt
4226 1.7 christos input.
4227 1.7 christos * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
4228 1.5 christos
4229 1.7 christos 2015-01-05 Nick Clifton <nickc (a] redhat.com>
4230 1.5 christos
4231 1.7 christos PR binutils/17512
4232 1.7 christos * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized
4233 1.7 christos is at least big enough for the header to be read.
4234 1.7 christos * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs.
4235 1.7 christos * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks.
4236 1.7 christos (bfd_mach_o_read_command): Prevetn duplicate error messages about
4237 1.7 christos unrecognized commands.
4238 1.7 christos * syms.c (_bfd_stab_section_find_nearest_line): Add range checks
4239 1.7 christos when indexing into the string table.
4240 1.5 christos
4241 1.7 christos 2015-01-01 Alan Modra <amodra (a] gmail.com>
4242 1.5 christos
4243 1.7 christos Update year range in copyright notice of all files.
4244 1.1 skrll
4245 1.7 christos For older changes see ChangeLog-2014
4246 1.1 skrll
4248 1.7 christos Copyright (C) 2015 Free Software Foundation, Inc.
4249 1.7 christos
4250 1.7 christos Copying and distribution of this file, with or without modification,
4251 1.7 christos are permitted in any medium without royalty provided the copyright
4252 1.7 christos notice and this notice are preserved.
4253 1.1 skrll
4254 1.1 skrll Local Variables:
4255 1.1 skrll mode: change-log
4256 1.1 skrll left-margin: 8
4257 1.1 skrll fill-column: 74
4258 1.1 skrll version-control: never
4259 End:
4260