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