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