Commit | Line | Data |
---|---|---|
9a2ebffd JW |
1 | 2018-03-02 Jim Wilson <jimw@sifive.com> |
2 | ||
3 | PR 22903 | |
4 | * elfnn-aarch64.c (_bfd_aarch64_resize_stubs): Add 8 bytes for branch | |
5 | and nop instead of 4. | |
6 | (elfNN_arch64_build_stubs): Add nop after branch. Increase size by | |
7 | 8 instead of 4. | |
8 | ||
788af978 JW |
9 | 2018-03-01 Jim Wilson <jimw@sifive.com> |
10 | ||
11 | PR 22756 | |
12 | * elfnn-riscv.c (riscv_relax_delete_bytes): When adjust st_size, use | |
13 | else if instead of if. | |
14 | ||
5224fa03 AM |
15 | 2018-03-01 Alan Modra <amodra@gmail.com> |
16 | ||
17 | * elf32-ft32.c (ft32_info_to_howto_rela): Correct range test. | |
18 | ||
116acb2c AM |
19 | 2018-02-28 Alan Modra <amodra@gmail.com> |
20 | ||
21 | PR 22887 | |
22 | * aoutx.h (swap_std_reloc_in): Correct r_index bound check. | |
23 | ||
eef10466 NC |
24 | 2018-02-28 Nick Clifton <nickc@redhat.com> |
25 | ||
12c96342 NC |
26 | PR 22895 |
27 | PR 22893 | |
28 | * dwarf2.c (read_n_bytes): Replace size parameter with dwarf_block | |
29 | pointer. Drop unused abfd parameter. Check the size of the block | |
30 | before initialising the data field. Return the end pointer if the | |
31 | size is invalid. | |
32 | (read_attribute_value): Adjust invocations of read_n_bytes. | |
33 | ||
eef10466 NC |
34 | PR 22894 |
35 | * dwarf1.c (parse_die): Check the length of form blocks before | |
36 | advancing the data pointer. | |
37 | ||
0d329c0a AM |
38 | 2018-02-28 Alan Modra <amodra@gmail.com> |
39 | ||
40 | PR 22887 | |
41 | * aoutx.h (translate_symbol_table): Print an error message and set | |
42 | bfd_error on finding an invalid name string offset. | |
43 | ||
f6aec96d L |
44 | 2018-02-27 H.J. Lu <hongjiu.lu@intel.com> |
45 | ||
46 | * config.in: Regenerated. | |
47 | * configure: Likewise. | |
48 | * configure.ac: Add --enable-separate-code. | |
49 | (DEFAULT_LD_Z_SEPARATE_CODE): New AC_DEFINE_UNQUOTED. Default | |
50 | to 1 for Linux/x86 targets, | |
51 | * elf64-x86-64.c (ELF_MAXPAGESIZE): Set to 0x1000 if | |
52 | DEFAULT_LD_Z_SEPARATE_CODE is 1. | |
53 | ||
f3185997 NC |
54 | 2018-02-27 Nick Clifton <nickc@redhat.com> |
55 | ||
e8f5af78 NC |
56 | * aout-cris.c (swap_ext_reloc_out): Standadize error/warning |
57 | message. | |
58 | * elf-hppa.h (elf_hppa_info_to_howto_rel): Likewise. | |
59 | * elf32-i386.c (elf_i386_reloc_type_lookup): Likewise. | |
60 | * elf32-xtensa.c (elf_xtensa_reloc_type_lookup): Likewise. | |
61 | * elf64-ppc.c (ppc64_elf_reloc_type_lookup): Likewise. | |
62 | * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. | |
63 | * elf64-sh64.c (sh_elf64_info_to_howto): Likewise. | |
64 | * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. | |
65 | * elfxx-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Likewise. | |
66 | * elfxx-tilegx.c (tilegx_reloc_type_lookup): Likewise. | |
67 | ||
f3185997 NC |
68 | PR 22875 |
69 | * elf-bfd.h (struct elf_backend_data): Change the return type of | |
70 | the elf_info_to_howto and elf_info_to_howto_rel function pointers | |
71 | to bfd_boolean. | |
72 | * elfcode.h (elf_slurp_reloc_table_from_section): Check the return | |
73 | value from the info_to_howto function and fail if that function | |
74 | failed. | |
75 | * elf32-h8300.c (elf32_h8_relocate_section): Check return value | |
76 | from the info_to_howto function. | |
77 | (elf32_h8_relax_section): Likewise. | |
78 | * elf32-lm32.c (lm32_elf_relocate_section): Likewise. | |
79 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. | |
80 | * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. | |
81 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
82 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. | |
83 | * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise. | |
84 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Likewise. | |
85 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. | |
86 | * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
87 | * elfnn-riscv.c (riscv_elf_check_relocs): Likewise. | |
88 | (riscv_elf_relocate_section): Likewise. | |
89 | * elf-hppa.h (elf_hppa_info_to_howto): Change return type to | |
90 | bfd_boolean. Issue an error message, set an error value and | |
91 | return FALSE if the reloc is not recognized. | |
92 | (elf_hppa_info_to_howto_rel): Likewise. | |
93 | * elf-m10200.c (mn10200_info_to_howto): Likewise. | |
94 | * elf-m10300.c (mn10300_info_to_howto): Likewise. | |
95 | * elf.c (_bfd_elf_no_info_to_howto): Likewise. | |
96 | * elf32-arc.c (arc_info_to_howto_rel): Likewise. | |
97 | * elf32-arm.c (elf32_arm_info_to_howto): Likewise. | |
98 | * elf32-avr.c (avr_info_to_howto_rela): Likewise. | |
99 | * elf32-bfin.c (bfin_info_to_howto): Likewise. | |
100 | * elf32-cr16.c (elf_cr16_info_to_howto): Likewise. | |
101 | * elf32-cr16c.c (elf_cr16c_info_to_howto): Likewise. | |
102 | * elf32-cris.c (elf_cr16c_info_to_howto_rel) | |
103 | (cris_info_to_howto_rela): Likewise. | |
104 | * elf32-crx.c (elf_crx_info_to_howto): Likewise. | |
105 | * elf32-d10v.c (d10v_info_to_howto_rel): Likewise. | |
106 | * elf32-d30v.c (d30v_info_to_howto_rel, d30v_info_to_howto_rela): | |
107 | Likewise. | |
108 | * elf32-dlx.c (dlx_rtype_to_howto, elf32_dlx_info_to_howto) | |
109 | (elf32_dlx_info_to_howto_rel): Likewise. | |
110 | * elf32-epiphany.c (epiphany_info_to_howto_rela): Likewise. | |
111 | * elf32-fr30.c (fr30_info_to_howto_rela): Likewise. | |
112 | * elf32-frv.c (frv_info_to_howto_rela) | |
113 | (frvfdpic_info_to_howto_rel): Likewise. | |
114 | * elf32-ft32.c (ft32_info_to_howto_rela): Likewise. | |
115 | * elf32-gen.c (elf_generic_info_to_howto) | |
116 | (elf_generic_info_to_howto_rel): Likewise. | |
117 | * elf32-h8300.c (elf32_h8_info_to_howto) | |
118 | (elf32_h8_info_to_howto_rel): Likewise. | |
119 | * elf32-i370.c (i370_elf_info_to_howto): Likewise. | |
120 | * elf32-i386.c (elf_i386_reloc_type_lookup) | |
121 | (elf_i386_rtype_to_howto, elf_i386_info_to_howto_rel): Likewise. | |
122 | * elf32-i860.c (lookup_howto, elf32_i860_info_to_howto_rela): | |
123 | Likewise. | |
124 | * elf32-i960.c (elf32_i960_info_to_howto_rel): Likewise. | |
125 | * elf32-ip2k.c (ip2k_info_to_howto_rela): Likewise. | |
126 | * elf32-iq2000.c (iq2000_info_to_howto_rela): Likewise. | |
127 | * elf32-lm32.c (lm32_info_to_howto_rela): Likewise. | |
128 | * elf32-m32c.c (m32c_info_to_howto_rela): Likewise. | |
129 | * elf32-m32r.c (m32r_info_to_howto_rel, m32r_info_to_howto): | |
130 | Likewise. | |
131 | * elf32-m68hc11.c (m68hc11_info_to_howto_rel): Likewise. | |
132 | * elf32-m68hc12.c (m68hc11_info_to_howto_rel): Likewise. | |
133 | * elf32-m68k.c (rtype_to_howto): Likewise. | |
134 | * elf32-mcore.c (mcore_elf_info_to_howto): Likewise. | |
135 | * elf32-mep.c (mep_info_to_howto_rela): Likewise. | |
136 | * elf32-metag.c (metag_info_to_howto_rela): Likewise. | |
137 | * elf32-microblaze.c (microblaze_elf_info_to_howto): Likewise. | |
138 | * elf32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): | |
139 | Likewise. | |
140 | * elf32-moxie.c (moxie_info_to_howto_rela): Likewise. | |
141 | * elf32-msp430.c (msp430_info_to_howto_rela): Likewise. | |
142 | * elf32-mt.c (mt_info_to_howto_rela): Likewise. | |
143 | * elf32-nds32.c (nds32_info_to_howto_rel, nds32_info_to_howto): | |
144 | Likewise. | |
145 | * elf32-nios2.c (nios2_elf32_info_to_howto): Likewise. | |
146 | * elf32-or1k.c (or1k_info_to_howto_rela): Likewise. | |
147 | * elf32-pj.c (pj_elf_info_to_howto): Likewise. | |
148 | * elf32-ppc.c (ppc_elf_info_to_howto): Likewise. | |
149 | * elf32-pru.c (pru_elf32_info_to_howto): Likewise. | |
150 | * elf32-rl78.c (rl78_info_to_howto_rela): Likewise. | |
151 | * elf32-rx.c (rx_info_to_howto_rela): Likewise. | |
152 | * elf32-s390.c (elf_s390_info_to_howto): Likewise. | |
153 | * elf32-score.c (s3_bfd_score_info_to_howto) | |
154 | (_bfd_score_info_to_howto): Likewise. | |
155 | * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise. | |
156 | * elf32-sh.c (sh_elf_info_to_howto): Likewise. | |
157 | * elf32-spu.c (spu_elf_info_to_howto): Likewise. | |
158 | * elf32-tic6x.c (elf32_tic6x_info_to_howto) | |
159 | (elf32_tic6x_info_to_howto_rel): Likewise. | |
160 | * elf32-tilepro.c (tilepro_info_to_howto_rela): Likewise. | |
161 | * elf32-v850.c (v850_elf_info_to_howto_rel) | |
162 | (v850_elf_info_to_howto_rela, v800_elf_info_to_howto): Likewise. | |
163 | * elf32-vax.c (rtype_to_howto): Likewise. | |
164 | * elf32-visium.c (visium_info_to_howto_rela): Likewise. | |
165 | * elf32-wasm32.c (elf32_wasm32_rtype_to_howto) | |
166 | (elf32_wasm32_info_to_howto_rela): Likewise. | |
167 | * elf32-xc16x.c (elf32_xc16x_info_to_howto): Likewise. | |
168 | * elf32-xgate.c (xgate_info_to_howto_rel): Likewise. | |
169 | * elf32-xstormy16.c (xstormy16_info_to_howto_rela): Likewise. | |
170 | * elf32-xtensa.c (elf_xtensa_info_to_howto_rela): Likewise. | |
171 | * elf64-alpha.c (elf64_alpha_info_to_howto): Likewise. | |
172 | * elf64-gen.c (elf_generic_info_to_howto) | |
173 | (elf_generic_info_to_howto_rel): Likewise. | |
174 | * elf64-ia64-vms.c (elf64_ia64_info_to_howto): Likewise. | |
175 | * elf64-mips.c (mips_elf64_info_to_howto_rela): Likewise. | |
176 | * elf64-mmix.c (mmix_info_to_howto_rela): Likewise. | |
177 | * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise. | |
178 | * elf64-s390.c (elf_s390_reloc_type_lookup): Likewise. | |
179 | * elf64-sh64.c (elf_s390_info_to_howto, sh_elf64_info_to_howto): | |
180 | Likewise. | |
181 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Likewise. | |
182 | * elfn32-mips.c (mips_info_to_howto_rel, mips_info_to_howto_rela): | |
183 | Likewise. | |
184 | * elfnn-aarch64.c (elfNN_aarch64_info_to_howto): Likewise. | |
185 | * elfnn-ia64.c (elfNN_ia64_info_to_howto): Likewise. | |
186 | * elfnn-riscv.c (riscv_info_to_howto_rela): Likewise. | |
187 | * elfxx-ia64.c (ia64_elf_reloc_type_lookup): Likewise. | |
188 | * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto): Likewise. | |
189 | * elfxx-tilegx.c (tilegx_info_to_howto_rela): Likewise. | |
190 | * elf32-score.h (s7_bfd_score_info_to_howto): Update prototype. | |
191 | * elfxx-sparc.h (_bfd_sparc_elf_info_to_howto): Update prototype. | |
192 | * elfxx-tilegx.h (tilegx_info_to_howto_rela): Update prototype. | |
193 | * elfxx-target.h (elf_info_to_howto, elf_info_to_howto_rel): | |
194 | Default to NULL. | |
195 | ||
1f4bace8 JW |
196 | 2018-02-26 Jim Wilson <jimw@sifive.com> |
197 | Stephan Schreiber <info@fs-driver.org> | |
198 | ||
199 | PR 15904 | |
200 | * elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl | |
201 | call, set changed_contents and changed_relocs. Likewise after | |
202 | successful ia64_elf_relax_br call. | |
203 | ||
6838f2be AM |
204 | 2018-02-26 Alan Modra <amodra@gmail.com> |
205 | ||
206 | * elf.c (assign_file_positions_except_relocs): Don't segfault | |
207 | when actual number of phdrs is less than allocated. Delete | |
208 | outdated comment. Formatting. | |
209 | ||
38f14ab8 AM |
210 | 2018-02-26 Alan Modra <amodra@gmail.com> |
211 | ||
212 | * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c, | |
213 | * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c, | |
214 | * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c, | |
215 | * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c, | |
216 | * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c, | |
217 | * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c, | |
218 | * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c, | |
219 | * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c, | |
220 | * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c, | |
221 | * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize | |
222 | error/warning messages. | |
223 | ||
6e05870c AM |
224 | 2018-02-26 Alan Modra <amodra@gmail.com> |
225 | ||
226 | * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c, | |
227 | * syms.c: Standardize error/warning messages. | |
228 | ||
59d08d6c AM |
229 | 2018-02-26 Alan Modra <amodra@gmail.com> |
230 | ||
231 | * aout-adobe.c, * aout-cris.c, * i386linux.c, * m68klinux.c, | |
232 | * sparclinux.c, * coff-alpha.c, * coff-arm.c, * coff-mcore.c, | |
233 | * coffcode.h, * coffgen.c, * cofflink.c, * ecoff.c, * pe-mips.c, | |
234 | * peXXigen.c, * peicode.h: Standardize error/warning messages. | |
235 | ||
90b6238f AM |
236 | 2018-02-26 Alan Modra <amodra@gmail.com> |
237 | ||
238 | * elf32-arm.c, * elfnn-aarch64.c: Standardize error/warning messages. | |
239 | ||
2c1c9679 AM |
240 | 2018-02-26 Alan Modra <amodra@gmail.com> |
241 | ||
242 | * elfxx-mips.c: Standardize error/warning messages. | |
243 | ||
9793eb77 AM |
244 | 2018-02-26 Alan Modra <amodra@gmail.com> |
245 | ||
246 | * dwarf2.c, * elf-attrs.c, * elf-eh-frame.c, * elf.c, * elf32-gen.c, | |
247 | * elflink.c: Standardize error/warning messages. Replace use of | |
248 | linker callback einfo with _bfd_error_handler when possible. | |
249 | ||
0aa13fee AM |
250 | 2018-02-26 Alan Modra <amodra@gmail.com> |
251 | ||
252 | * aoutx.h, * coff-alpha.c, * coff-i860.c, * coff-m68k.c, | |
253 | * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, | |
254 | * coff-tic4x.c, * coff-tic54x.c, * coff-tic80.c, * coff-w65.c, | |
255 | * elf-bfd.h, * elf-m10300.c, * elf.c, * elf32-avr.c, * elf32-bfin.c, | |
256 | * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c, * elf32-crx.c, | |
257 | * elf32-d10v.c, * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c, | |
258 | * elf32-fr30.c, * elf32-frv.c, * elf32-i370.c, * elf32-i386.c, | |
259 | * elf32-i960.c, * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, | |
260 | * elf32-m32c.c, * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, | |
261 | * elf32-m68k.c, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c, | |
262 | * elf32-microblaze.c, * elf32-mips.c, * elf32-moxie.c, | |
263 | * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, * elf32-or1k.c, | |
264 | * elf32-pj.c, * elf32-ppc.c, * elf32-rl78.c, * elf32-rx.c, | |
265 | * elf32-s390.c, * elf32-sh.c, * elf32-spu.c, * elf32-tic6x.c, | |
266 | * elf32-v850.c, * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c, | |
267 | * elf32-xgate.c, * elf32-xtensa.c, * elf64-alpha.c, | |
268 | * elf64-ia64-vms.c, * elf64-mips.c, * elf64-mmix.c, | |
269 | * elf64-ppc.c, * elf64-s390.c, * elf64-sparc.c, * elf64-x86-64.c, | |
270 | * elfn32-mips.c, * elfnn-aarch64.c, * elfnn-ia64.c, | |
271 | * elfnn-riscv.c, * elfxx-mips.c, * elfxx-riscv.c, * elfxx-riscv.h, | |
272 | * elfxx-sparc.c, * elfxx-sparc.h, * reloc.c: Standardize | |
273 | unrecognized/unsupported reloc message. | |
274 | ||
cf97bcb0 AM |
275 | 2018-02-26 Alan Modra <amodra@gmail.com> |
276 | ||
277 | * elf32-ppc.c: Standardize error/warning messages. Use | |
278 | _bfd_error_handler rather than einfo when einfo features not used. | |
279 | * elf64-ppc.c: Likewise. | |
280 | ||
01f7e10c AM |
281 | 2018-02-23 Alan Modra <amodra@gmail.com> |
282 | ||
283 | PR 22881 | |
284 | * elf.c (assign_file_positions_for_non_load_sections): Remove RELRO | |
285 | segment if no matching LOAD segment. | |
286 | ||
e859f655 KLC |
287 | 2018-02-23 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
288 | ||
289 | * elf32-nds32.h: Define mask for ict_model. | |
290 | ||
6e8d06db JD |
291 | 2018-02-20 Jason Duerstock <jason.duerstock@gmail.com> |
292 | ||
293 | * elfnn-ia64.c (elf_backend_can_gc_sections): Enable. | |
294 | ||
b248d650 MR |
295 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
296 | ||
297 | Revert | |
298 | 2018-01-12 Vlad Ivanov <vlad@ivanov.email> | |
299 | ||
300 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
301 | .reginfo section has wrong size. | |
302 | ||
6798f8bf MR |
303 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
304 | ||
305 | * elfxx-mips.c (_bfd_mips_elf_always_size_sections): Set | |
306 | SEC_FIXED_SIZE and SEC_HAS_CONTENTS flags for `.reginfo' and | |
307 | `.MIPS.abiflags' sections. | |
308 | (_bfd_mips_elf_final_link): Avoid reading beyond `.reginfo' | |
309 | section's end. | |
310 | ||
8772de11 MR |
311 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
312 | ||
313 | * section.c (SEC_FIXED_SIZE): New macro. | |
314 | * bfd-in2.h: Regenerate. | |
315 | ||
4f7fd351 MR |
316 | 2018-02-19 Maciej W. Rozycki <macro@mips.com> |
317 | ||
318 | * section.c (SEC_HAS_GOT_REF): Remove macro. | |
319 | * bfd-in2.h: Regenerate. | |
320 | ||
f2b740ac AM |
321 | 2018-02-19 Alan Modra <amodra@gmail.com> |
322 | ||
323 | * elf-attrs.c (_bfd_elf_parse_attributes): Correct _bfd_error_handler | |
324 | arguments. | |
325 | * elfxx-mips.c (_bfd_mips_elf_final_link): Likewise. | |
326 | * elfnn-riscv.c (_bfd_riscv_relax_align): Likewise. | |
327 | (_bfd_riscv_relax_pc): Likewise and fix typos. | |
328 | * libbfd-in.h (_bfd_error_handler): Add attribute printf. | |
329 | * libbfd.h: Regenerate. | |
330 | ||
8979927a AM |
331 | 2018-02-19 Alan Modra <amodra@gmail.com> |
332 | ||
333 | * dwarf2.c (read_section): Don't use 'll' format modifier. | |
334 | (find_abstract_instance): Likewise. | |
335 | * elfcore.h (elf_core_file_p): Likewise. | |
336 | ||
2dcf00ce AM |
337 | 2018-02-19 Alan Modra <amodra@gmail.com> |
338 | ||
339 | * bfd-in.h: Include inttypes.h or if not available define | |
340 | PRId64, PRIu64 and PRIx64. | |
341 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Remove support for L | |
342 | modifier to print bfd_vma. | |
343 | * coff-arm.c, * coff-mcore.c, * coff-ppc.c, * coff-rs6000.c, | |
344 | * coff-sh.c, * coff-tic80.c, * coffcode.h, * coffgen.c, * cofflink.c, | |
345 | * compress.c, * dwarf2.c, * elf-m10300.c, * elf.c, * elf32-arc.c, | |
346 | * elf32-arm.c, * elf32-bfin.c, * elf32-cris.c, * elf32-hppa.c, | |
347 | * elf32-i386.c, * elf32-ip2k.c, * elf32-lm32.c, * elf32-m32r.c, | |
348 | * elf32-m68k.c, * elf32-metag.c, * elf32-nds32.c, * elf32-nios2.c, | |
349 | * elf32-ppc.c, * elf32-rx.c, * elf32-s390.c, * elf32-score.c, | |
350 | * elf32-score7.c, * elf32-sh.c, * elf32-sh64.c, * elf32-spu.c, | |
351 | * elf32-tic6x.c, * elf32-tilepro.c, * elf32-v850.c, * elf32-vax.c, | |
352 | * elf32-xtensa.c, * elf64-alpha.c, * elf64-hppa.c, * elf64-ia64-vms.c, | |
353 | * elf64-mmix.c, * elf64-s390.c, * elf64-sh64.c, * elf64-x86-64.c, | |
354 | * elfcode.h, * elfcore.h, * elflink.c, * elfnn-aarch64.c, | |
355 | * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-mips.c, * elfxx-sparc.c, | |
356 | * elfxx-tilegx.c, * ieee.c, * ihex.c, * mach-o.c, * merge.c, * mmo.c, | |
357 | * peXXigen.c, * xcofflink.c: Replace use of Lx modifier with PRIx64, | |
358 | and cast input to uint64_t, and similarly for Ld and Lu. | |
359 | * bfd-in2.h: Regenerate. | |
360 | ||
c1c8c1ef AM |
361 | 2018-02-19 Alan Modra <amodra@gmail.com> |
362 | ||
363 | * elf32-arm.c, * elf32-hppa.c, * elf32-lm32.c, * elf32-m32r.c, | |
364 | * elf32-metag.c, * elf32-nds32.c, * elf32-or1k.c, * elf32-ppc.c, | |
365 | * elf32-s390.c, * elf32-sh.c, * elf32-tic6x.c, * elf32-tilepro.c, | |
366 | * elf64-ppc.c, * elf64-s390.c, * elflink.c, * elfnn-aarch64.c, | |
367 | * elfnn-riscv.c, * elfxx-sparc.c, * elfxx-tilegx.c, * elfxx-x86.c, | |
368 | * reloc.c: Replace use of %R and %T in format strings passed to | |
369 | einfo and friends by %pR and %pT. | |
370 | ||
871b3ab2 AM |
371 | 2018-02-19 Alan Modra <amodra@gmail.com> |
372 | ||
373 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Handle %pA and %pB in place | |
374 | of %A and %B. | |
375 | * aout-adobe.c: Update all messages using %A and %B. | |
376 | * aout-cris.c: Likewise. | |
377 | * aoutx.h: Likewise. | |
378 | * archive.c: Likewise. | |
379 | * binary.c: Likewise. | |
380 | * cache.c: Likewise. | |
381 | * coff-alpha.c: Likewise. | |
382 | * coff-arm.c: Likewise. | |
383 | * coff-i860.c: Likewise. | |
384 | * coff-mcore.c: Likewise. | |
385 | * coff-ppc.c: Likewise. | |
386 | * coff-rs6000.c: Likewise. | |
387 | * coff-sh.c: Likewise. | |
388 | * coff-tic4x.c: Likewise. | |
389 | * coff-tic54x.c: Likewise. | |
390 | * coff-tic80.c: Likewise. | |
391 | * coff64-rs6000.c: Likewise. | |
392 | * coffcode.h: Likewise. | |
393 | * coffgen.c: Likewise. | |
394 | * cofflink.c: Likewise. | |
395 | * coffswap.h: Likewise. | |
396 | * compress.c: Likewise. | |
397 | * cpu-arm.c: Likewise. | |
398 | * ecoff.c: Likewise. | |
399 | * elf-attrs.c: Likewise. | |
400 | * elf-eh-frame.c: Likewise. | |
401 | * elf-ifunc.c: Likewise. | |
402 | * elf-m10300.c: Likewise. | |
403 | * elf-properties.c: Likewise. | |
404 | * elf-s390-common.c: Likewise. | |
405 | * elf.c: Likewise. | |
406 | * elf32-arc.c: Likewise. | |
407 | * elf32-arm.c: Likewise. | |
408 | * elf32-avr.c: Likewise. | |
409 | * elf32-bfin.c: Likewise. | |
410 | * elf32-cr16.c: Likewise. | |
411 | * elf32-cr16c.c: Likewise. | |
412 | * elf32-cris.c: Likewise. | |
413 | * elf32-crx.c: Likewise. | |
414 | * elf32-d10v.c: Likewise. | |
415 | * elf32-d30v.c: Likewise. | |
416 | * elf32-epiphany.c: Likewise. | |
417 | * elf32-fr30.c: Likewise. | |
418 | * elf32-frv.c: Likewise. | |
419 | * elf32-gen.c: Likewise. | |
420 | * elf32-hppa.c: Likewise. | |
421 | * elf32-i370.c: Likewise. | |
422 | * elf32-i386.c: Likewise. | |
423 | * elf32-i960.c: Likewise. | |
424 | * elf32-ip2k.c: Likewise. | |
425 | * elf32-iq2000.c: Likewise. | |
426 | * elf32-lm32.c: Likewise. | |
427 | * elf32-m32c.c: Likewise. | |
428 | * elf32-m32r.c: Likewise. | |
429 | * elf32-m68hc11.c: Likewise. | |
430 | * elf32-m68hc12.c: Likewise. | |
431 | * elf32-m68hc1x.c: Likewise. | |
432 | * elf32-m68k.c: Likewise. | |
433 | * elf32-mcore.c: Likewise. | |
434 | * elf32-mep.c: Likewise. | |
435 | * elf32-metag.c: Likewise. | |
436 | * elf32-microblaze.c: Likewise. | |
437 | * elf32-moxie.c: Likewise. | |
438 | * elf32-msp430.c: Likewise. | |
439 | * elf32-mt.c: Likewise. | |
440 | * elf32-nds32.c: Likewise. | |
441 | * elf32-nios2.c: Likewise. | |
442 | * elf32-or1k.c: Likewise. | |
443 | * elf32-pj.c: Likewise. | |
444 | * elf32-ppc.c: Likewise. | |
445 | * elf32-rl78.c: Likewise. | |
446 | * elf32-rx.c: Likewise. | |
447 | * elf32-s390.c: Likewise. | |
448 | * elf32-score.c: Likewise. | |
449 | * elf32-score7.c: Likewise. | |
450 | * elf32-sh-symbian.c: Likewise. | |
451 | * elf32-sh.c: Likewise. | |
452 | * elf32-sh64.c: Likewise. | |
453 | * elf32-sparc.c: Likewise. | |
454 | * elf32-spu.c: Likewise. | |
455 | * elf32-tic6x.c: Likewise. | |
456 | * elf32-tilepro.c: Likewise. | |
457 | * elf32-v850.c: Likewise. | |
458 | * elf32-vax.c: Likewise. | |
459 | * elf32-visium.c: Likewise. | |
460 | * elf32-wasm32.c: Likewise. | |
461 | * elf32-xgate.c: Likewise. | |
462 | * elf32-xtensa.c: Likewise. | |
463 | * elf64-alpha.c: Likewise. | |
464 | * elf64-gen.c: Likewise. | |
465 | * elf64-hppa.c: Likewise. | |
466 | * elf64-ia64-vms.c: Likewise. | |
467 | * elf64-mmix.c: Likewise. | |
468 | * elf64-ppc.c: Likewise. | |
469 | * elf64-s390.c: Likewise. | |
470 | * elf64-sh64.c: Likewise. | |
471 | * elf64-sparc.c: Likewise. | |
472 | * elf64-x86-64.c: Likewise. | |
473 | * elfcode.h: Likewise. | |
474 | * elfcore.h: Likewise. | |
475 | * elflink.c: Likewise. | |
476 | * elfnn-aarch64.c: Likewise. | |
477 | * elfnn-ia64.c: Likewise. | |
478 | * elfnn-riscv.c: Likewise. | |
479 | * elfxx-mips.c: Likewise. | |
480 | * elfxx-sparc.c: Likewise. | |
481 | * elfxx-tilegx.c: Likewise. | |
482 | * elfxx-x86.c: Likewise. | |
483 | * hpux-core.c: Likewise. | |
484 | * ieee.c: Likewise. | |
485 | * ihex.c: Likewise. | |
486 | * libbfd.c: Likewise. | |
487 | * linker.c: Likewise. | |
488 | * mach-o.c: Likewise. | |
489 | * merge.c: Likewise. | |
490 | * mmo.c: Likewise. | |
491 | * oasys.c: Likewise. | |
492 | * pdp11.c: Likewise. | |
493 | * pe-mips.c: Likewise. | |
494 | * peXXigen.c: Likewise. | |
495 | * peicode.h: Likewise. | |
496 | * reloc.c: Likewise. | |
497 | * rs6000-core.c: Likewise. | |
498 | * srec.c: Likewise. | |
499 | * stabs.c: Likewise. | |
500 | * vms-alpha.c: Likewise. | |
501 | * xcofflink.c: Likewise. | |
502 | ||
dbc88fc1 AM |
503 | 2018-02-19 Alan Modra <amodra@gmail.com> |
504 | ||
505 | PR 22845 | |
506 | * elf.c (IS_TBSS): Define. | |
507 | (_bfd_elf_map_sections_to_segments): Use IS_TBSS. | |
508 | (assign_file_positions_for_non_load_sections): Revert last change. | |
509 | Properly calculate load segment limits to compare against relro limits. | |
510 | ||
325ba6fb AM |
511 | 2018-02-17 Alan Modra <amodra@gmail.com> |
512 | ||
513 | PR 22845 | |
514 | * elf.c (assign_file_positions_for_non_load_sections): Ignore | |
515 | degenerate zero size PT_LOAD segments when finding one overlapping | |
516 | the PT_GNU_RELRO segment. | |
517 | ||
d00dd7dc AM |
518 | 2018-02-16 Alan Modra <amodra@gmail.com> |
519 | ||
520 | * libbfd.c (_bfd_bool_bfd_false_error): Rename from bfd_false. | |
521 | (_bfd_bool_bfd_true): Rename from bfd_true. | |
522 | (_bfd_ptr_bfd_null_error): Rename from bfd_nullvoidptr. | |
523 | (_bfd_int_bfd_0): Rename from bfd_0. | |
524 | (_bfd_uint_bfd_0): Rename from bfd_0u. | |
525 | (_bfd_long_bfd_0): Rename from bfd_0l. | |
526 | (_bfd_long_bfd_n1_error): Rename from _bfd_n1. | |
527 | (_bfd_void_bfd): Rename from bfd_void. | |
528 | (_bfd_bool_bfd_false, _bfd_bool_bfd_asymbol_false), | |
529 | (_bfd_bool_bfd_link_false_error), | |
530 | (_bfd_bool_bfd_link_true, _bfd_bool_bfd_bfd_true), | |
531 | (_bfd_bool_bfd_uint_true, _bfd_bool_bfd_ptr_true), | |
532 | (_bfd_bool_bfd_asection_bfd_asection_true), | |
533 | (_bfd_bool_bfd_asymbol_bfd_asymbol_true), | |
534 | (_bfd_void_bfd_link, _bfd_void_bfd_asection): New functions. | |
535 | * archive.c (_bfd_noarchive_get_elt_at_index), | |
536 | (_bfd_noarchive_openr_next_archived_file), | |
537 | (_bfd_noarchive_construct_extended_name_table), | |
538 | (_bfd_noarchive_write_ar_hdr, _bfd_noarchive_truncate_arname), | |
539 | (_bfd_noarchive_write_armap): New functions. | |
540 | * archures.c (_bfd_nowrite_set_arch_mach): New function. | |
541 | * coff-alpha.c (alpha_ecoff_swap_coff_aux_in), | |
542 | (alpha_ecoff_swap_coff_sym_in, alpha_ecoff_swap_coff_lineno_in), | |
543 | (alpha_ecoff_swap_coff_aux_out, alpha_ecoff_swap_coff_sym_out), | |
544 | (alpha_ecoff_swap_coff_lineno_out), | |
545 | (alpha_ecoff_swap_coff_reloc_out): New functions. | |
546 | * coff-mips.c (mips_ecoff_swap_coff_aux_in), | |
547 | (mips_ecoff_swap_coff_sym_in, mips_ecoff_swap_coff_lineno_in), | |
548 | (mips_ecoff_swap_coff_aux_out, mips_ecoff_swap_coff_sym_out), | |
549 | (mips_ecoff_swap_coff_lineno_out), | |
550 | (mips_ecoff_swap_coff_reloc_out): New functions. | |
551 | * coffcode.h (coff_set_alignment_hook): Replace define with | |
552 | new function. | |
553 | (symname_in_debug_hook): Likewise. | |
554 | * ecoff.c (_bfd_ecoff_set_alignment_hook): New function. | |
555 | * elfxx-target.h (elf_backend_allow_non_load_phdr): Default to 0. | |
556 | * elf.c (assign_file_positions_except_relocs): Test | |
557 | elf_backend_allow_non_load_phdr for NULL. | |
558 | * elflink.c (_bfd_elf_omit_section_dynsym_default): Rename from | |
559 | _bfd_elf_link_omit_section_dynsym. Update uses. | |
560 | (_bfd_elf_omit_section_dynsym_all): New function. | |
561 | * elf-bfd.h (_bfd_elf_link_omit_section_dynsym): Delete. | |
562 | (_bfd_elf_omit_section_dynsym_default): Declare. | |
563 | (_bfd_elf_omit_section_dynsym_all): Declare. | |
564 | * linker.c (_bfd_nolink_sizeof_headers, _bfd_nolink_bfd_relax_section), | |
565 | (_bfd_nolink_bfd_get_relocated_section_contents), | |
566 | (_bfd_nolink_bfd_lookup_section_flags), | |
567 | (_bfd_nolink_bfd_is_group_section, _bfd_nolink_bfd_discard_group), | |
568 | (_bfd_nolink_bfd_link_hash_table_create), | |
569 | (_bfd_nolink_bfd_link_just_syms), | |
570 | (_bfd_nolink_bfd_copy_link_hash_symbol_type), | |
571 | (_bfd_nolink_bfd_link_split_section), | |
572 | (_bfd_nolink_section_already_linked), | |
573 | (_bfd_nolink_bfd_define_common_symbol), | |
574 | (_bfd_nolink_bfd_define_start_stop): New functions. | |
575 | * reloc.c (_bfd_norelocs_bfd_reloc_type_lookup), | |
576 | (_bfd_norelocs_bfd_reloc_name_lookup), | |
577 | (_bfd_nodynamic_canonicalize_dynamic_reloc): New functions. | |
578 | * section.c (_bfd_nowrite_set_section_contents): New function. | |
579 | * syms.c (_bfd_nosymbols_canonicalize_symtab), | |
580 | (_bfd_nosymbols_print_symbol, _bfd_nosymbols_get_symbol_info), | |
581 | (_bfd_nosymbols_get_symbol_version_string), | |
582 | (_bfd_nosymbols_bfd_is_local_label_name), | |
583 | (_bfd_nosymbols_get_lineno, _bfd_nosymbols_find_nearest_line), | |
584 | (_bfd_nosymbols_find_line, _bfd_nosymbols_find_inliner_info), | |
585 | (_bfd_nosymbols_bfd_make_debug_symbol), | |
586 | ( _bfd_nosymbols_read_minisymbols), | |
587 | ( _bfd_nosymbols_minisymbol_to_symbol), | |
588 | (_bfd_nodynamic_get_synthetic_symtab): New functions. | |
589 | * libbfd-in.h: Declare new functions. Update existing defines, | |
590 | removing casts. | |
591 | * aix386-core.c: Update to use new hooks. Formatting. | |
592 | * aout-adobe.c: Likewise. | |
593 | * aout-arm.c: Likewise. | |
594 | * aout-target.h: Likewise. | |
595 | * aout-tic30.c: Likewise. | |
596 | * aoutf1.h: Likewise. | |
597 | * binary.c: Likewise. | |
598 | * bout.c: Likewise. | |
599 | * cisco-core.c: Likewise. | |
600 | * coff-alpha.c: Likewise. | |
601 | * coff-i386.c: Likewise. | |
602 | * coff-i860.c: Likewise. | |
603 | * coff-i960.c: Likewise. | |
604 | * coff-ia64.c: Likewise. | |
605 | * coff-mips.c: Likewise. | |
606 | * coff-ppc.c: Likewise. | |
607 | * coff-rs6000.c: Likewise. | |
608 | * coff-sh.c: Likewise. | |
609 | * coff-tic30.c: Likewise. | |
610 | * coff-tic54x.c: Likewise. | |
611 | * coff-x86_64.c: Likewise. | |
612 | * coff64-rs6000.c: Likewise. | |
613 | * coffcode.h: Likewise. | |
614 | * elf-m10300.c: Likewise. | |
615 | * elf32-cr16.c: Likewise. | |
616 | * elf32-lm32.c: Likewise. | |
617 | * elf32-m32r.c: Likewise. | |
618 | * elf32-metag.c: Likewise. | |
619 | * elf32-score.c: Likewise. | |
620 | * elf32-score7.c: Likewise. | |
621 | * elf32-tilepro.c: Likewise. | |
622 | * elf32-xstormy16.c: Likewise. | |
623 | * elf32-xtensa.c: Likewise. | |
624 | * elf64-alpha.c: Likewise. | |
625 | * elf64-hppa.c: Likewise. | |
626 | * elf64-ia64-vms.c: Likewise. | |
627 | * elf64-mmix.c: Likewise. | |
628 | * elf64-sh64.c: Likewise. | |
629 | * elfnn-ia64.c: Likewise. | |
630 | * elfxx-sparc.c: Likewise. | |
631 | * elfxx-target.h: Likewise. | |
632 | * elfxx-tilegx.c: Likewise. | |
633 | * elfxx-x86.h: Likewise. | |
634 | * hp300hpux.c: Likewise. | |
635 | * hppabsd-core.c: Likewise. | |
636 | * hpux-core.c: Likewise. | |
637 | * i386msdos.c: Likewise. | |
638 | * i386os9k.c: Likewise. | |
639 | * ieee.c: Likewise. | |
640 | * ihex.c: Likewise. | |
641 | * irix-core.c: Likewise. | |
642 | * libaout.h: Likewise. | |
643 | * libecoff.h: Likewise. | |
644 | * mach-o-target.c: Likewise. | |
645 | * mach-o.c: Likewise. | |
646 | * mipsbsd.c: Likewise. | |
647 | * mmo.c: Likewise. | |
648 | * netbsd-core.c: Likewise. | |
649 | * nlm-target.h: Likewise. | |
650 | * oasys.c: Likewise. | |
651 | * osf-core.c: Likewise. | |
652 | * pdp11.c: Likewise. | |
653 | * pe-mips.c: Likewise. | |
654 | * pe-x86_64.c: Likewise. | |
655 | * pef.c: Likewise. | |
656 | * plugin.c: Likewise. | |
657 | * ppcboot.c: Likewise. | |
658 | * ptrace-core.c: Likewise. | |
659 | * sco5-core.c: Likewise. | |
660 | * som.c: Likewise. | |
661 | * sparclynx.c: Likewise. | |
662 | * srec.c: Likewise. | |
663 | * tekhex.c: Likewise. | |
664 | * trad-core.c: Likewise. | |
665 | * verilog.c: Likewise. | |
666 | * versados.c: Likewise. | |
667 | * vms-alpha.c: Likewise. | |
668 | * vms-lib.c: Likewise. | |
669 | * wasm-module.c: Likewise. | |
670 | * xsym.c: Likewise. | |
671 | * libbfd.h: Regenerate. | |
672 | ||
2a0d9853 JW |
673 | 2018-02-15 Jim Wilson <jimw@sifive.com> |
674 | ||
09ca4b9d JW |
675 | * elfnn-riscv.c (_bfd_riscv_relax_section): Ifdef out check to ignore |
676 | symbols whose section address is zero. | |
677 | ||
2a0d9853 JW |
678 | * elfnn-riscv.c (riscv_elf_relocate_section): Use bfd_reloc_dangerous |
679 | when pcrel_lo reloc has an addend. Use reloc_dangerous callback for | |
680 | bfd_reloc_dangerous. Use einfo instead of warning callback for errors. | |
681 | Add %X%P to error messages. | |
682 | ||
e513bd38 EB |
683 | 2018-02-15 Eric Botcazou <ebotcazou@adacore.com> |
684 | ||
685 | PR ld/22832 | |
686 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
687 | Pass FALSE instead of TRUE as 'create' argument to bfd_link_hash_lookup | |
688 | and assert that the result of the call is not NULL. | |
689 | ||
12ef3f5a NC |
690 | 2018-02-14 Nick Clifton <nickc@redhat.com> |
691 | ||
692 | PR 22823 | |
693 | Revert previous delta. Add extra casts to avoid compile time | |
694 | warnings instead. | |
695 | * libbfd-in.h (_bfd_generic_bfd_copy_private_bfd_data): Add extra | |
696 | cast to avoid warning from gcc v8 compiler. | |
697 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
698 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
699 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
700 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
701 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
702 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
703 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
704 | (_bfd_noarchive_truncate_arname): Likewise. | |
705 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
706 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
707 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
708 | (_bfd_nosymbols_print_symbol): Likewise. | |
709 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
710 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
711 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
712 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
713 | (_bfd_nosymbols_get_lineno): Likewise. | |
714 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
715 | (_bfd_nosymbols_find_line): Likewise. | |
716 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
717 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
718 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
719 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
720 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
721 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
722 | (_bfd_nowrite_set_arch_mach): Likewise. | |
723 | (_bfd_nowrite_set_section_contents): Likewise. | |
724 | (_bfd_nolink_sizeof_headers): Likewise. | |
725 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
726 | (_bfd_nolink_bfd_relax_section): Likewise. | |
727 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
728 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
729 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
730 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
731 | (_bfd_nolink_bfd_discard_group): Likewise. | |
732 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
733 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
734 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
735 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
736 | (_bfd_nolink_bfd_final_link): Likewise. | |
737 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
738 | (_bfd_nolink_section_already_linked): Likewise. | |
739 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
740 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
741 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
742 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
743 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
744 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
745 | * libbfd.c (bfd_false_any): Delete. | |
746 | (bfd_true_any, bfd_nullvoidptr_any, bfd_0_any): Delete. | |
747 | (bfd_0u_any, bfd_0l_any, _bfd_n1_any, bfd_void_any): Delete. | |
748 | * libbfd.h (extern): Regenerate | |
749 | * aout-target.h (MY_bfd_is_target_special_symbol): Add extra | |
750 | cast to avoid warning from gcc v8 compiler. | |
751 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
752 | * binary.c (binary_get_symbol_info): Likewise. | |
753 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
754 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
755 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
756 | (symname_in_debug_hook): Likewise. | |
757 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
758 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
759 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
760 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
761 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
762 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
763 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
764 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
765 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
766 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
767 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
768 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
769 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
770 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
771 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
772 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
773 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
774 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
775 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
776 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
777 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
778 | (elf_backend_init_index_section): Likewise. | |
779 | (elf_backend_allow_non_load_phdr): Likewise. | |
780 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
781 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
782 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
783 | (ieee_write_armap): Likewise. | |
784 | (ieee_write_ar_hdr): Likewise. | |
785 | (ieee_bfd_is_target_special_symbol): Likewise. | |
786 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
787 | (ihex_bfd_is_target_special_symbol): Likewise. | |
788 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
789 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
790 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
791 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
792 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
793 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
794 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
795 | (oasys_write_armap): Likewise. | |
796 | (oasys_write_ar_hdr): Likewise. | |
797 | (oasys_bfd_is_target_special_symbol): Likewise. | |
798 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
799 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
800 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
801 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
802 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
803 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
804 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
805 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
806 | (versados_bfd_reloc_name_lookup): Likewise. | |
807 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
808 | (vms_bfd_define_start_stop): Likewise. | |
809 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
810 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
811 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
812 | ||
451875b4 L |
813 | 2018-02-14 H.J. Lu <hongjiu.lu@intel.com> |
814 | ||
815 | PR ld/22842 | |
816 | * elf32-i386.c (elf_i386_check_relocs): Pass FALSE for non | |
817 | PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
818 | * elf64-x86-64.c (elf_x86_64_check_relocs): Create PLT for | |
819 | R_X86_64_PC32 reloc against dynamic function in data section. | |
820 | Pass TRUE for PC-relative PLT to NEED_DYNAMIC_RELOCATION_P. | |
821 | (elf_x86_64_relocate_section): Use PLT for R_X86_64_PC32 reloc | |
822 | against dynamic function in data section. | |
823 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Use PLT in PIE as | |
824 | function address only if pcrel_plt is true. | |
825 | (_bfd_x86_elf_link_hash_table_create): Set pcrel_plt. | |
826 | * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): Add PCREL_PLT for | |
827 | PC-relative PLT. If PLT is PC-relative, don't generate dynamic | |
828 | PC-relative relocation against a function definition in data | |
829 | secton in PIE. Remove the obsolete comments. | |
830 | (elf_x86_link_hash_table): Add pcrel_plt. | |
831 | ||
1031c264 L |
832 | 2018-02-13 H.J. Lu <hongjiu.lu@intel.com> |
833 | ||
834 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Check bfd_link_dll, | |
835 | instead of bfd_link_pic, for building shared library. | |
836 | ||
bd7ab16b L |
837 | 2018-02-13 H.J. Lu <hongjiu.lu@intel.com> |
838 | ||
839 | PR gas/22791 | |
840 | * elf64-x86-64.c (is_32bit_relative_branch): Removed. | |
841 | (elf_x86_64_relocate_section): Check PIC relocations in PIE. | |
842 | Remove is_32bit_relative_branch usage. Disallow PC32 reloc | |
843 | against protected function in shared object. | |
844 | ||
80c96350 ST |
845 | 2018-02-13 Sergei Trofimovich <slyfox@inbox.ru> |
846 | ||
847 | PR 22828 | |
848 | * po/ru.po: Fix typo in Russian translation. | |
849 | ||
87993319 MR |
850 | 2018-02-13 Maciej W. Rozycki <macro@mips.com> |
851 | ||
852 | * wasm-module.c (wasm_scan_name_function_section): Rename | |
853 | `index' local variable to `idx'. | |
854 | ||
68d20676 NC |
855 | 2018-02-13 Nick Clifton <nickc@redhat.com> |
856 | ||
857 | PR 22823 | |
858 | Fix compile time warnings generated by gcc version 8. | |
859 | * libbfd-in.h: Remove extraneous text from prototypes. | |
860 | Add prototypes for bfd_false_any, bfd_true_any, | |
861 | bfd_nullvoidptr_any, bfd_0_any, bfd_0u_any, bfd_0l_any, | |
862 | bfd_n1_any, bfd_void_any. | |
863 | (_bfd_generic_bfd_copy_private_bfd_data): Use vararg based dummy | |
864 | function. | |
865 | (_bfd_generic_bfd_merge_private_bfd_data): Likewise. | |
866 | (_bfd_generic_bfd_set_private_flags): Likewise. | |
867 | (_bfd_generic_bfd_copy_private_section_data): Likewise. | |
868 | (_bfd_generic_bfd_copy_private_symbol_data): Likewise. | |
869 | (_bfd_generic_bfd_copy_private_header_data): Likewise. | |
870 | (_bfd_generic_bfd_print_private_bfd_data): Likewise. | |
871 | (_bfd_noarchive_construct_extended_name_table): Likewise. | |
872 | (_bfd_noarchive_truncate_arname): Likewise. | |
873 | (_bfd_noarchive_write_ar_hdr): Likewise. | |
874 | (_bfd_noarchive_get_elt_at_index): Likewise. | |
875 | (_bfd_nosymbols_canonicalize_symtab): Likewise. | |
876 | (_bfd_nosymbols_print_symbol): Likewise. | |
877 | (_bfd_nosymbols_get_symbol_info): Likewise. | |
878 | (_bfd_nosymbols_get_symbol_version_string): Likewise. | |
879 | (_bfd_nosymbols_bfd_is_local_label_name): Likewise. | |
880 | (_bfd_nosymbols_bfd_is_target_special_symbol): Likewise. | |
881 | (_bfd_nosymbols_get_lineno): Likewise. | |
882 | (_bfd_nosymbols_find_nearest_line): Likewise. | |
883 | (_bfd_nosymbols_find_line): Likewise. | |
884 | (_bfd_nosymbols_find_inliner_info): Likewise. | |
885 | (_bfd_nosymbols_bfd_make_debug_symbol): Likewise. | |
886 | (_bfd_nosymbols_read_minisymbols): Likewise. | |
887 | (_bfd_nosymbols_minisymbol_to_symbol): Likewise. | |
888 | (_bfd_norelocs_bfd_reloc_type_lookup): Likewise. | |
889 | (_bfd_norelocs_bfd_reloc_name_lookup): Likewise. | |
890 | (_bfd_nowrite_set_arch_mach): Likewise. | |
891 | (_bfd_nowrite_set_section_contents): Likewise. | |
892 | (_bfd_nolink_sizeof_headers): Likewise. | |
893 | (_bfd_nolink_bfd_get_relocated_section_contents): Likewise. | |
894 | (_bfd_nolink_bfd_relax_section): Likewise. | |
895 | (_bfd_nolink_bfd_gc_sections): Likewise. | |
896 | (_bfd_nolink_bfd_lookup_section_flags): Likewise. | |
897 | (_bfd_nolink_bfd_merge_sections): Likewise. | |
898 | (_bfd_nolink_bfd_is_group_section): Likewise. | |
899 | (_bfd_nolink_bfd_discard_group): Likewise. | |
900 | (_bfd_nolink_bfd_link_hash_table_create): Likewise. | |
901 | (_bfd_nolink_bfd_link_add_symbols): Likewise. | |
902 | (_bfd_nolink_bfd_link_just_syms): Likewise. | |
903 | (_bfd_nolink_bfd_copy_link_hash_symbol_type): Likewise. | |
904 | (_bfd_nolink_bfd_final_link): Likewise. | |
905 | (_bfd_nolink_bfd_link_split_section): Likewise. | |
906 | (_bfd_nolink_section_already_linked): Likewise. | |
907 | (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
908 | (_bfd_nolink_bfd_define_start_stop): Likewise. | |
909 | (_bfd_nodynamic_canonicalize_dynamic_symtab): Likewise. | |
910 | (_bfd_nodynamic_get_synthetic_symtab): Likewise. | |
911 | (_bfd_nodynamic_get_dynamic_reloc_upper_bound _bfd_): Likewise. | |
912 | (_bfd_nodynamic_canonicalize_dynamic_reloc): Likewise. | |
913 | * libbfd.c (bfd_false_any): New function. Like bfd_false but | |
914 | accepts one or more arguments. | |
915 | (bfd_true_any): Likewise. | |
916 | (bfd_nullvoidptr_any): Likewise. | |
917 | (bfd_0_any): Likewise. | |
918 | (bfd_0u_any): Likewise. | |
919 | (bfd_0l_any): Likewise. | |
920 | (_bfd_n1_any): Likewise. | |
921 | (bfd_void_any): Likewise. | |
922 | * libbfd.h (extern): Regenerate | |
923 | * aout-target.h (MY_bfd_is_target_special_symbol): Use vararg | |
924 | based dummy function. | |
925 | * aout-tic30.c (tic30_aout_set_arch_mach): Likewise. | |
926 | * binary.c (binary_get_symbol_info): Likewise. | |
927 | * coff-alpha.c (alpha_ecoff_backend_data): Likewise. | |
928 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
929 | * coffcode.h (coff_set_alignment_hook): Likewise. | |
930 | (symname_in_debug_hook): Likewise. | |
931 | (bfd_coff_backend_data bigobj_swap_table): Likewise. | |
932 | * elf-m10300.c (elf_backend_omit_section_dynsym): Likewise. | |
933 | * elf32-cr16.c (elf_backend_omit_section_dynsym): Likewise. | |
934 | * elf32-lm32.c (elf_backend_omit_section_dynsym): Likewise. | |
935 | * elf32-m32r.c (elf_backend_omit_section_dynsym): Likewise. | |
936 | * elf32-metag.c (elf_backend_omit_section_dynsym): Likewise. | |
937 | * elf32-score.c (elf_backend_omit_section_dynsym): Likewise. | |
938 | * elf32-score7.c (elf_backend_omit_section_dynsym): Likewise. | |
939 | * elf32-xstormy16.c (elf_backend_omit_section_dynsym): Likewise. | |
940 | * elf32-xtensa.c (elf_backend_omit_section_dynsym): Likewise. | |
941 | * elf64-alpha.c (elf_backend_omit_section_dynsym): Likewise. | |
942 | * elf64-hppa.c (elf_backend_omit_section_dynsym): Likewise. | |
943 | * elf64-ia64-vms.c (elf_backend_omit_section_dynsym): Likewise. | |
944 | * elf64-mmix.c (elf_backend_omit_section_dynsym): Likewise. | |
945 | * elf64-sh64.c (elf_backend_omit_section_dynsym): Likewise. | |
946 | * elfnn-ia64.c (elf_backend_omit_section_dynsym): Likewise. | |
947 | * elfxx-target.h (bfd_elfNN_bfd_debug_info_accumulate): Likewise. | |
948 | (bfd_elfNN_bfd_make_debug_symbol): Likewise. | |
949 | (bfd_elfNN_bfd_merge_private_bfd_data): Likewise. | |
950 | (bfd_elfNN_bfd_set_private_flags): Likewise. | |
951 | (bfd_elfNN_bfd_is_target_special_symbol): Likewise. | |
952 | (elf_backend_init_index_section): Likewise. | |
953 | (elf_backend_allow_non_load_phdr): Likewise. | |
954 | * elfxx-x86.h (elf_backend_omit_section_dynsym): Likewise. | |
955 | * i386msdos.c (msdos_bfd_is_target_special_symbol): Likewise. | |
956 | * ieee.c (ieee_construct_extended_name_table): Likewise. | |
957 | (ieee_write_armap): Likewise. | |
958 | (ieee_write_ar_hdr): Likewise. | |
959 | (ieee_bfd_is_target_special_symbol): Likewise. | |
960 | * ihex.c (ihex_canonicalize_symtab): Likewise. | |
961 | (ihex_bfd_is_target_special_symbol): Likewise. | |
962 | * libaout.h (aout_32_bfd_is_target_special_symbol): Likewise. | |
963 | * libecoff.h (_bfd_ecoff_bfd_is_target_special_symbol): Likewise. | |
964 | (_bfd_ecoff_set_alignment_hook): Likewise. | |
965 | * mach-o-target.c (bfd_mach_o_bfd_is_target_special_symbol): Likewise. | |
966 | * mmo.c (mmo_bfd_is_target_special_symbol): Likewise. | |
967 | * nlm-target.h (nlm_bfd_is_target_special_symbol): Likewise. | |
968 | * oasys.c (oasys_construct_extended_name_table): Likewise. | |
969 | (oasys_write_armap): Likewise. | |
970 | (oasys_write_ar_hdr): Likewise. | |
971 | (oasys_bfd_is_target_special_symbol): Likewise. | |
972 | * pef.c (bfd_pef_bfd_is_target_special_symbol): Likewise. | |
973 | * plugin.c (bfd_plugin_bfd_is_target_special_symbol): Likewise. | |
974 | * ppcboot.c (ppcboot_bfd_is_target_special_symbol): Likewise. | |
975 | * som.c (som_bfd_is_target_special_symbol): Likewise. | |
976 | * srec.c (srec_bfd_is_target_special_symbol): Likewise. | |
977 | * tekhex.c (tekhex_bfd_is_target_special_symbol): Likewise. | |
978 | * verilog.c (verilog_bfd_is_target_special_symbol): Likewise. | |
979 | * versados.c (versados_bfd_is_target_special_symbol): Likewise. | |
980 | (versados_bfd_reloc_name_lookup): Likewise. | |
981 | * vms-alpha.c (vms_bfd_is_target_special_symbol): Likewise. | |
982 | (vms_bfd_define_start_stop): Likewise. | |
983 | (alpha_vms_bfd_is_target_special_symbol): Likewise. | |
984 | * wasm-module.c (wasm_bfd_is_target_special_symbol): Likewise. | |
985 | * xsym.c (bfd_sym_bfd_is_target_special_symbol): Likewise. | |
986 | * elf32-arc.c (get_replace_function): Assign replacement function | |
987 | to func pointer. | |
988 | * elf32-i370.c (i370_noop): Update prototype. | |
989 | ||
6e5e9d58 AM |
990 | 2018-02-13 Alan Modra <amodra@gmail.com> |
991 | ||
992 | PR 22836 | |
993 | * elf.c (_bfd_elf_fixup_group_sections): Account for removed | |
994 | relocation sections. If size reduces to just the flag word, | |
995 | remove that too and mark with SEC_EXCLUDE. | |
996 | * elflink.c (bfd_elf_final_link): Strip empty group sections. | |
997 | ||
f2731e0c AM |
998 | 2018-02-13 Alan Modra <amodra@gmail.com> |
999 | ||
1000 | PR 22829 | |
1001 | * elf.c (assign_file_positions_for_non_load_sections): Rewrite | |
1002 | PT_GNU_RELRO setup. | |
1003 | ||
830db048 ZF |
1004 | 2018-02-12 Zebediah Figura <z.figura12@gmail.com> |
1005 | ||
1006 | * i386msdos.c (msdos_mkobject); New function. | |
1007 | (msdos_object_p): New function. | |
1008 | (i386_msdos_vec): Use msdos_object_p as the check_format | |
1009 | function. | |
1010 | * peicode.h: Rename external_PEI_DOS_hdr, DOSMAGIC, and | |
1011 | NT_SIGNATURE to external_DOS_hdr, IMAGE_DOS_SIGNATURE, and | |
1012 | IMAGE_NT_SIGNATURE. | |
1013 | * peXXigen.c: Likewise. | |
1014 | * coff-ia64.c: Likewise. | |
1015 | ||
94fe5757 NC |
1016 | 2018-02-12 Nick Clifton <nickc@redhat.com> |
1017 | ||
1018 | * elf32-nds32.c (nds32_elf_relax_longjump3): Remove redundant | |
1019 | assignment. | |
0b8683b7 | 1020 | * elf32-arc.c (elf_arc_relocate_section): Likewise. |
94fe5757 | 1021 | |
d805612e | 1022 | 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> |
a8735c82 EB |
1023 | |
1024 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Reorder conditions. | |
1025 | (sparc_elf_append_rela): Assert that there is enough room in section. | |
1026 | (_bfd_sparc_elf_copy_indirect_symbol): Fix formatting. | |
1027 | (_bfd_sparc_elf_adjust_dynamic_symbol): Minor tweak. | |
1028 | (allocate_dynrelocs): Remove outdated comments and reorder conditions. | |
1029 | For a symbol subject to a GOT relocation, reserve a slot in the | |
1030 | relocation section if the symbol isn't dynamic and we are in PIC mode. | |
1031 | (_bfd_sparc_elf_relocate_section) <R_SPARC_GOTDATA_OP>: If relocation | |
1032 | is relaxed and a slot was reserved, generate a R_SPARC_NONE relocation. | |
1033 | <R_SPARC_GOTDATA_OP_HIX22>: Adjust comments. | |
1034 | <R_SPARC_PC10>: Reorder conditions. Remove always-false assertion. | |
1035 | (_bfd_sparc_elf_finish_dynamic_symbol): Rename local_undefweak into | |
1036 | resolved_to_zero. Do not generate a dynamic GOT relocation for an | |
1037 | undefined weak symbol with non-default visibility. Remove superfluous | |
1038 | 'else' and fix formatting. | |
1039 | ||
3b4c3844 L |
1040 | 2018-02-09 H.J. Lu <hongjiu.lu@intel.com> |
1041 | ||
1042 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle | |
1043 | is_solaris. | |
1044 | (i386_elf32_sol2_vec): Don't declare. | |
1045 | (elf_i386_link_setup_gnu_properties): Also handle is_solaris. | |
1046 | Don't set need_global_offset_table. | |
1047 | (elf_i386_solaris_arch_bed): New. | |
1048 | (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for | |
1049 | Solaris. | |
1050 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check | |
1051 | target_os != is_nacl instead of target_os == is_normal. | |
1052 | (x86_64_elf64_sol2_vec): Don't declare. | |
1053 | (elf_x86_64_link_setup_gnu_properties): Check target_os != | |
1054 | is_nacl instead of target_os == is_normal. Don't set | |
1055 | need_global_offset_table. | |
1056 | (elf_x86_64_solaris_arch_bed): New. | |
1057 | (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for | |
1058 | Solaris. | |
1059 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep | |
1060 | _GLOBAL_OFFSET_TABLE_ for Solaris. | |
1061 | (_bfd_x86_elf_link_setup_gnu_properties): Don't copy | |
1062 | need_global_offset_table. | |
1063 | * elfxx-x86.h (elf_x86_target_os): Add is_solaris. | |
1064 | (elf_x86_link_hash_table): Remove need_global_offset_table. | |
1065 | (elf_x86_init_table): Likewise. | |
1066 | ||
15b23f36 L |
1067 | 2018-02-08 H.J. Lu <hongjiu.lu@intel.com> |
1068 | ||
1069 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
1070 | Remove prototype. | |
1071 | (i386_elf32_sol2_vec): Declared. | |
1072 | (elf_i386_link_setup_gnu_properties): Set | |
1073 | need_global_offset_table with info->output_bfd->xvec. | |
1074 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
1075 | Remove prototype. | |
1076 | (x86_64_elf64_sol2_vec): Declared. | |
1077 | (elf_x86_64_link_setup_gnu_properties): Set | |
1078 | need_global_offset_table with info->output_bfd->xvec. | |
1079 | ||
dc11dea2 L |
1080 | 2018-02-08 H.J. Lu <hongjiu.lu@intel.com> |
1081 | ||
1082 | * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields): | |
1083 | New prototype. | |
1084 | (elf_i386_link_setup_gnu_properties): Set need_global_offset_table | |
1085 | for Solaris. | |
1086 | * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields): | |
1087 | New prototype. | |
1088 | (elf_x86_64_link_setup_gnu_properties): Set | |
1089 | need_global_offset_table for Solaris. | |
1090 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the | |
1091 | unused _GLOBAL_OFFSET_TABLE_ for Solaris. | |
1092 | (_bfd_x86_elf_link_setup_gnu_properties): Copy | |
1093 | need_global_offset_table. | |
1094 | * elfxx-x86.h (elf_x86_link_hash_table): Add | |
1095 | need_global_offset_table. | |
1096 | (elf_x86_init_table): Likewise. | |
1097 | ||
3f48fe4a JW |
1098 | 2018-02-08 Jim Wilson <jimw@sifive.com> |
1099 | ||
1100 | * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous | |
1101 | change. | |
1102 | ||
ef135d43 NC |
1103 | 2018-02-08 Nick Clifton <nickc@redhat.com> |
1104 | ||
1105 | PR 22788 | |
1106 | * elf.c (elf_parse_notes): Reject notes with excessuively large | |
1107 | alignments. | |
1108 | ||
407aa07c AM |
1109 | 2018-02-07 Alan Modra <amodra@gmail.com> |
1110 | ||
1111 | Revert 2018-01-17 Alan Modra <amodra@gmail.com> | |
1112 | * elf32-ppc.c: Remove speculation barrier support. | |
1113 | * elf32-ppc.h: Likewise. | |
1114 | * elf64-ppc.c: Likewise. | |
1115 | * elf64-ppc.h: Likewise. | |
1116 | ||
ed01220c JW |
1117 | 2018-02-06 Jim Wilson <jimw@sifive.com> |
1118 | ||
1119 | * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used | |
1120 | callback to report an error. | |
1121 | ||
c20c30f6 EB |
1122 | 2018-02-06 Eric Botcazou <ebotcazou@adacore.com> |
1123 | ||
1124 | PR ld/22263 | |
1125 | * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic | |
1126 | into call to !bfd_link_executable and tidy up. | |
1127 | (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up. | |
1128 | <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to | |
1129 | !bfd_link_executable. | |
1130 | <R_SPARC_TLS_IE_HI22>: Likewise. | |
1131 | <GOT relocations>: Remove useless code, tidy and merge related blocks. | |
1132 | <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to | |
1133 | !bfd_link_executable. | |
1134 | <R_SPARC_WPLT30>: Tidy up. | |
1135 | (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to | |
1136 | !bfd_link_executable. | |
1137 | (allocate_dynrelocs): Likewise. | |
1138 | (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up. | |
1139 | <R_SPARC_TLS_GD_HI22>: Merge into... | |
1140 | <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to | |
1141 | sparc_elf_tls_transition and remove redundant code. | |
1142 | <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to | |
1143 | !bfd_link_executable. | |
1144 | <R_SPARC_TLS_LDO_HIX22>: Likewise. | |
1145 | <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up. | |
1146 | <R_SPARC_TLS_LDM_CALL>: Likewise. | |
1147 | <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up. | |
1148 | <R_SPARC_TLS_GD_ADD>: Likewise. | |
1149 | <R_SPARC_TLS_LDM_ADD>: Likewise. | |
1150 | <R_SPARC_TLS_LDO_ADD>: Likewise. | |
1151 | <R_SPARC_TLS_IE_LD>: Likewise. | |
1152 | ||
46d09186 NC |
1153 | 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com> |
1154 | ||
1155 | PR 22789 | |
1156 | * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf | |
1157 | functions failed to find the function name, try the generic elf | |
1158 | find function instead. | |
1159 | ||
8278e7ce SDJ |
1160 | 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com> |
1161 | ||
1162 | * coff-rs6000.c (xcoff_write_archive_contents_old): Use | |
1163 | 'memcpy' instead of 'strncpy' when writing the magic number. | |
1164 | ||
64e234d4 NC |
1165 | 2018-02-06 Nick Clifton <nickc@redhat.com> |
1166 | ||
1167 | PR 22794 | |
1168 | * opncls.c (bfd_get_debug_link_info_1): Check the size of the | |
1169 | section before attempting to read it in. | |
1170 | (bfd_get_alt_debug_link_info): Likewise. | |
1171 | ||
422f3d3d PC |
1172 | 2018-02-06 Paul Carroll <pcarroll@codesourcery.com> |
1173 | ||
1174 | * bfd/dwarf2.c (find_abstract_name): Modified to return file and | |
1175 | line information in addition to name, if they can be found. | |
1176 | ||
279b2f94 RL |
1177 | 2018-02-05 Renlin Li <renlin.li@arm.com> |
1178 | ||
1179 | PR ld/22764 | |
1180 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the | |
1181 | R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the | |
1182 | check for writeable section as well. | |
1183 | ||
cd048363 L |
1184 | 2018-02-05 H.J. Lu <hongjiu.lu@intel.com> |
1185 | ||
1186 | PR ld/22782 | |
1187 | * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if | |
1188 | _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve | |
1189 | undefined weak symbol to 0. | |
1190 | * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced | |
1191 | if _GLOBAL_OFFSET_TABLE_ is referenced. | |
1192 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check | |
1193 | got_referenced instead of ref_regular_nonweak. Remove the | |
1194 | unused _GLOBAL_OFFSET_TABLE_ from symbol table. | |
1195 | * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced. | |
1196 | ||
e65b1a78 MR |
1197 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
1198 | ||
1199 | * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to | |
1200 | initialize `hi_reloc'. | |
1201 | ||
2d6dda71 MR |
1202 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
1203 | ||
1204 | * elfxx-mips.c (_bfd_mips_elf_section_processing): For | |
1205 | SHT_MIPS_REGINFO sections don't assert the correct size and | |
1206 | report an error instead. | |
1207 | ||
75506100 MR |
1208 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
1209 | ||
1210 | * elf.c (_bfd_elf_write_object_contents): Propagate a failure | |
1211 | status from `->elf_backend_section_processing'. | |
1212 | ||
7f02625e JW |
1213 | 2018-02-02 Jim Wilson <jimw@sifive.com> |
1214 | ||
1215 | PR ld/22756 | |
1216 | * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info. | |
1217 | If link_info->wrap_hash, check for a duplicate symbol and ignore. | |
1218 | (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le): | |
1219 | Pass new argument to riscv_relax_delete_bytes. | |
1220 | (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove | |
1221 | ATTRIBUTE_UNUSED from link_info parameter. | |
1222 | ||
d830549d AM |
1223 | 2018-02-02 Alan Modra <amodra@gmail.com> |
1224 | ||
1225 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops | |
1226 | emitted for toc sequence optimization. Set and use "howto" later. | |
1227 | ||
e99955cd SM |
1228 | 2018-02-01 Simon Marchi <simon.marchi@ericsson.com> |
1229 | ||
1230 | * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer | |
1231 | arithmetic on NULL pointer. | |
1232 | * elflink.c (_bfd_elf_archive_symbol_lookup, | |
1233 | elf_link_add_archive_symbols): Likewise. | |
1234 | ||
bf3077a6 MM |
1235 | 2018-01-31 Michael Matz <matz@suse.de> |
1236 | ||
1237 | * elflink.c (bfd_elf_define_start_stop): Fix check of | |
1238 | def_dynamic. | |
1239 | ||
823143c6 L |
1240 | 2018-01-31 H.J. Lu <hongjiu.lu@intel.com> |
1241 | ||
1242 | PR ld/21964 | |
1243 | * elflink.c (bfd_elf_define_start_stop): Check if __start and | |
1244 | __stop symbols are referenced by shared objects. | |
1245 | ||
76cb3a89 AM |
1246 | 2018-01-30 Alan Modra <amodra@gmail.com> |
1247 | ||
1248 | PR 22758 | |
1249 | * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new | |
1250 | segment when demand paged with lma on the same page. Test this | |
1251 | before load/non-load, executable/non-executable, | |
1252 | writable/non-writable tests and simplify. Delete bogus relro | |
1253 | condition in writable/non-writable test. Delete outdated | |
1254 | comment. Formatting. | |
1255 | ||
36b8fda5 AM |
1256 | 2018-01-30 Alan Modra <amodra@gmail.com> |
1257 | ||
1258 | * elflink.c (bfd_elf_define_start_stop): Make __start and __stop | |
1259 | symbols dynamic. | |
1260 | ||
eb77f6a4 AM |
1261 | 2018-01-29 Alan Modra <amodra@gmail.com> |
1262 | ||
1263 | PR 22741 | |
1264 | * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in | |
1265 | range before converting to a symbol table pointer. | |
1266 | ||
7d73b4c8 NC |
1267 | 2018-01-27 Nick Clifton <nickc@redhat.com> |
1268 | ||
1269 | * po/ru.po: Updated Russian translation. | |
1270 | ||
32253bb7 AM |
1271 | 2018-01-26 Alan Modra <amodra@gmail.com> |
1272 | ||
1273 | * elflink.c (bfd_elf_define_start_stop): Override symbols when | |
1274 | they are defined dynamically. | |
1275 | ||
ba21f564 AM |
1276 | 2018-01-26 Alan Modra <amodra@gmail.com> |
1277 | ||
1278 | * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when | |
1279 | .branch_lt changes size. | |
1280 | ||
38e64b0e AM |
1281 | 2018-01-25 Alan Modra <amodra@gmail.com> |
1282 | ||
1283 | PR 22746 | |
1284 | * elfcode.h (elf_object_p): Avoid integer overflow. | |
1285 | ||
bb363086 EB |
1286 | 2018-01-25 Eric Botcazou <ebotcazou@adacore.com> |
1287 | ||
1288 | PR ld/22727 | |
1289 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
1290 | Do a mere lookup of the __tls_get_addr symbol instead of adding it. | |
1291 | ||
1292 | Revert | |
1293 | 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> | |
1294 | ||
1295 | PR ld/22263 | |
1296 | * elfxx-sparc.c (sparc_elf_tls_transition): Replace | |
1297 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with | |
1298 | bfd_link_executable for TLS check. | |
1299 | (_bfd_sparc_elf_check_relocs): Likewise. | |
1300 | (allocate_dynrelocs): Likewise. | |
1301 | (_bfd_sparc_elf_relocate_section): Likewise. | |
1302 | ||
1daf502a RL |
1303 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
1304 | ||
1305 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for | |
1306 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
1307 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
1308 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
1309 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
1310 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
1311 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1312 | ||
32247401 RL |
1313 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
1314 | ||
1315 | * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0, | |
1316 | BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1, | |
1317 | BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2, | |
1318 | BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
1319 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for | |
1320 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
1321 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
1322 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
1323 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
1324 | * bfd-in2.h: Regenerate. | |
1325 | * libbfd.h: Regenerate. | |
1326 | ||
1c5e4ee9 MR |
1327 | 2018-01-23 Maciej W. Rozycki <macro@mips.com> |
1328 | ||
1329 | * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale | |
1330 | `mips_elf32_section_processing' comment reference. | |
1331 | ||
8a1b824a L |
1332 | 2018-01-20 H.J. Lu <hongjiu.lu@intel.com> |
1333 | ||
1334 | PR ld/22721 | |
1335 | * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the | |
1336 | versioned __tls_get_addr symbol. | |
1337 | ||
ee3fbc1e NC |
1338 | 2018-01-19 Nick Clifton <nickc@redhat.com> |
1339 | ||
1340 | * po/fr.po: Updated French translation. | |
1341 | ||
691d2e9a AM |
1342 | 2018-01-18 Alan Modra <amodra@gmail.com> |
1343 | ||
1344 | * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink. | |
1345 | * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align. | |
1346 | (ppc64_elf_build_stubs): Likewise. | |
1347 | ||
4bfce128 NC |
1348 | 2018-01-17 Nick Clifton <nickc@redhat.com> |
1349 | ||
1350 | * po/ru.po: Updated Russian translation. | |
1351 | * po/uk/po: Updated Ukranian translation. | |
1352 | ||
c75bc4f7 AM |
1353 | 2018-01-17 Alan Modra <amodra@gmail.com> |
1354 | ||
1355 | * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. | |
1356 | ||
1be5d8d3 AM |
1357 | 2018-01-17 Alan Modra <amodra@gmail.com> |
1358 | ||
1359 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier. | |
1360 | (CRSETEQ, BEQCTRM): Define. | |
1361 | (is_nonpic_glink_stub): Don't check bctr. | |
1362 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
1363 | (ppc_elf_relax_section): Size speculation barrier. | |
1364 | (output_bctr): New function. | |
1365 | (write_glink_stub): Use output_bctr. | |
1366 | (ppc_elf_relocate_section): Use output_bctr for long branch stub. | |
1367 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1368 | (ppc_elf_finish_dynamic_sections): Use output_bctr. | |
1369 | * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps. | |
1370 | * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define. | |
1371 | (GLINK_PLTRESOLVE_SIZE): Size speculation barrier. | |
1372 | (size_global_entry_stubs): Handle speculation barrier sizing. | |
1373 | (plt_stub_size): Likewise. | |
1374 | (output_bctr): New function. | |
1375 | (build_plt_stub, build_tls_get_addr_stub): Output speculation | |
1376 | barrier. | |
1377 | (ppc_build_one_stub): Likewise for ppc_stub_plt_branch. | |
1378 | (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch. | |
1379 | (build_global_entry_stubs): Output speculation barrier. | |
1380 | (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub. | |
1381 | * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps. | |
1382 | ||
9e390558 AM |
1383 | 2018-01-17 Alan Modra <amodra@gmail.com> |
1384 | ||
1385 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle | |
1386 | __tls_get_addr_opt, and alignment sizing. | |
1387 | (TLS_GET_ADDR_GLINK_SIZE): Delete. | |
1388 | (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE. | |
1389 | (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6, | |
1390 | or 8 insns. | |
1391 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
1392 | (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE. | |
1393 | (ppc_elf_size_dynamic_sections): Likewise. Size branch table | |
1394 | by PLT reloc count. | |
1395 | (write_glink_stub): Handle __tls_get_addr_opt stub. | |
1396 | Pad out to size given by GLINK_ENTRY_SIZE. | |
1397 | (ppc_elf_relocate_section): Adjust write_glink_stub call. | |
1398 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1399 | (ppc_elf_finish_dynamic_sections): Write PLTresolve without using | |
1400 | insn array since so many need rewriting. | |
1401 | * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align. | |
1402 | * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from | |
1403 | GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without | |
1404 | nops. Adjust all uses. | |
1405 | (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE | |
1406 | in glink_vma calculation. | |
1407 | (struct ppc_link_hash_table): Add global_entry section pointer. | |
1408 | (create_linkage_sections): Create separate section for global | |
1409 | entry stubs. | |
1410 | (PPC_LO, PPC_HI, PPC_HA): Move earlier. | |
1411 | (size_global_entry_stubs): Handle sizing for aligned stubs. | |
1412 | (ppc64_elf_size_dynamic_sections): Handle global_entry alloc, | |
1413 | and don't stash end of glink branch table in rawsize. | |
1414 | (ppc_build_one_stub): Rewrite stub size calculations. | |
1415 | (build_global_entry_stubs): Use new section. | |
1416 | (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops. | |
1417 | Build lazy link stubs out to end of section. Build global entry | |
1418 | stubs in new section. | |
1419 | ||
616dcb87 NC |
1420 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
1421 | ||
1422 | * po/uk.po: Updated Ukranian translation. | |
1423 | ||
3957a496 NC |
1424 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
1425 | ||
1426 | * po/bfd.pot: Regenerated. | |
1427 | ||
769c7ea5 NC |
1428 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
1429 | ||
1430 | * version.m4: Bump version to 2.30.51 | |
1431 | * configure: Regenerate. | |
1432 | ||
faf766e3 NC |
1433 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
1434 | ||
1435 | 2.30 branch created. | |
1436 | ||
564e11c9 JW |
1437 | 2018-01-12 Jens Widell <jl@opera.com> |
1438 | ||
1439 | * elf.c (setup_group): Optimize search for group by remembering | |
1440 | last found group and restarting search at that index. | |
1441 | * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field. | |
1442 | ||
a78eea16 AM |
1443 | 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net> |
1444 | ||
1445 | * aoutx.h (aout_link_check_ar_symbols): Remove default and handle | |
1446 | bfd_link_common_skip_none in switch. | |
1447 | ||
87e79a65 AM |
1448 | 2018-01-12 Alan Modra <amodra@gmail.com> |
1449 | ||
1450 | PR ld/22649 | |
1451 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic | |
1452 | references on forced local symbols. | |
1453 | ||
58807c48 VI |
1454 | 2018-01-12 Vlad Ivanov <vlad@ivanov.email> |
1455 | ||
1456 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
1457 | .reginfo section has wrong size. | |
1458 | ||
2888249f L |
1459 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1460 | ||
1461 | PR ld/22393 | |
1462 | * elf.c (_bfd_elf_map_sections_to_segments): When generating | |
1463 | separate code and read-only data LOAD segments, create a new | |
1464 | LOAD segment if the previous section contains text and the | |
1465 | current section doesn't or vice versa. Don't put a writable | |
1466 | section in a read-only segment if there is a RELRO segment. | |
1467 | ||
d664fd41 L |
1468 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1469 | ||
1470 | PR ld/22649 | |
1471 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic | |
1472 | references on forced local symbols. | |
1473 | ||
8b6f4cd3 L |
1474 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1475 | ||
1476 | PR ld/22677 | |
1477 | * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY, | |
1478 | INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section. | |
1479 | ||
9c70c522 | 1480 | 2018-01-09 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
6cef73f9 KLC |
1481 | |
1482 | PR 22662 | |
1483 | * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error. | |
1484 | ||
ddb2bbcf JB |
1485 | 2018-01-03 John Baldwin <jhb@FreeBSD.org> |
1486 | ||
1487 | * elf.c (elfcore_grok_freebsd_note): Handle | |
1488 | NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and | |
1489 | NT_FREEBSD_PROCSTAT_VMMAP. | |
1490 | ||
219d1afa AM |
1491 | 2018-01-03 Alan Modra <amodra@gmail.com> |
1492 | ||
1493 | Update year range in copyright notice of all files. | |
1494 | ||
1e563868 | 1495 | For older changes see ChangeLog-2017 |
3499769a | 1496 | \f |
1e563868 | 1497 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
1498 | |
1499 | Copying and distribution of this file, with or without modification, | |
1500 | are permitted in any medium without royalty provided the copyright | |
1501 | notice and this notice are preserved. | |
1502 | ||
1503 | Local Variables: | |
1504 | mode: change-log | |
1505 | left-margin: 8 | |
1506 | fill-column: 74 | |
1507 | version-control: never | |
1508 | End: |