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