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