]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
* elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2012-05-07 Alan Modra <amodra@gmail.com>
2
3 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
4 RELOC_AGAINST_DISCARDED_SECTION invocation.
5
6 2012-05-07 Hans-Peter Nilsson <hp@axis.com>
7
8 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
9 local variable i_ instead of assuming and using a variable i.
10
11 2012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
12
13 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
14 relocations.
15 * elfxx-mips.c (mips_reloc_against_discarded_section): New
16 function.
17 (_bfd_mips_elf_relocate_section): Call it, in place of
18 RELOC_AGAINST_DISCARDED_SECTION.
19 * elf-m10200.c (mn10200_elf_relocate_section): Update arguments
20 to RELOC_AGAINST_DISCARDED_SECTION.
21 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
22 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
23 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
24 * elf32-bfin.c (bfin_relocate_section): Likewise.
25 (bfinfdpic_relocate_section): Likewise.
26 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
27 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
28 * elf32-cris.c (cris_elf_relocate_section): Likewise.
29 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
30 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
31 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
32 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
33 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
34 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
35 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
36 * elf32-i370.c (i370_elf_relocate_section): Likewise.
37 * elf32-i386.c (elf_i386_relocate_section): Likewise.
38 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
39 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
40 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
41 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
42 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
43 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
44 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
45 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
46 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
47 * elf32-mep.c (mep_elf_relocate_section): Likewise.
48 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
49 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
50 * elf32-mt.c (mt_elf_relocate_section): Likewise.
51 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
52 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
53 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
54 * elf32-rx.c (rx_elf_relocate_section): Likewise.
55 * elf32-s390.c (elf_s390_relocate_section): Likewise.
56 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
57 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
58 * elf32-sh.c (sh_elf_relocate_section): Likewise.
59 * elf32-spu.c (spu_elf_relocate_section): Likewise.
60 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
61 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
62 * elf32-v850.c (v850_elf_relocate_section): Likewise.
63 * elf32-vax.c (elf_vax_relocate_section): Likewise.
64 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
65 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
66 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
67 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
68 (elf64_alpha_relocate_section): Likewise.
69 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
70 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
71 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
72 * elf64-s390.c (elf_s390_relocate_section): Likewise.
73 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
74 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
75 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
76 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
77 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
78
79 2012-05-05 Alan Modra <amodra@gmail.com>
80
81 PR ld/14052
82 PR ld/13621
83 * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
84
85 2012-05-05 Alan Modra <amodra@gmail.com>
86
87 * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
88 bfd_und_section and bfd_ind_section with their _ptr variants, or
89 use corresponding bfd_is_* macros.
90 * aout-ns32k.c: Likewise.
91 * aout-tic30.c: Likewise.
92 * coff-arm.c: Likewise.
93 * coff-tic54x.c: Likewise.
94 * cpu-ns32k.c: Likewise.
95 * elf-attrs.c: Likewise.
96 * elfcode.h: Likewise.
97 * peicode.h: Likewise.
98 * reloc.c: Likewise.
99 * riscix.c: Likewise.
100 * versados.c: Likewise.
101 * section.c: Likewise.
102 (bfd_abs_section, bfd_ind_section, bfd_com_section,
103 bfd_ind_section): Delete.
104 (std_section): New array replacing above.
105 (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr,
106 bfd_ind_section_ptr, STD_SECTION): Update.
107 (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts.
108 * bfd-in2.h: Regenerate.
109
110 2012-05-03 Sean Keys <skeys@ipdatasys.com>
111
112 * cpu-xgate.c: New file. Added XGATE support.
113 * archures.c (bfd_architecture): Add XGATE architecture.
114 (bfd_archures_list): Add reference to XGATE architecture info.
115 * elf-bfd.h (prep_headers): Handle bfd_arch_xgate.
116 * reloc.c: Add various XGATE relocation enums.
117 * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector
118 list.
119 * Makefile.am: Add support for XGATE elf.
120 * configure.in: Ditto.
121 * config.bfd: Ditto.
122 * Makefile.in: Regenerate.
123 * configure: Ditto.
124 * bfd-in2.h: Ditto.
125 * libbfd.h: Ditto.
126 Added files for XGATE relocations.
127 * elf32-xgate.c: Created minimal relocation file.
128 * elf32-xgate.h: Created minimal header file for elf32-xgate.
129
130 2012-05-03 Tristan Gingold <gingold@adacore.com>
131
132 * dwarf2.c (decode_line_info): Ignore
133 DW_LNE_HP_source_file_correlation.
134
135 2012-05-01 Nick Clifton <nickc@redhat.com>
136
137 PR binutils/13121
138 * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with
139 AIX system headers.
140 * coff-ppc.c: Likewise.
141 * cofflink.c: Likewise.
142 * elf32-arm.c: Likewise.
143 * elf64-sparc.c: Likewise.
144 * elflink.c: Likewise.
145 * pdp11.c: Likewise.
146 * rescoff.c: Likewise.
147
148 2012-04-26 Mark Wielaard <mjw@redhat.com>
149
150 * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc
151 possibly being relative to DW_AT_low_pc.
152 (parse_comp_unit): Likewise.
153
154 2012-04-26 Andreas Schwab <schwab@linux-m68k.org>
155
156 * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references
157 also when generating PIE.
158 (elf_m68k_discard_copies): Mark undefined weak symbols referenced
159 by relocations as dynamic.
160
161 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
162
163 Provide a way for programs to recognize BFD_ASSERT calls.
164 * bfd.c (bfd_assert_handler_type): New API type.
165 (bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
166 (_bfd_assert_handler): New variable.
167 (_bfd_default_assert_handler): New function.
168 (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
169 * libbfd-in.h (_bfd_assert_handler): Declare.
170 * libbfd.h, bfd-in2.h: Regenerate.
171
172 2012-04-24 Hans-Peter Nilsson <hp@axis.com>
173
174 PR ld/13990
175 * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local
176 symbol, where PLT refcount is set to -1.
177
178 2012-04-24 Alan Modra <amodra@gmail.com>
179
180 PR ld/13991
181 * bfd/elf-bfd.h (_bfd_elf_link_just_syms): Define as
182 _bfd_generic_link_just_syms.
183 * bfd/elflink.c (_bfd_elf_link_just_syms): Delete.
184 * bfd/linker.c (_bfd_generic_link_just_syms): Set sec_info_type.
185
186 * bfd/bfd-in.h (discarded_section): Renamed from elf_discarded_section.
187 * bfd/section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS,
188 SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME,
189 SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE.
190 * bfd/elf-eh-frame.c, * bfd/elf-m10200.c, * bfd/elf-m10300.c,
191 * bfd/elf.c, * bfd/elf32-arm.c, * bfd/elf32-avr.c, * bfd/elf32-bfin.c,
192 * bfd/elf32-cr16.c, * bfd/elf32-cr16c.c, * bfd/elf32-cris.c,
193 * bfd/elf32-crx.c, * bfd/elf32-d10v.c, * bfd/elf32-epiphany.c,
194 * bfd/elf32-fr30.c, * bfd/elf32-frv.c, * bfd/elf32-h8300.c,
195 * bfd/elf32-hppa.c, * bfd/elf32-i370.c, * bfd/elf32-i386.c,
196 * bfd/elf32-i860.c, * bfd/elf32-ip2k.c, * bfd/elf32-iq2000.c,
197 * bfd/elf32-lm32.c, * bfd/elf32-m32c.c, * bfd/elf32-m32r.c,
198 * bfd/elf32-m68hc1x.c, * bfd/elf32-m68k.c, * bfd/elf32-mcore.c,
199 * bfd/elf32-mep.c, * bfd/elf32-moxie.c, * bfd/elf32-msp430.c,
200 * bfd/elf32-mt.c, * bfd/elf32-openrisc.c, * bfd/elf32-ppc.c,
201 * bfd/elf32-rl78.c, * bfd/elf32-rx.c, * bfd/elf32-s390.c,
202 * bfd/elf32-score.c, * bfd/elf32-score7.c, * bfd/elf32-sh.c,
203 * bfd/elf32-spu.c, * bfd/elf32-tic6x.c, * bfd/elf32-tilepro.c,
204 * bfd/elf32-v850.c, * bfd/elf32-vax.c, * bfd/elf32-xc16x.c,
205 * bfd/elf32-xstormy16.c, * bfd/elf32-xtensa.c, * bfd/elf64-alpha.c,
206 * bfd/elf64-hppa.c, * bfd/elf64-ia64-vms.c, * bfd/elf64-mmix.c,
207 * bfd/elf64-ppc.c, * bfd/elf64-s390.c, * bfd/elf64-sh64.c,
208 * bfd/elf64-x86-64.c, * bfd/elflink.c, * bfd/elfnn-ia64.c,
209 * bfd/elfxx-mips.c, * bfd/elfxx-sparc.c, * bfd/elfxx-tilegx.c,
210 * bfd/reloc.c: Update all references.
211 * bfd/bfd-in2.h: Regenerate.
212
213 2012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
214
215 * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
216 * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
217
218 2012-04-19 Thomas Schwinge <thomas@codesourcery.com>
219
220 * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
221 got_type.
222 (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
223 it.
224
225 2012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
226
227 * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
228 relocations when LE conversion happens on the IE tls symbol.
229
230 2012-04-17 Roland McGrath <mcgrathr@google.com>
231
232 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
233 so that 32-byte boundary is a proper instruction boundary.
234
235 2012-04-17 Tristan Gingold <gingold@adacore.com>
236
237 * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
238 member of an object archive.<
239
240 2012-04-17 Tristan Gingold <gingold@adacore.com>
241
242 * vms-lib.c (MAX_EKEYLEN): Define.
243 (MAX_KEYLEN): Fix value.
244 (vms_write_index): Add comments and fix indentation.
245 Adjust comparaison. Add assertions. Free kbn_blk.
246 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
247 Compense MAX_KEYLEN adjustment.
248
249 2012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
250
251 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
252 (_bfd_mips_elf_check_relocs): Update accordingly.
253
254 2012-04-13 Alan Modra <amodra@gmail.com>
255
256 PR ld/13947
257 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
258 reloc sections.
259
260 2012-04-12 David S. Miller <davem@davemloft.net>
261
262 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
263 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
264 * libbfd.h: Regenerate.
265 * bfd-in2.h: Likewise.
266 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
267 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
268 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
269 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
270 (_bfd_sparc_elf_check_relocs): Likewise.
271 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
272 (_bfd_sparc_elf_relocate_section): Likewise.
273
274 2012-04-12 Roland McGrath <mcgrathr@google.com>
275
276 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
277 New variables.
278 (struct elf32_arm_link_hash_table): New member `nacl_p'.
279 (elf32_arm_link_hash_table_create): Initialize it.
280 (elf32_arm_nacl_link_hash_table_create): New function.
281 (arm_movw_immediate, arm_movt_immediate): New functions.
282 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
283 (elf32_arm_finish_dynamic_sections): Likewise.
284 (elf32_arm_output_plt_map_1): Likewise.
285 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
286 New backend vector stanza.
287 (elf32_arm_nacl_modify_segment_map): New function.
288 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
289 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
290 * configure.in: Likewise.
291 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
292 (bfd_elf32_littlearm_nacl_vec): Likewise.
293 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
294 (bfd_elf32_bigarm_symbian_vec): Likewise.
295 (bfd_elf32_littlearm_symbian_vec): Likewise.
296 (bfd_elf32_bigarm_vxworks_vec): Likewise.
297 (bfd_elf32_littlearm_vxworks_vec): Likewise.
298 * configure: Regenerated.
299
300 2012-04-12 Tristan Gingold <gingold@adacore.com>
301
302 * elflink.c (elf_link_output_extsym): Add a guard.
303 (bfd_elf_final_link): Remove assertion.
304 (bfd_elf_final_link): Add a guard.
305 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
306 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
307 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
308 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
309 Remove.
310 (elfNN-ia64-vms target): Move to ...
311 * elf64-ia64-vms.c: New file.
312 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
313 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
314 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
315 * configure: Regenerate.
316 * Makefile.in: Regenerate.
317
318 2012-04-11 Nick Clifton <nickc@redhat.com>
319
320 PR binutils/13897
321 * elf64-ppc.c (opd_entry_value): When dealing with sections
322 without relocs, keep the last section loaded in order to avoid
323 unnecessary reloads.
324
325 2012-04-09 Roland McGrath <mcgrathr@google.com>
326
327 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
328 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
329 (nacl_modify_program_headers): Likewise.
330
331 2012-04-03 Roland McGrath <mcgrathr@google.com>
332
333 * elf-nacl.c: New file.
334 * elf-nacl.h: New file.
335 * elf32-i386.c (elf_backend_modify_segment_map): Define for
336 bfd_elf32_i386_nacl_vec.
337 (elf_backend_modify_program_headers): Likewise.
338 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
339 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
340 (elf_backend_modify_program_headers): Likewise.
341 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
342 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
343 * Makefile.in: Regenerated.
344 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
345 (bfd_elf32_x86_64_nacl_vec): Likewise.
346 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
347 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
348 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
349 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
350 (bfd_elf32_i386_nacl_vec): Likewise.
351 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
352 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
353 * configure: Regenerated.
354
355 2012-03-31 Andreas Schwab <schwab@linux-m68k.org>
356
357 * elf32-m68k.c (elf_m68k_relocate_section): Allow
358 R_68K_TLS_LE{8,16,32} for PIE.
359
360 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
361
362 * elf64-s390.c: Fix several comments regarding PLT entry
363 description.
364 * elf32-s390.c: Likewise.
365
366 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
367
368 * elf64-s390.c: Use the section pointer shortcuts in
369 elf_link_hash_table and remove them from the target specific
370 variant.
371 * elf32-s390.c: Likewise.
372
373 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
374
375 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
376 New definitions.
377 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
378 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
379 (elf_s390_finish_dynamic_sections): Likewise.
380 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
381 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
382 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
383 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
384 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
385
386 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
387
388 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
389 Rename all occurrences in the file to elf_dyn_relocs.
390 * elf64-s390.c: Likewise.
391
392 2012-03-30 Alan Modra <amodra@gmail.com>
393
394 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
395 libraries.
396
397 2012-03-29 Alan Modra <amodra@gmail.com>
398
399 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
400 * bfd-in2.h: Regenerate.
401
402 2012-03-23 Alan Modra <amodra@gmail.com>
403
404 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
405 on empty alloc sections.
406
407 2012-03-23 Alan Modra <amodra@gmail.com>
408
409 * linker.c (_bfd_nearby_section): New function, split out from..
410 (fix_syms): ..here.
411 * bfd-in.h (_bfd_nearby_section): Declare.
412 * bfd-in2.h: Regenerate.
413 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
414 data_index_section with ld -q or ld -r output relocs against
415 stripped output sections. Instead use _bfd_nearby_section.
416
417 2012-03-23 Alan Modra <amodra@gmail.com>
418
419 PR binutils/13894
420 * elf64-ppc.c (opd_entry_value): Read full symbol table when
421 sym hashes unavailable.
422
423 2012-03-21 Eliot Dresselhaus <eliot@sonic.net>
424
425 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
426 for non-C6X objects.
427
428 2012-03-20 Kai Tietz <ktietz@redhat.com>
429
430 PR ld/12742
431 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
432 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
433 Add windows.h header include if HAVE_WINDOWS_H is defined.
434 (dlerror): New static function if windows variant is used instead
435 of dlfcn.h.
436 (dlclose): Likewise.
437 (dlopen): Likewise.
438 (dlsym): Likewise.
439 * configure: Regenerated.
440 * config.in: Regenerated.
441
442 2012-03-20 H.J. Lu <hongjiu.lu@intel.com>
443
444 PR ld/13880
445 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
446 for R_386_GOTOFF relocation against protected function if
447 SYMBOLIC_BIND is true.
448
449 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
450 error for R_X86_64_GOTOFF64 relocation against protected function
451 when building executable or SYMBOLIC_BIND is true.
452
453 2012-03-16 Roland McGrath <mcgrathr@google.com>
454
455 * config.bfd: Handle x86_64-*-nacl*.
456 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
457 (bfd_elf32_x86_64_nacl_vec): Likewise.
458 * targets.c: Support them.
459 * configure.in: Likewise.
460 * configure: Regenerated.
461
462 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
463
464 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
465 (elf32_arm_attributes_forbid_div): Likewise.
466 (elf32_arm_merge_eabi_attributes): Correct handling of
467 Tag_DIV_use.
468
469 2012-03-15 Roland McGrath <mcgrathr@google.com>
470
471 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
472 elf_x86_64_backend_data parameters for plt_eh_frame.
473
474 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
475 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
476 (elf_x86_64_arch_bed): New variable.
477 (elf_backend_arch_data): New macro.
478 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
479 (elf_x86_64_allocate_dynrelocs): Likewise.
480 (elf_x86_64_relocate_section): Likewise.
481 (elf_x86_64_plt_sym_val): Likewise.
482 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
483 parameters for PLT details.
484 (elf_x86_64_finish_dynamic_sections): Likewise.
485
486 2012-03-14 Roland McGrath <mcgrathr@google.com>
487
488 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
489 to the full size, padding out with nop instructions.
490
491 2012-03-12 Alan Modra <amodra@gmail.com>
492
493 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
494 on zero size dynbss symbol.
495 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
496 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
497 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
498 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
499 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
500 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
501 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
502 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
503 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
504 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
505 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
506 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
507 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
508 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
509 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
510 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
511 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
512 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
513 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
514 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
515 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
516
517 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
518
519 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
520 * bfd-in2.h: Regenerate.
521 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
522 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
523
524 2012-03-09 H.J. Lu <hongjiu.lu@intel.com>
525
526 PR ld/13817
527 * bfd/elf32-i386.c (elf_i386_relocate_section): Restore
528 R_386_IRELATIVE.
529
530 * * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
531 R_X86_64_IRELATIVE.
532
533 2012-03-08 Tristan Gingold <gingold@adacore.com>
534
535 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
536 keylen according to archive kind. Set nextvbn and nextrfa lhd
537 fields. Add comments.
538
539 2012-03-07 Nick Clifton <nickc@redhat.com>
540
541 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
542 field.
543 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
544 (elf_mn10300_tdata): Define.
545 (elf_mn10300_local_got_tls_type): Define.
546 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
547 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
548 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
549 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
550 (mn10300_reloc_map): Likewise.
551 (elf_mn10300_tls_transition): New function.
552 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
553 (mn10300_elf_check_relocs): Add TLS support.
554 (mn10300_elf_final_link_relocate): Likewise.
555 (mn10300_elf_relocate_section): Likewise.
556 (mn10300_elf_relax_section): Likewise.
557 (elf32_mn10300_link_hash_newfunc): Initialise new field.
558 (_bfd_mn10300_copy_indirect_symbol): New function.
559 (elf32_mn10300_link_hash_table_create): Initialise new fields.
560 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
561 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
562 (_bfd_mn10300_elf_reloc_type_class): Allocate an
563 elf_mn10300_obj_tdata structure.
564 (elf_backend_copy_indirect_symbol): Define.
565 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
566 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
567 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
568 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
569 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
570 alongside other MN10300 relocations.
571 * bfd-in2.h: Regenerate.
572 * libbfd.h: Regenerate.
573
574 2012-03-06 Jakub Jelinek <jakub@redhat.com>
575
576 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
577 set relocate to TRUE.
578
579 2012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
580
581 PR ld/12152
582 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
583 overflows for R_SPARC_UA32 in .stab sections.
584
585 2012-03-01 Alan Modra <amodra@gmail.com>
586
587 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
588
589 2012-02-27 Alan Modra <amodra@gmail.com>
590
591 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
592 before calling elf specific function.
593 (sh_elf_osec_readonly_p): Test for error return from above.
594
595 2012-02-27 Alan Modra <amodra@gmail.com>
596
597 * elf32-spu.c (build_stub): Fix malloc under-allocation.
598
599 2012-02-25 Walter Lee <walt@tilera.com>
600 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
601 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
602 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
603 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
604 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
605 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
606 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
607 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
608 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
609 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
610 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
611 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
612 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
613 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
614 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
615 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
616 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
617 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
618 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
619 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
620 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
621 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
622 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
623 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
624 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
625 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
626 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
627 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
628 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
629 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
630 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
631 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
632 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
633 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
634 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
635 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
636 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
637 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
638 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
639 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
640 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
641 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
642 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
643 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
644 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
645 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
646 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
647 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
648 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
649 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
650 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
651 relocations.
652 (tilepro_reloc_map): Ditto.
653 (tilepro_info_to_howto_rela): Ditto.
654 (reloc_to_create_func): Ditto.
655 (tilepro_tls_translate_to_le): New.
656 (tilepro_tls_translate_to_ie): New.
657 (tilepro_elf_tls_transition): New.
658 (tilepro_elf_check_relocs): Handle new tls relocations.
659 (tilepro_elf_gc_sweep_hook): Ditto.
660 (allocate_dynrelocs): Ditto.
661 (tilepro_elf_relocate_section): Ditto.
662 (tilepro_replace_insn): New.
663 (insn_mask_X1): New.
664 (insn_mask_X0_no_dest_no_srca): New
665 (insn_mask_X1_no_dest_no_srca): New
666 (insn_mask_Y0_no_dest_no_srca): New
667 (insn_mask_Y1_no_dest_no_srca): New
668 (srca_mask_X0): New
669 (srca_mask_X1): New
670 (insn_tls_le_move_X1): New
671 (insn_tls_le_move_zero_X0X1): New
672 (insn_tls_ie_lw_X1): New
673 (insn_tls_ie_add_X0X1): New
674 (insn_tls_ie_add_Y0Y1): New
675 (insn_tls_gd_add_X0X1): New
676 (insn_tls_gd_add_Y0Y1): New
677 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
678 relocations.
679 (tilegx_reloc_map): Ditto.
680 (tilegx_info_to_howto_rela): Ditto.
681 (reloc_to_create_func): Ditto.
682 (tilegx_elf_link_hash_table): New field disable_le_transition.
683 (tilegx_tls_translate_to_le): New.
684 (tilegx_tls_translate_to_ie): New.
685 (tilegx_elf_tls_transition): New.
686 (tilegx_elf_check_relocs): Handle new tls relocations.
687 (tilegx_elf_gc_sweep_hook): Ditto.
688 (allocate_dynrelocs): Ditto.
689 (tilegx_elf_relocate_section): Ditto.
690 (tilegx_copy_bits): New.
691 (tilegx_replace_insn): New.
692 (insn_mask_X1): New.
693 (insn_mask_X0_no_dest_no_srca): New.
694 (insn_mask_X1_no_dest_no_srca): New.
695 (insn_mask_Y0_no_dest_no_srca): New.
696 (insn_mask_Y1_no_dest_no_srca): New.
697 (insn_mask_X0_no_operand): New.
698 (insn_mask_X1_no_operand): New.
699 (insn_mask_Y0_no_operand): New.
700 (insn_mask_Y1_no_operand): New.
701 (insn_tls_ie_ld_X1): New.
702 (insn_tls_ie_ld4s_X1): New.
703 (insn_tls_ie_add_X0X1): New.
704 (insn_tls_ie_add_Y0Y1): New.
705 (insn_tls_ie_addx_X0X1): New.
706 (insn_tls_ie_addx_Y0Y1): New.
707 (insn_tls_gd_add_X0X1): New.
708 (insn_tls_gd_add_Y0Y1): New.
709 (insn_move_X0X1): New.
710 (insn_move_Y0Y1): New.
711 (insn_add_X0X1): New.
712 (insn_add_Y0Y1): New.
713 (insn_addx_X0X1): New.
714 (insn_addx_Y0Y1): New.
715 * libbfd.h: Regenerate.
716 * bfd-in2.h: Regenerate.
717
718 2012-02-25 Walter Lee <walt@tilera.com>
719
720 * config.bfd (tilegx-*-*): rename little endian vector; add big
721 endian vector.
722 (tilegxbe-*-*): New case.
723 * configure.in (bfd_elf32_tilegx_vec): Rename...
724 (bfd_elf32_tilegx_le_vec): ... to this.
725 (bfd_elf32_tilegx_be_vec): New vector.
726 (bfd_elf64_tilegx_vec): Rename...
727 (bfd_elf64_tilegx_le_vec): ... to this.
728 (bfd_elf64_tilegx_be_vec): New vector.
729 * configure: Regenerate.
730 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
731 (TARGET_LITTLE_NAME): Ditto.
732 (TARGET_BIG_SYM): Define.
733 (TARGET_BIG_NAME): Define.
734 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
735 (TARGET_LITTLE_NAME): Ditto.
736 (TARGET_BIG_SYM): Define.
737 (TARGET_BIG_NAME): Define.
738 * targets.c (bfd_elf32_tilegx_vec): Rename...
739 (bfd_elf32_tilegx_le_vec): ... to this.
740 (bfd_elf32_tilegx_be_vec): Declare.
741 (bfd_elf64_tilegx_vec): Rename...
742 (bfd_elf64_tilegx_le_vec): ... to this.
743 (bfd_elf64_tilegx_be_vec): Declare.
744 (_bfd_target_vector): Add / rename above vectors.
745 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
746 * bfd-in2.h: Regenerate.
747 * cpu-tilegx.c (bfd_tilegx32_arch): define.
748 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
749
750 2012-02-24 Nick Clifton <nickc@redhat.com>
751
752 PR ld/13730
753 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
754 error message instead of aborting, when an outofrange reloc is
755 encountered.
756
757 2012-02-23 Iain Sandoe <idsandoe@googlemail.com>
758
759 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
760 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
761 bit-fields when target and host differ in endian-ness. When
762 PAIRs are non-scattered find the 'symbol' from the preceding
763 reloc. Add FIXME re. reloc symbols on section boundaries.
764 (bfd_mach_o_swap_out_non_scattered_reloc): New.
765 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
766
767 2012-02-17 Iain Sandoe <idsandoe@googlemail.com>
768
769 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
770 sect-diffs.
771 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
772 (bfd_mach_o_i386_swap_reloc_out): Likewise.
773
774 2012-02-17 Tristan Gingold <gingold@adacore.com>
775
776 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
777 * libbfd.h: Regenerated.
778 * bfd-in2.h: Likewise.
779 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
780 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
781 (bfd_mach_o_i386_swap_reloc_out): Likewise.
782
783 2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
784
785 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
786 GD->LE and LD->LE optimizations.
787
788 2012-02-16 Alan Modra <amodra@gmail.com>
789
790 PR binutils/13355
791 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
792
793 2012-02-13 Richard Henderson <rth@redhat.com>
794
795 PR ld/13621
796 * linker.c (fix_syms): Force symbols outside any section into
797 bfd_abs_section_ptr.
798
799 2012-02-13 Alan Modra <amodra@gmail.com>
800
801 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
802 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
803 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
804 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
805
806 2012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
807 Nick Clifton <nickc@redhat.com>
808
809 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
810 memset.
811
812 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
813
814 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
815 vma additions in their logical, rather than physical order.
816
817 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
818
819 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
820 parameters.
821 * mach-o-x86-64.c (text_section_names_xlat): New.
822 (mach_o_x86_64_segsec_names_xlat): New.
823 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
824 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
825
826 2012-02-10 Tristan Gingold <gingold@adacore.com>
827
828 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
829 to avoid infinite loop. Add comments.
830
831 2012-02-09 H.J. Lu <hongjiu.lu@intel.com>
832
833 PR ld/13675
834 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
835 nop instructions.
836 (bfd_arch_i386_short_nop_fill): New.
837 (bfd_arch_i386_long_nop_fill): Likewise.
838 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
839 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
840 bfd_arch_info initializers.
841
842 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
843 (bfd_arch_i386_short_nop_fill): This.
844 Update bfd_arch_info initializers.
845 * cpu-l1om.c: Likewise.
846
847 2012-02-08 Alan Modra <amodra@gmail.com>
848
849 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
850 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
851 the correct h->u.weakdef.
852
853 2012-02-07 Alan Modra <amodra@gmail.com>
854
855 * elf.c (elf_find_function): Don't use internal_elf_sym.
856 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
857 parameter with asymbol.
858 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
859 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
860 (struct elf_backend_data <maybe_function_sym>): Likewise.
861
862 2012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
863
864 PR bfd/13410
865 * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the
866 condition that qualifies the candidates for relaxation.
867
868 2012-02-02 Tristan Gingold <gingold@adacore.com>
869
870 * bfdio.c (real_fopen): Remove unused vms_modes variable.
871
872 2012-02-02 Tristan Gingold <gingold@adacore.com>
873
874 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
875 variable warning.
876
877 2012-02-02 Tristan Gingold <gingold@adacore.com>
878
879 * archive.c (bfd_slurp_armap): Fix thinko in cast.
880
881 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
882
883 PR ld/13616
884 * archures.c (bfd_arch_info): Add fill.
885 (bfd_default_arch_struct): Add bfd_arch_default_fill.
886 (bfd_arch_default_fill): New.
887
888 * configure.in: Set bfd version to 2.22.52.
889 * configure: Regenerated.
890
891 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
892 initializer.
893 * cpu-arc.c: Likewise.
894 * cpu-arm.c: Likewise.
895 * cpu-avr.c: Likewise.
896 * cpu-bfin.c: Likewise.
897 * cpu-cr16.c: Likewise.
898 * cpu-cr16c.c: Likewise.
899 * cpu-cris.c: Likewise.
900 * cpu-crx.c: Likewise.
901 * cpu-d10v.c: Likewise.
902 * cpu-d30v.c: Likewise.
903 * cpu-dlx.c: Likewise.
904 * cpu-epiphany.c: Likewise.
905 * cpu-fr30.c: Likewise.
906 * cpu-frv.c: Likewise.
907 * cpu-h8300.c: Likewise.
908 * cpu-h8500.c: Likewise.
909 * cpu-hppa.c: Likewise.
910 * cpu-i370.c: Likewise.
911 * cpu-i860.c: Likewise.
912 * cpu-i960.c: Likewise.
913 * cpu-ia64.c: Likewise.
914 * cpu-ip2k.c: Likewise.
915 * cpu-iq2000.c: Likewise.
916 * cpu-lm32.c: Likewise.
917 * cpu-m10200.c: Likewise.
918 * cpu-m10300.c: Likewise.
919 * cpu-m32c.c: Likewise.
920 * cpu-m32r.c: Likewise.
921 * cpu-m68hc11.c: Likewise.
922 * cpu-m68hc12.c: Likewise.
923 * cpu-m68k.c: Likewise.
924 * cpu-m88k.c: Likewise.
925 * cpu-mcore.c: Likewise.
926 * cpu-mep.c: Likewise.
927 * cpu-microblaze.c: Likewise.
928 * cpu-mips.c: Likewise.
929 * cpu-mmix.c: Likewise.
930 * cpu-moxie.c: Likewise.
931 * cpu-msp430.c: Likewise.
932 * cpu-mt.c: Likewise.
933 * cpu-ns32k.c: Likewise.
934 * cpu-openrisc.c: Likewise.
935 * cpu-or32.c: Likewise.
936 * cpu-pdp11.c: Likewise.
937 * cpu-pj.c: Likewise.
938 * cpu-plugin.c: Likewise.
939 * cpu-powerpc.c: Likewise.
940 * cpu-rl78.c: Likewise.
941 * cpu-rs6000.c: Likewise.
942 * cpu-rx.c: Likewise.
943 * cpu-s390.c: Likewise.
944 * cpu-score.c: Likewise.
945 * cpu-sh.c: Likewise.
946 * cpu-sparc.c: Likewise.
947 * cpu-spu.c: Likewise.
948 * cpu-tic30.c: Likewise.
949 * cpu-tic4x.c: Likewise.
950 * cpu-tic54x.c: Likewise.
951 * cpu-tic6x.c: Likewise.
952 * cpu-tic80.c: Likewise.
953 * cpu-tilegx.c: Likewise.
954 * cpu-tilepro.c: Likewise.
955 * cpu-v850.c: Likewise.
956 * cpu-vax.c: Likewise.
957 * cpu-w65.c: Likewise.
958 * cpu-we32k.c: Likewise.
959 * cpu-xc16x.c: Likewise.
960 * cpu-xstormy16.c: Likewise.
961 * cpu-xtensa.c: Likewise.
962 * cpu-z80.c: Likewise.
963 * cpu-z8k.c: Likewise.
964
965 * cpu-i386.c: Include "libiberty.h".
966 (bfd_arch_i386_fill): New.
967 Add bfd_arch_i386_fill to bfd_arch_info initializer.
968
969 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
970 * cpu-l1om.c: Likewise.
971
972 * linker.c (default_data_link_order): Call abfd->arch_info->fill
973 if fill size is 0.
974
975 * bfd-in2.h: Regenerated.
976
977 2012-01-27 Michael Eager <eager@eagercon.com>
978
979 * bfd/elf32-microblaze.c (create_got_section):
980 Reuse existing .rela.got section.
981
982 2012-01-23 Alan Modra <amodra@gmail.com>
983
984 * elf-bfd.h: Formatting.
985 (struct elf_backend_data): Add "maybe_function_sym".
986 (_bfd_elf_maybe_function_sym): Declare.
987 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
988 (elfNN_bed): Init new field.
989 * elf.c (elf_find_function): Use maybe_function_sym.
990 (_bfd_elf_maybe_function_sym): New function.
991 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
992 (ppc64_elf_maybe_function_sym): New function.
993
994 2012-01-20 Francois Gouget <fgouget@codeweavers.com>
995
996 PR binutils/13534
997 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
998 pad the size field in an archive header.
999 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
1000 function for the archive size field.
1001 (bfd_generic_openr_next_archived_file): Likewise.
1002 (do_slurp_coff_armap): Likewise.
1003 (_bfd_write_archive_contents): Likewise.
1004 (_bfd_bsd44_write_ar_hdr): Use the new function.
1005 (bfd_ar_hdr_from_filesystem): Likewise.
1006 (_bfd_write_archive_contents): Likewise.
1007 (bsd_write_armap): Likewise.
1008 (coff_write_armap): Likewise.
1009 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
1010 * bfdio.c (bfd_bread): Use correct type for archive element
1011 sizes.
1012 * ar.c (open_inarch): Likewise.
1013 (extract_file): Likewise.
1014 * libbfd-in.h (struct areltdata): Use correct types for
1015 parsed_size and extra_size fields.
1016 Prototype _bfd_ar_sizepad function.
1017 * libbfd.h: Regenerate.
1018
1019 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1020
1021 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
1022 Return NULL if core file generation is unsupported.
1023 (elfcore_write_prstatus): Likewise.
1024 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
1025 (elf_backend_write_core_note): Define.
1026
1027 2012-01-19 Tristan Gingold <gingold@adacore.com>
1028
1029 * pef.c: Add a comment.
1030 * xsym.c: Likewise.
1031
1032 2012-01-17 Alan Modra <amodra@gmail.com>
1033
1034 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
1035 trailing garbage in the note.
1036 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
1037
1038 2012-01-16 Daniel Green <venix1@gmail.com>
1039
1040 PR ld/13491
1041 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
1042 h->root.type not h->type.
1043 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
1044
1045 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1046
1047 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
1048 indirect symbols.
1049
1050 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1051
1052 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
1053 position from here... to (bfd_mach_o_build_seg_command): Here.
1054
1055 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
1056
1057 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
1058 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
1059 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
1060 file. (bfd_mach_o_section): Add indirect_syms field.
1061
1062 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
1063
1064 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
1065 vmsize from filesize. Don't compute offsets or file sizes for
1066 zerofill sections.
1067
1068 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
1069
1070 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
1071 command type independent.
1072
1073 2012-01-11 Alan Modra <amodra@gmail.com>
1074
1075 * elf64-ppc.c: Define more insns used in plt call stubs.
1076 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
1077 (ppc64_elf_relocate_section): Likewise.
1078 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
1079 (struct ppc_link_hash_table): Increase size of stub_count array.
1080 Add plt_stub_align and plt_thread_safe.
1081 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
1082 (plt_stub_size, plt_stub_pad): New functions.
1083 (build_plt_stub): Emit barriers for power7 thread safety. Don't
1084 emit needless save of r2.
1085 (build_tls_get_addr_stub): Adjust params.
1086 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
1087 plt stubs. Adjust build_*plt_stub calls.
1088 (ppc_size_one_stub): Similarly.
1089 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
1090 params. Choose default for plt_thread_safe based on existence of
1091 calls to thread creation functions. Modify plt_call to
1092 plt_call_r2save when no tocsave reloc found. Align tail of stub
1093 sections.
1094 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
1095 output of stub statistics.
1096 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
1097 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
1098
1099 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
1100
1101 PR ld/13581
1102 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
1103 check on R_X86_64_PCXX.
1104
1105 2012-01-10 Tristan Gingold <gingold@adacore.com>
1106
1107 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
1108 warning.
1109
1110 2012-01-10 Tristan Gingold <gingold@adacore.com>
1111
1112 * bfdio.c (bfd_tell): Handle nested archives.
1113 (bfd_seek): Ditto.
1114 * cache.c (bfd_cache_lookup_worker): Ditto.
1115 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
1116 nested archives.
1117 (bfd_generic_openr_next_archived_file): Likewise.
1118
1119 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
1120
1121 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
1122 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
1123 (bfd_mach_o_primary_symbol_sort_key): Likewise.
1124 (bfd_mach_o_cf_symbols): Likewise.
1125 (bfd_mach_o_sort_symbol_table): Remove.
1126 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
1127 for indirect and dysymtab counts. Do the symbol sorting here.
1128 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
1129 Make the indirect symbols a TODO.
1130 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
1131 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
1132 a non-zero value.
1133 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
1134 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
1135 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
1136 (IS_MACHO_INDIRECT): Remove.
1137 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
1138
1139 2012-01-06 Nick Clifton <nickc@redhat.com>
1140
1141 PR binutils/13121
1142 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
1143 'flaginfo' to avoid conflicts with AIX system headers.
1144
1145 2012-01-06 Tristan Gingold <gingold@adacore.com>
1146
1147 * bfdio.c (bfd_bread): Use arelt_size macro.
1148
1149 2012-01-06 Tristan Gingold <gingold@adacore.com>
1150
1151 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
1152
1153 2012-01-05 Nick Clifton <nickc@redhat.com>
1154
1155 PR ld/12161
1156 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
1157 necessary.
1158
1159 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1160
1161 Fix zero registers core files when built by gcc-4.7.
1162 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
1163 size. Call elfcore_write_note for the local variables. Remove the
1164 final elfcore_write_note call. Add NOTREACHED comments.
1165
1166 2012-01-04 Tristan Gingold <gingold@adacore.com>
1167
1168 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
1169 (bfd_mach_o_generic_stat_arch_elt): Adjust.
1170
1171 2012-01-04 Tristan Gingold <gingold@adacore.com>
1172
1173 * mach-o.c (bfd_mach_o_fat_member_init): New function.
1174 (bfd_mach_o_openr_next_archived_file): Reindent.
1175 Adjust to call bfd_mach_o_fat_member_init.
1176 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
1177
1178 2012-01-04 Tristan Gingold <gingold@adacore.com>
1179
1180 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
1181 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
1182 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
1183 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
1184 BFD_RELOC_MACH_O_X86_64_BRANCH32,
1185 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
1186 BFD_RELOC_MACH_O_X86_64_GOT.
1187
1188 2012-01-04 Tristan Gingold <gingold@adacore.com>
1189
1190 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
1191 (bfd_mach_o_load_command): Add fvmlib field.
1192
1193 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
1194 (bfd_mach_o_read_command): Handle fvmlib.
1195
1196 2012-01-04 Tristan Gingold <gingold@adacore.com>
1197
1198 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
1199 Decode msubtype for ARM.
1200
1201 2012-01-04 Tristan Gingold <gingold@adacore.com>
1202
1203 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
1204
1205 2012-01-04 Tristan Gingold <gingold@adacore.com>
1206
1207 * mach-o.h: Reindent header.
1208 (bfd_mach_o_encryption_info_command): New structure.
1209 (bfd_mach_o_load_command): Add encryption_info field.
1210
1211 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
1212 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
1213 (bfd_mach_o_read_command): Adjust error message.
1214
1215 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
1216
1217 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
1218 which reads DWARF2 and stores in stash from find_line.
1219 (find_line) Call _bfd_dwarf2_slurp_debug_info.
1220 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
1221 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
1222 * mach-o.c (dsym_subdir): The name of subdir where debug
1223 information may be stored.
1224 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
1225 type is UUID.
1226 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
1227 corresponding to the executable.
1228 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
1229 specified binary file.
1230 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
1231 the original BFD.
1232 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
1233 executables, dylibs, and bundles.
1234 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
1235 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
1236
1237 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1238
1239 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
1240 for stabd symbols.
1241 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
1242 (bfd_mach_o_cf_symbols): Likewise.
1243
1244 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1245
1246 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
1247
1248 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1249
1250 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
1251 as the value of an indirect symbol. Keep the string table index in
1252 non-indirect syms for reference.
1253 (bfd_mach_o_write_dysymtab): New.
1254 (bfd_mach_o_primary_symbol_sort_key): New.
1255 (bfd_mach_o_cf_symbols): New.
1256 (bfd_mach_o_sort_symbol_table): New.
1257 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
1258 If we are emitting a dysymtab, process indirect symbols and count the
1259 number of each other kind.
1260 (bfd_mach_o_mangle_sections): New.
1261 (bfd_mach_o_write_contents): Split out some pre-requisite code into
1262 the command builder. Write dysymtab if the command is present.
1263 (bfd_mach_o_count_sections_for_seg): New.
1264 (bfd_mach_o_build_seg_command): New.
1265 (bfd_mach_o_build_dysymtab_command): New.
1266 (bfd_mach_o_build_commands): Reorganize to support the fact that some
1267 commands are optional and should not be emitted if there are no
1268 sections or symbols.
1269 (bfd_mach_o_set_section_contents): Amend comment.
1270 * mach-o.h: Amend and add to comments.
1271 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
1272 pointer to the indirects, when present.
1273 (bfd_mach_o_should_emit_dysymtab): New macro.
1274 (IS_MACHO_INDIRECT): Likewise.
1275
1276 For older changes see ChangeLog-2011
1277 \f
1278 Local Variables:
1279 mode: change-log
1280 left-margin: 8
1281 fill-column: 74
1282 version-control: never
1283 End: