PR22769, crash when running 32-bit objdump on corrupted file
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
bf3077a6
MM
12018-01-31 Michael Matz <matz@suse.de>
2
3 * elflink.c (bfd_elf_define_start_stop): Fix check of
4 def_dynamic.
5
823143c6
L
62018-01-31 H.J. Lu <hongjiu.lu@intel.com>
7
8 PR ld/21964
9 * elflink.c (bfd_elf_define_start_stop): Check if __start and
10 __stop symbols are referenced by shared objects.
11
76cb3a89
AM
122018-01-30 Alan Modra <amodra@gmail.com>
13
14 PR 22758
15 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
16 segment when demand paged with lma on the same page. Test this
17 before load/non-load, executable/non-executable,
18 writable/non-writable tests and simplify. Delete bogus relro
19 condition in writable/non-writable test. Delete outdated
20 comment. Formatting.
21
36b8fda5
AM
222018-01-30 Alan Modra <amodra@gmail.com>
23
24 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
25 symbols dynamic.
26
eb77f6a4
AM
272018-01-29 Alan Modra <amodra@gmail.com>
28
29 PR 22741
30 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
31 range before converting to a symbol table pointer.
32
7d73b4c8
NC
332018-01-27 Nick Clifton <nickc@redhat.com>
34
35 * po/ru.po: Updated Russian translation.
36
32253bb7
AM
372018-01-26 Alan Modra <amodra@gmail.com>
38
39 * elflink.c (bfd_elf_define_start_stop): Override symbols when
40 they are defined dynamically.
41
ba21f564
AM
422018-01-26 Alan Modra <amodra@gmail.com>
43
44 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
45 .branch_lt changes size.
46
38e64b0e
AM
472018-01-25 Alan Modra <amodra@gmail.com>
48
49 PR 22746
50 * elfcode.h (elf_object_p): Avoid integer overflow.
51
bb363086
EB
522018-01-25 Eric Botcazou <ebotcazou@adacore.com>
53
54 PR ld/22727
55 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
56 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
57
58 Revert
59 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
60
61 PR ld/22263
62 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
63 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
64 bfd_link_executable for TLS check.
65 (_bfd_sparc_elf_check_relocs): Likewise.
66 (allocate_dynrelocs): Likewise.
67 (_bfd_sparc_elf_relocate_section): Likewise.
68
1daf502a
RL
692018-01-24 Renlin Li <renlin.li@arm.com>
70
71 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
72 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
73 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
74 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
75 BFD_RELOC_AARCH64_MOVW_PREL_G3.
76 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
77 (_bfd_aarch64_elf_resolve_relocation): Likewise.
78
32247401
RL
792018-01-24 Renlin Li <renlin.li@arm.com>
80
81 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
82 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
83 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
84 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
85 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
86 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
87 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
88 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
89 BFD_RELOC_AARCH64_MOVW_PREL_G3.
90 * bfd-in2.h: Regenerate.
91 * libbfd.h: Regenerate.
92
1c5e4ee9
MR
932018-01-23 Maciej W. Rozycki <macro@mips.com>
94
95 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
96 `mips_elf32_section_processing' comment reference.
97
8a1b824a
L
982018-01-20 H.J. Lu <hongjiu.lu@intel.com>
99
100 PR ld/22721
101 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
102 versioned __tls_get_addr symbol.
103
ee3fbc1e
NC
1042018-01-19 Nick Clifton <nickc@redhat.com>
105
106 * po/fr.po: Updated French translation.
107
691d2e9a
AM
1082018-01-18 Alan Modra <amodra@gmail.com>
109
110 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
111 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
112 (ppc64_elf_build_stubs): Likewise.
113
4bfce128
NC
1142018-01-17 Nick Clifton <nickc@redhat.com>
115
116 * po/ru.po: Updated Russian translation.
117 * po/uk/po: Updated Ukranian translation.
118
c75bc4f7
AM
1192018-01-17 Alan Modra <amodra@gmail.com>
120
121 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
122
1be5d8d3
AM
1232018-01-17 Alan Modra <amodra@gmail.com>
124
125 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
126 (CRSETEQ, BEQCTRM): Define.
127 (is_nonpic_glink_stub): Don't check bctr.
128 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
129 (ppc_elf_relax_section): Size speculation barrier.
130 (output_bctr): New function.
131 (write_glink_stub): Use output_bctr.
132 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
133 (ppc_elf_finish_dynamic_symbol): Likewise.
134 (ppc_elf_finish_dynamic_sections): Use output_bctr.
135 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
136 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
137 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
138 (size_global_entry_stubs): Handle speculation barrier sizing.
139 (plt_stub_size): Likewise.
140 (output_bctr): New function.
141 (build_plt_stub, build_tls_get_addr_stub): Output speculation
142 barrier.
143 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
144 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
145 (build_global_entry_stubs): Output speculation barrier.
146 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
147 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
148
9e390558
AM
1492018-01-17 Alan Modra <amodra@gmail.com>
150
151 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
152 __tls_get_addr_opt, and alignment sizing.
153 (TLS_GET_ADDR_GLINK_SIZE): Delete.
154 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
155 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
156 or 8 insns.
157 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
158 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
159 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
160 by PLT reloc count.
161 (write_glink_stub): Handle __tls_get_addr_opt stub.
162 Pad out to size given by GLINK_ENTRY_SIZE.
163 (ppc_elf_relocate_section): Adjust write_glink_stub call.
164 (ppc_elf_finish_dynamic_symbol): Likewise.
165 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
166 insn array since so many need rewriting.
167 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
168 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
169 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
170 nops. Adjust all uses.
171 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
172 in glink_vma calculation.
173 (struct ppc_link_hash_table): Add global_entry section pointer.
174 (create_linkage_sections): Create separate section for global
175 entry stubs.
176 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
177 (size_global_entry_stubs): Handle sizing for aligned stubs.
178 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
179 and don't stash end of glink branch table in rawsize.
180 (ppc_build_one_stub): Rewrite stub size calculations.
181 (build_global_entry_stubs): Use new section.
182 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
183 Build lazy link stubs out to end of section. Build global entry
184 stubs in new section.
185
616dcb87
NC
1862018-01-15 Nick Clifton <nickc@redhat.com>
187
188 * po/uk.po: Updated Ukranian translation.
189
3957a496
NC
1902018-01-13 Nick Clifton <nickc@redhat.com>
191
192 * po/bfd.pot: Regenerated.
193
769c7ea5
NC
1942018-01-13 Nick Clifton <nickc@redhat.com>
195
196 * version.m4: Bump version to 2.30.51
197 * configure: Regenerate.
198
faf766e3
NC
1992018-01-13 Nick Clifton <nickc@redhat.com>
200
201 2.30 branch created.
202
564e11c9
JW
2032018-01-12 Jens Widell <jl@opera.com>
204
205 * elf.c (setup_group): Optimize search for group by remembering
206 last found group and restarting search at that index.
207 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
208
a78eea16
AM
2092018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
210
211 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
212 bfd_link_common_skip_none in switch.
213
87e79a65
AM
2142018-01-12 Alan Modra <amodra@gmail.com>
215
216 PR ld/22649
217 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
218 references on forced local symbols.
219
58807c48
VI
2202018-01-12 Vlad Ivanov <vlad@ivanov.email>
221
222 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
223 .reginfo section has wrong size.
224
2888249f
L
2252018-01-11 H.J. Lu <hongjiu.lu@intel.com>
226
227 PR ld/22393
228 * elf.c (_bfd_elf_map_sections_to_segments): When generating
229 separate code and read-only data LOAD segments, create a new
230 LOAD segment if the previous section contains text and the
231 current section doesn't or vice versa. Don't put a writable
232 section in a read-only segment if there is a RELRO segment.
233
d664fd41
L
2342018-01-11 H.J. Lu <hongjiu.lu@intel.com>
235
236 PR ld/22649
237 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
238 references on forced local symbols.
239
8b6f4cd3
L
2402018-01-11 H.J. Lu <hongjiu.lu@intel.com>
241
242 PR ld/22677
243 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
244 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
245
6cef73f9
KLC
2462017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
247
248 PR 22662
249 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
250
ddb2bbcf
JB
2512018-01-03 John Baldwin <jhb@FreeBSD.org>
252
253 * elf.c (elfcore_grok_freebsd_note): Handle
254 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
255 NT_FREEBSD_PROCSTAT_VMMAP.
256
219d1afa
AM
2572018-01-03 Alan Modra <amodra@gmail.com>
258
259 Update year range in copyright notice of all files.
260
1e563868 261For older changes see ChangeLog-2017
3499769a 262\f
1e563868 263Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
264
265Copying and distribution of this file, with or without modification,
266are permitted in any medium without royalty provided the copyright
267notice and this notice are preserved.
268
269Local Variables:
270mode: change-log
271left-margin: 8
272fill-column: 74
273version-control: never
274End:
This page took 0.154117 seconds and 4 git commands to generate.