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