New TESTS variable to run a subset of tests in parallel.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
024a2310
JK
12014-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 PR binutils/16595
4 * simple.c (struct saved_offsets): New.
5 (simple_save_output_info): Use it for ptr.
6 (simple_restore_output_info): Use it for ptr. Check section_count.
7 (bfd_simple_get_relocated_section_contents): Use it for saved_offsets.
8
e7d1c40c
AM
92014-02-17 Alan Modra <amodra@gmail.com>
10
11 * elf64-ppc.h (struct ppc64_elf_params): Define.
12 (ppc64_elf_init_stub_bfd, ppc64_elf_edit_opd, ppc64_elf_tls_setup,
13 ppc64_elf_setup_section_lists, ppc64_elf_size_stubs,
14 ppc64_elf_build_stubs): Update prototype.
15 * elf64-ppp.c (struct ppc_link_hash_table): Add params, delete other
16 fields now in params. Adjust code throughout file.
17 (ppc64_elf_init_stub_bfd): Delete "abfd" parameter, add "params".
18 Save params pointer in htab.
19 (ppc64_elf_edit_opd, ppc64_elf_tls_setup,
20 ppc64_elf_setup_section_lists, ppc64_elf_size_stubs,
21 ppc64_elf_build_stubs): Remove parameters now in "params".
22
668e22e5
AM
232014-02-17 Alan Modra <amodra@gmail.com>
24
25 * elf32-ppc.c (ppc_elf_relocate_section): Move relocs on insns
26 patched for ppc476 workaround. Reapply branch taken/not taken
27 relocs.
28
9f7552cf
AM
292014-02-12 Alan Modra <amodra@gmail.com>
30
31 * elf32-ppc.c (ppc_elf_relax_section): Don't build long-branch
32 stubs for calls to __tls_get_addr that we know will later be
33 optimised away.
34
795bc6b3
AM
352014-02-12 Alan Modra <amodra@gmail.com>
36
37 * elf32-ppc.c (ppc_elf_relax_section): Enable ppc476 workaround
38 for ld -r, when code sections are sufficiently aligned.
39 * elf32-ppc.h (struct ppc_elf_params): Delete pagesize. Add
40 pagesize_p2.
41
b407645f
AM
422014-02-12 Alan Modra <amodra@gmail.com>
43
44 PR gold/15530
45 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
46 --export-dynamic and --dynamic-list marking of symbols.
47 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Reorder
48 cheap tests first.
49
d6f6f455
L
502014-02-10 H.J. Lu <hongjiu.lu@intel.com>
51
52 PR gold/16530
53 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark symbol in
54 executables if it matches dynamic_list.
55
c1c69e83
AM
562014-02-10 Alan Modra <amodra@gmail.com>
57
58 * po/SRC-POTFILES.in: Regenerate.
59 * po/bfd.pot: Regenerate.
60
53291d1f
AM
612014-02-09 Alan Modra <amodra@gmail.com>
62
63 * elf-bfd.h (struct elf_backend_data): Add caches_rawsize.
64 * elfxx-target.h (elf_backend_caches_rawsize): Define.
65 (elfNN_bed): Init new field.
66 * elflink.c (elf_link_input_bfd): Handle caches_rawsize.
67 * elf32-ppc.c (shared_stub_entry): Zero addi offset.
68 (ppc_elf_relax_section): Don't reallocate section here, write
69 stubs, or write out relocs for ld -r here..
70 (ppc_elf_relocate_section): ..instead write stubs here, and use
71 existing code to write out relocs for ld -r. Fix offset
72 adjustment on reloc for little-endian.
73 (elf_backend_caches_rawsize): Define.
74
d1eb5696
RO
752014-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
76
85773039 77 PR build/16550
d1eb5696
RO
78 * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t.
79
2915c55b
JK
802014-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
81
82 * coff-rs6000.c (xcoff_write_archive_contents_big): Free OFFSETS in
83 return paths. Three times.
84 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Free HTAB in all
85 return paths.
86 (ppc64_elf_tls_optimize): Free TOC_REF in return path.
87 (ppc64_elf_edit_toc): Free USED in return path.
88
1c2de463
SL
892014-02-03 Sandra Loosemore <sandra@codesourcery.com>
90
91 * reloc.c (BFD_RELOC_NIOS2_GOT_LO, BFD_RELOC_NIOS2_GOT_HA): New.
92 (BFD_RELOC_NIOS2_CALL_LO, BFD_RELOC_NIOS2_CALL_HA): New.
93 * libbfd.h: Regenerated.
94 * bfd-in2.h: Regenerated.
95 * elf32-nios2.c (elf_nios2_howto_table_rel): Add new relocations.
96 (nios2_reloc_map): Likewise.
97 (GOT_USED, CALL_USED): Renamed from GOT16_USED and CALL16_USED.
98 Fixed all references.
99 (nios2_elf32_relocate_section): Add new relocations.
100 (nios2_elf32_check_relocs): Likewise.
101 (nios2_elf32_gc_sweep_hook): Likewise.
102
5446cbdf
AM
1032014-02-03 Alan Modra <amodra@gmail.com>
104
105 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add params.
106 Delete emit_stub_syms, no_tls_get_addr_opt. Update all uses.
107 (ppc_elf_link_params): New function.
108 (ppc_elf_create_glink): Align .glink to 64 bytes for ppc476
109 workaround.
110 (ppc_elf_select_plt_layout): Remove plt_style and emit_stub_syms
111 parameters. Use htab->params instead.
112 (ppc_elf_tls_setup): Remove no_tls_get_addr_opt parameter.
113 (ppc_elf_size_dynamic_sections): Align __glink_PLTresolve to
114 64 bytes for ppc476 workaround.
115 (struct ppc_elf_relax_info): New.
116 (ppc_elf_relax_section): Exclude linker created sections and
117 those too small to hold one instruction. Don't add another
118 branch around trampolines on later relax passes. Don't
119 generate trampolines for undefined symbols when !relocatable,
120 nor for plugin symbols. Allocate space for ppc476 workaround
121 patch area. Free fixups on error return path.
122 (ppc_elf_relocate_section): Handle ppc476 workaround patching.
123 * elf32-ppc.h (struct ppc_elf_params): New.
124 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Update prototype.
125 (ppc_elf_link_params): Declare.
126 * section.c (SEC_INFO_TYPE_TARGET): Define.
127 * bfd-in2.h: Regenerate.
128
82e91538
SL
1292014-02-02 Sandra Loosemore <sandra@codesourcery.com>
130
131 * elf32-nios2.c (struct elf32_nios2_link_hash_table): Add
132 h_gp_got field.
133 (nios2_elf32_relocate_section): Use got_base to adjust
134 GOT-pointer-relative relocations relative to _gp_got.
135 (create_got_section): Create _gp_got symbol.
136 (nios2_elf32_finish_dynamic_symbol): Make _gp_got absolute.
137 (nios2_elf32_size_dynamic_sections): Set _gp_got offset.
138
78058a5e
SL
1392014-01-30 Sandra Loosemore <sandra@codesourcery.com>
140
141 * bfd-in2.h: Update from reloc.c.
142 * elf32-nios2.c: Include elf32-nios2.h.
143 (elf_nios2_howto_table_rel): Add entry for R_NIOS2_CALL26_NOAT.
144 (nios2_reloc_map): Likewise.
145 (enum elf32_nios2_stub_type): Declare.
146 (struct elf32_nios2_stub_hash_entry): Declare.
147 (nios2_stub_hash_entry, nios2_stub_hash_lookup): New macros.
148 (struct elf32_nios2_link_hash_entry): Add hsh_cache field.
149 (struct elf32_nios2_link_hash_table): Add new fields bstab,
150 stub_bfd, add_stub_section, layout_sections_again, stub_group,
151 bfd_count, top_index, input_list, all_local_syms.
152 (nios2_call26_stub_entry): New.
153 (nios2_elf32_install_imm16): Move up in file.
154 (nios2_elf32_install_data): Move up in file.
155 (hiadj): Move up in file.
156 (stub_hash_newfunc): New.
157 (link_hash_newfunc): Initialize hsh_cache field.
158 (STUB_SUFFIX): New.
159 (nios2_stub_name): New.
160 (nios2_get_stub_entry): New.
161 (nios2_add_stub): New.
162 (nios2_elf32_setup_section_lists): New.
163 (nios2_elf32_next_input_section): New.
164 (CALL26_SEGMENT): New.
165 (MAX_STUB_SECTION_SIZE): New.
166 (group_sections): New.
167 (nios2_type_of_stub): New.
168 (nios2_build_one_stub): New.
169 (nios2_size_one_stub): New.
170 (get_local_syms): New.
171 (nios2_elf32_size_stubs): New.
172 (nios2_elf32_build_stubs): New.
173 (nios2_elf32_do_call26_relocate): Correct CALL26 overflow test.
174 (nios2_elf32_relocate_section): Handle R_NIOS2_CALL26_NOAT. Add
175 trampolines for R_NIOS2_CALL26 stubs.
176 (nios2_elf32_check_relocs): Handle R_NIOS2_CALL26_NOAT.
177 (nios2_elf32_gc_sweep_hook): Likewise.
178 (nios2_elf32_link_hash_table_create): Initialize the stub hash table.
179 (nios2_elf32_link_hash_table_free): New.
180 (bfd_elf32_bfd_link_hash_table_free): Define.
181 * elf32-nios2.h: New file.
182 * libbfd.h: Update from reloc.c.
183 * reloc.c (BFD_RELOC_NIOS2_CALL26_NOAT): New.
184
df3ce959
NC
1852014-01-29 Nick Clifton <nickc@redhat.com>
186
187 PR binutils/16318
188 * elf32-metag.c (elf_metag_post_process_headers): Call
189 _bfd_elf_post_process_headers.
190 * elf32-sh64.c (sh64_elf_copy_private_data): Call
191 _bfd_elf_copy_private_data.
192 * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
193
27b829ee
NC
1942014-01-29 Nick Clifton <nickc@redhat.com>
195
196 * bfd-in.h (bfd_set_section_vma): Delete.
197 (bfd_set_section_alignment): Delete.
198 (bfd_set_section_userdata): Delete.
199 (bfd_set_cacheable): Delete.
200 * bfd.c (bfd_set_cacheable): New static inline function.
201 * section.c (bfd_set_section_userdata): Likewise.
202 (bfd_set_section_vma): Likewise.
203 (bfd_set_section_alignment): Likewise.
204 * bfd-in2.h: Regenerate.
205
0a9c7b2b
NC
2062014-01-28 Nick Clifton <nickc@redhat.com>
207
208 * dwarf2.c (find_abstract_instance_name): For DW_FORM_ref_addr
209 attributes select the CU containing the abbreviation, which may not
210 be the current CU.
211
3ba720c7
AM
2122014-01-24 Alan Modra <amodra@gmail.com>
213
214 * elf64-ppc.c (ppc_build_one_stub): Correct reloc count passed
215 to get_relocs for ELFv2.
216
d923cae0
L
2172014-01-23 H.J. Lu <hongjiu.lu@intel.com>
218
219 PR ld/16498
3ba720c7 220 * elf.c (_bfd_elf_map_sections_to_segments): Issue a linker error
d923cae0
L
221 if TLS sections are not adjacent.
222
16e4ecc0
AM
2232014-01-22 Alan Modra <amodra@gmail.com>
224
225 * elflink.c (elf_link_add_object_symbols): Call minfo for --as-needed.
226
eb8d7fda
AM
2272014-01-22 Alan Modra <amodra@gmail.com>
228
229 * elf64-ppc.c (STK_LINKER): Comment typo fix.
230
4584ec12
L
2312014-01-21 H.J. Lu <hongjiu.lu@intel.com>
232
233 PR ld/16467
234 * elflink.c (_bfd_elf_merge_symbol): When types of the existing
235 regular default symbol definition and the versioned dynamic
236 symbol definition mismatch, skip the default symbol definition
237 if one of them is IFUNC.
238
22ef172a
L
2392014-01-21 H.J. Lu <hongjiu.lu@intel.com>
240
241 PR ld/2404
242 * elflink.c (_bfd_elf_merge_symbol): Don't check info->shared,
243 info->export_dynamic nor h->ref_dynamic for type mismatch when
244 adding the default version.
245
b75d42bc
AM
2462014-01-16 Alan Modra <amodra@gmail.com>
247
248 * elfxx-mips.c (mips_elf_record_got_page_entry): Pass in a
249 mips_elf_traverse_got_arg* rather than mips_got_info*.
250 Adjust caller. Alloc on output_bfd rather than symbol section
251 owner.
252
c353e543
L
2532014-01-15 H.J. Lu <hongjiu.lu@intel.com>
254
255 * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last
256 change.
257 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
258
818d220a
L
2592014-01-14 H.J. Lu <hongjiu.lu@intel.com>
260
261 PR ld/16428
262 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't discard relocs
263 against __ehdr_start.
264 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
265
c3ce498c
L
2662014-01-14 H.J. Lu <hongjiu.lu@intel.com>
267
268 * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last
269 change.
270 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
271
d1ec1e40
L
2722014-01-14 H.J. Lu <hongjiu.lu@intel.com>
273
274 PR ld/16428
275 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't update reloc
276 count if there are any non pc-relative relocs.
277 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
278
f44a1f8e
CL
2792014-01-14 Michael Hudson-Doyle <michael.hudson@linaro.org>
280 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
281
282 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use correct
283 offset while calculating relocation address.
284 (elfNN_aarch64_create_small_pltn_entry): Likewise.
285 (elfNN_aarch64_init_small_plt0_entry): Likewise.
286
fd0fd00c
MJ
2872014-01-13 Ma Jiang <ma.jiang@zte.com.cn>
288
289 PR ld/16202
290 * elf32-arm.c (elf32_arm_final_link_relocate): Refetch addends for
291 R_ARM_ABS8 and R_ARM_ABS16.
292
aa726b9e
AM
2932014-01-13 Alan Modra <amodra@gmail.com>
294
295 * elf32-ppc.c (ppc_elf_check_relocs): For @local call to ifunc,
296 error when shared and force a plt call otherwise.
297 (ppc_elf_size_dynamic_sections): Don't emit DT_PPC_GOT unless
298 plt_type == PLT_NEW.
299 (ppc_elf_relocate_section): Add missing test to resolve ifuncs to
300 the appropriate call stub.
301
eec2f3ed
AM
3022014-01-10 Alan Modra <amodra@gmail.com>
303
304 PR ld/14207
305 PR ld/16322
306 PR binutils/16323
307 * elf.c (assign_file_positions_for_load_sections): Revert last change.
308 (assign_file_positions_for_non_load_sections): When setting up
309 PT_GNU_RELRO header, don't require a corresponding PT_LOAD
310 header that completely covers the relro region.
311
09bf66a8
TG
3122014-01-09 Tristan Gingold <gingold@adacore.com>
313
314 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): use jump
315 table macros and add macros to initializa the structure.
316
43a8475c
L
3172014-01-08 H.J. Lu <hongjiu.lu@intel.com>
318
319 PR ld/14207
320 PR ld/16322
321 PR binutils/16323
322 * elf.c (_bfd_elf_map_sections_to_segments): Don't check section
323 size for PT_GNU_RELRO segment.
324 (assign_file_positions_for_load_sections): If PT_LOAD segment
325 doesn't fit PT_GNU_RELRO segment, adjust its p_filesz and p_memsz.
326
1651e569
TT
3272014-01-07 Tom Tromey <tromey@redhat.com>
328
329 * elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility
330 wrappers.
331
dc9155b2
NC
3322014-01-03 Nick Clifton <nickc@redhat.com>
333
334 PR binutils/16199
335 * elf.c (vma_page_aligned_bias): Handle a maxpagesize value of
336 zero.
337
dd8dfa39 3382014-01-02 Yuanhui Zhang <asmwarrior@gmail.com>
044387af
A
339
340 PR binutils/14289
341 * pef.c (bfd_pef_xlib_read_header): Increase buffer size to 80.
342
1be5090b
NC
3432014-01-02 Nick Clifton <nickc@redhat.com>
344
345 PR binutils/11983
346 * archive.c (_bfd_get_elt_at_filepos): Store a copy of the
347 filename in the bfd's filename field.
348 * elfcode.h (bfd_from_remote_memory): Likewise.
349 * ieee.c (ieee_object_p): Likewise.
350 * mach-o.c (bfd_mach_o_fat_member_init): Likewise.
351 * oasys.c (oasys_openr_next_archived_file): Likewise.
352 * vms-lib.c (_bfd_vms_lib_get_module): Likewise.
353 * opncls.c (bfd_fopen): Likewise.
354 (bfd_openstreamr): Likewise.
355 (bfd_openr_iovec): Likewise.
356 (bfd_openw): Likewise.
357 (bfd_create): Likewise.
358 (_bfd_delete_bfd): Free filename.
359
5fb776a6 360For older changes see ChangeLog-2013
56882138 361\f
5fb776a6 362Copyright (C) 2014 Free Software Foundation, Inc.
752937aa
NC
363
364Copying and distribution of this file, with or without modification,
365are permitted in any medium without royalty provided the copyright
366notice and this notice are preserved.
367
56882138
AM
368Local Variables:
369mode: change-log
370left-margin: 8
371fill-column: 74
372version-control: never
373End:
This page took 0.804377 seconds and 4 git commands to generate.