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