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