Fix PR ld/22727 (TLS breakage in PIC/PIE mode on SPARC).
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
2
3 PR ld/22727
4 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
5 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
6
7 Revert
8 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
9
10 PR ld/22263
11 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
12 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
13 bfd_link_executable for TLS check.
14 (_bfd_sparc_elf_check_relocs): Likewise.
15 (allocate_dynrelocs): Likewise.
16 (_bfd_sparc_elf_relocate_section): Likewise.
17
18 2018-01-24 Renlin Li <renlin.li@arm.com>
19
20 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
21 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
22 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
23 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
24 BFD_RELOC_AARCH64_MOVW_PREL_G3.
25 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
26 (_bfd_aarch64_elf_resolve_relocation): Likewise.
27
28 2018-01-24 Renlin Li <renlin.li@arm.com>
29
30 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
31 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
32 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
33 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
34 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
35 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
36 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
37 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
38 BFD_RELOC_AARCH64_MOVW_PREL_G3.
39 * bfd-in2.h: Regenerate.
40 * libbfd.h: Regenerate.
41
42 2018-01-23 Maciej W. Rozycki <macro@mips.com>
43
44 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
45 `mips_elf32_section_processing' comment reference.
46
47 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
48
49 PR ld/22721
50 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
51 versioned __tls_get_addr symbol.
52
53 2018-01-19 Nick Clifton <nickc@redhat.com>
54
55 * po/fr.po: Updated French translation.
56
57 2018-01-18 Alan Modra <amodra@gmail.com>
58
59 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
60 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
61 (ppc64_elf_build_stubs): Likewise.
62
63 2018-01-17 Nick Clifton <nickc@redhat.com>
64
65 * po/ru.po: Updated Russian translation.
66 * po/uk/po: Updated Ukranian translation.
67
68 2018-01-17 Alan Modra <amodra@gmail.com>
69
70 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
71
72 2018-01-17 Alan Modra <amodra@gmail.com>
73
74 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
75 (CRSETEQ, BEQCTRM): Define.
76 (is_nonpic_glink_stub): Don't check bctr.
77 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
78 (ppc_elf_relax_section): Size speculation barrier.
79 (output_bctr): New function.
80 (write_glink_stub): Use output_bctr.
81 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
82 (ppc_elf_finish_dynamic_symbol): Likewise.
83 (ppc_elf_finish_dynamic_sections): Use output_bctr.
84 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
85 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
86 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
87 (size_global_entry_stubs): Handle speculation barrier sizing.
88 (plt_stub_size): Likewise.
89 (output_bctr): New function.
90 (build_plt_stub, build_tls_get_addr_stub): Output speculation
91 barrier.
92 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
93 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
94 (build_global_entry_stubs): Output speculation barrier.
95 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
96 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
97
98 2018-01-17 Alan Modra <amodra@gmail.com>
99
100 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
101 __tls_get_addr_opt, and alignment sizing.
102 (TLS_GET_ADDR_GLINK_SIZE): Delete.
103 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
104 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
105 or 8 insns.
106 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
107 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
108 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
109 by PLT reloc count.
110 (write_glink_stub): Handle __tls_get_addr_opt stub.
111 Pad out to size given by GLINK_ENTRY_SIZE.
112 (ppc_elf_relocate_section): Adjust write_glink_stub call.
113 (ppc_elf_finish_dynamic_symbol): Likewise.
114 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
115 insn array since so many need rewriting.
116 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
117 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
118 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
119 nops. Adjust all uses.
120 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
121 in glink_vma calculation.
122 (struct ppc_link_hash_table): Add global_entry section pointer.
123 (create_linkage_sections): Create separate section for global
124 entry stubs.
125 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
126 (size_global_entry_stubs): Handle sizing for aligned stubs.
127 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
128 and don't stash end of glink branch table in rawsize.
129 (ppc_build_one_stub): Rewrite stub size calculations.
130 (build_global_entry_stubs): Use new section.
131 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
132 Build lazy link stubs out to end of section. Build global entry
133 stubs in new section.
134
135 2018-01-15 Nick Clifton <nickc@redhat.com>
136
137 * po/uk.po: Updated Ukranian translation.
138
139 2018-01-13 Nick Clifton <nickc@redhat.com>
140
141 * po/bfd.pot: Regenerated.
142
143 2018-01-13 Nick Clifton <nickc@redhat.com>
144
145 * version.m4: Bump version to 2.30.51
146 * configure: Regenerate.
147
148 2018-01-13 Nick Clifton <nickc@redhat.com>
149
150 2.30 branch created.
151
152 2018-01-12 Jens Widell <jl@opera.com>
153
154 * elf.c (setup_group): Optimize search for group by remembering
155 last found group and restarting search at that index.
156 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
157
158 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
159
160 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
161 bfd_link_common_skip_none in switch.
162
163 2018-01-12 Alan Modra <amodra@gmail.com>
164
165 PR ld/22649
166 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
167 references on forced local symbols.
168
169 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
170
171 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
172 .reginfo section has wrong size.
173
174 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
175
176 PR ld/22393
177 * elf.c (_bfd_elf_map_sections_to_segments): When generating
178 separate code and read-only data LOAD segments, create a new
179 LOAD segment if the previous section contains text and the
180 current section doesn't or vice versa. Don't put a writable
181 section in a read-only segment if there is a RELRO segment.
182
183 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
184
185 PR ld/22649
186 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
187 references on forced local symbols.
188
189 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
190
191 PR ld/22677
192 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
193 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
194
195 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
196
197 PR 22662
198 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
199
200 2018-01-03 John Baldwin <jhb@FreeBSD.org>
201
202 * elf.c (elfcore_grok_freebsd_note): Handle
203 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
204 NT_FREEBSD_PROCSTAT_VMMAP.
205
206 2018-01-03 Alan Modra <amodra@gmail.com>
207
208 Update year range in copyright notice of all files.
209
210 For older changes see ChangeLog-2017
211 \f
212 Copyright (C) 2018 Free Software Foundation, Inc.
213
214 Copying and distribution of this file, with or without modification,
215 are permitted in any medium without royalty provided the copyright
216 notice and this notice are preserved.
217
218 Local Variables:
219 mode: change-log
220 left-margin: 8
221 fill-column: 74
222 version-control: never
223 End:
This page took 0.039607 seconds and 5 git commands to generate.