ebec0d78dbf88c17bd91464e868e8b81b6b61a07
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2012-11-06 Alan Modra <amodra@gmail.com>
2
3 * elf64-ppc.c (struct ppc_link_hash_table): Add dot_toc_dot.
4 (ppc64_elf_size_stubs): Lookup ".TOC.".
5 (ppc64_elf_relocate_section): Resolve special symbol ".TOC.".
6
7 2012-11-06 Alan Modra <amodra@gmail.com>
8
9 * elf64-ppc.c (maybe_strip_output): Heed SEC_KEEP.
10
11 2012-11-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12
13 PR target/14788
14 * elf32-s390.c (elf_s390_relocate_section): Set elf.dynobj for
15 local ifunc symbols.
16 * elf64-s390.c (elf_s390_relocate_section): Likewise.
17
18 2012-11-05 Alan Modra <amodra@gmail.com>
19
20 * configure.in: Apply 2012-09-10 change to config.in here.
21
22 2012-11-05 Alan Modra <amodra@gmail.com>
23
24 * elf64-ppc.c (ppc64_elf_edit_toc): Clear "repeat" inside
25 loop. Really mark toc entry referring to another toc entry
26 only if the first is used.
27
28 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
29
30 * configure.in: Also handle --enable-64-bit-bfd when setting
31 CORE_HEADER for 'i[3-7]86-*-linux-*'.
32
33 2012-10-30 Steve McIntyre <steve.mcintyre@linaro.org>
34
35 * elf32-arm.c (elf32_arm_print_private_bfd_data): Recognise and
36 display the new ARM hard-float/soft-float ABI flags for EABI_VER5
37 (elf32_arm_post_process_headers): Add the hard-float/soft-float
38 ABI flag as appropriate for ET_DYN/ET_EXEC in EABI_VER5.
39
40 2012-10-30 Yao Qi <yao@codesourcery.com>
41 H.J. Lu <hongjiu.lu@intel.com>
42
43 * configure.in: Set CORE_HEADER to hosts/x86-64linux.h for
44 'i[3-7]86-*-linux-*' if x86_64-*linux is enabled.
45 * configure: Regenerated.
46
47 * elf64-x86-64.c (elf_x86_64_write_core_note): Replace type
48 'prpsinfo_t' and 'prstatus_t' with 'prpsinfo64_t' and
49 'prstatus64_t' respectively.
50
51 * hosts/x86-64linux.h (a8_uint64_t): New.
52 (user_regsx32_struct): Renamed to ...
53 (user_regs64_struct): This. Replace uint64_t with a8_uint64_t.
54 (elf_gregx32_t): Renamed to ...
55 (elf_greg64_t): This. Replace uint64_t with a8_uint64_t.
56 (ELF_NGREGX32): Removed.
57 (ELF_NGREG64): New.
58 (elf_gregx32_t): Removed.
59 (elf_greg64_t): New.
60 (struct prstatus64_timeval): New.
61 (elf_prstatusx32): Replace elf_gregsetx32_t with elf_gregset64_t.
62 (elf_prstatus64): New.
63 (elf_prpsinfo64): New.
64 (prstatus64_t, prpsinfo64_t): New typedef.
65
66 2012-10-29 Sean Keys <skeys@ipdatasys.com>
67
68 * elf32-xgate.c(elf_xgate_howto_table): Fix src and dest mask for
69 R_XGATE_16
70
71 2012-10-29 Alan Modra <amodra@gmail.com>
72
73 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask in
74 R_PPC_VLE_LO16A, R_PPC_VLE_HI16A, R_PPC_VLE_HA16A,
75 R_PPC_VLE_SDAREL_LO16A, R_PPC_VLE_SDAREL_HI16A,
76 R_PPC_VLE_SDAREL_HA16A reloc howtos.
77
78 2012-10-26 Nick Clifton <nickc@redhat.com>
79
80 * po/uk.po: Updated Ukranian translation.
81
82 2012-10-26 Alan Modra <amodra@gmail.com>
83
84 PR target/14758
85 * elf32-ppc.c (ppc_elf_reloc_type_lookup): Decode ppc64 _DS
86 bfd_reloc values. Map to corresponding D-form relocs.
87 (is_insn_ds_form, is_insn_qs_form): New functions.
88 (ppc_elf_relocate_section): Validate insn with DS-form or DQ-form
89 fields using D-form reloc.
90
91 2012-10-25 H.J. Lu <hongjiu.lu@intel.com>
92
93 * elf32-i386.c (elf_i386_size_dynamic_sections): Replace
94 _GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgot.
95 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
96
97 2012-10-24 H.J. Lu <hongjiu.lu@intel.com>
98
99 * compress.c (bfd_is_section_compressed): Don't decompress the
100 section.
101
102 2012-10-23 Nathan Sidwell <nathan@codesourcery.com>
103
104 * bfd-in.h (bfd_elf_stack_segment_size): Declare.
105 * bfd-in2.h: Rebuilt.
106 * elfxx-target.h (elf_backend_stack_align): New.
107 (elfNN_bed): Add it.
108 * elf-bfd.h (struct elf_backend_data): Add stack_align field.
109 * elf.c (bfd_elf_map_sections_to_segments): Pay attention to
110 stack_align and stacksize for PT_GNU_STACK segment.
111 (assign_file_positions_for_non_load_sections): Set p_memsz for
112 PT_GNU_STACK segment.
113 (copy_elf_program_header): Copy PT_GNU_STACK size.
114 * elflink.c (bfd_elf_stack_segment_size): New function, taken from
115 uclinux backends.
116 (bfd_elf_size_dynamic_sections): Determine
117 PT_GNU_STACK requirements after calling backend. Pay attention to
118 stacksize.
119 * elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Call
120 bfd_elf_stack_segment_size.
121 (elf32_bfinfdpic_modify_program_headers): Delete.
122 (elf32_bfingfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
123 here.
124 (elf_backend_stack_align): Override.
125 (elf_backend_modify_program_headers): Don't override.
126 * elf32-frv.c (frvfdpic_always_size_sections): Call
127 bfd_elf_stack_segment_size.
128 (elf32_frvfdpic_modify_program_headers): Delete.
129 (elf32_frvfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
130 here.
131 (elf_backend_stack_align): Override.
132 (elf_backend_modify_program_headers): Don't override.
133 * elf32-lm32.c (lm32_elf_always_size_sections): Leave
134 PT_GNU_STACK creation to underlying elf support. Check
135 __stacksize here for backwards compatibility, and set it if
136 needed.
137 (lm32_elf_modify_segment_map): Delete.
138 (lm32_elf_modify_program_headers): Delete.
139 (elf_backend_stack_align): Override.
140 (elf_backend_modify_segment_map): Don't override.
141 (elf_backend_modify_program_headers): Don't override.
142 * elf32-sh.c (sh_elf_always_size_sections): Call
143 bfd_elf_stack_segment_size.
144 (sh_elf_modify_program_headers): Delete.
145 (sh_elf_copy_private_data): Don't copy PT_GNU_STACK
146 here.
147 (elf_backend_stack_align): Override.
148 (elf_backend_modify_program_headers): Don't override.
149 * elf32-tic6x.c (elf32_tic6x_always_size_sections): Call
150 bfd_elf_stack_segment_size.
151 (elf32_tic6x_modify_program_headers): Delete.
152 (elf32_tic6x_copy_private_data): Delete.
153 (elf_backend_stack_align): Override.
154 (bfd_elf32_bfd_copy_private_bfd_data): Don't override.
155 (elf_backend_modify_program_headers): Don't override.
156
157 2012-10-22 Alan Modra <amodra@gmail.com>
158
159 * cache.c (cache_bmmap): Don't use void* arithmetic.
160
161 2012-10-21 Alan Modra <amodra@gmail.com>
162
163 * compress.c (bfd_cache_section_contents): New function.
164 * bfd-in2.h: Regenerate.
165
166 2012-10-21 Hans-Peter Nilsson <hp@bitrange.com>
167
168 * linker.c (_bfd_generic_link_output_symbols): Handle a
169 no-longer-global symbol entered through a plugin.
170
171 2012-10-20 Alan Modra <amodra@gmail.com>
172
173 * compress.c: Reinstate 2012-10-19 change.
174 (bfd_get_full_section_contents): Don't free unless we alloc.
175 Use proper decompress size. Delete some vars, rename others.
176
177 2012-10-19 Tom Tromey <tromey@redhat.com>
178
179 * compress.c: Revert previous patch.
180
181 2012-10-19 Tom Tromey <tromey@redhat.com>
182
183 * compress.c (bfd_get_full_section_contents): Don't cache
184 decompressed contents.
185
186 2012-10-18 Kai Tietz <ktietz@redhat.com>
187
188 PR binutils/14067
189 * coff-i386.c (bfd_target): Add section flag SEC_EXCLUDE.
190 Allow BFD_COMPRESS and BFD_DECOMPRESS flags.
191 * coff-x86_64.c: Likewise.
192 * coffcode.h (DOT_ZDEBUG): New define.
193 (sec_to_styp_flags): Check for .zdebug.
194 (styp_to_sec_flags): Likewise.
195 * coffgen.c (make_a_section): Handle .debug_* section
196 compression/decompression flags.
197 * cofflink.c (mark_relocs): Ignore relocations
198 for a section, which isn't marked as used.
199 (_bfd_coff_link_input_bfd): Add support of compressed
200 debug sections.
201 * compress.c (decompress_contents): Loop as long
202 as there is input available and there is room for
203 output.
204 * bfd/pe-arm.c: Add .zdebug_ partial match entry.
205 * pe-i386.c: Likewise.
206 * pe-x86_64.c: Likewise.
207 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't clear all
208 data-directories as this might destroy content.
209
210 * coff-i386.c (_bfd_generic_find_nearest_line_discriminator):
211 define as coff_find_nearest_line_discriminator.
212 * libcoff-in.h (coff_find_nearest_line_discriminator): New
213 * libcoff.h: Regenerated.
214 * coff-x86_64.c: Likewise.
215 * coffgen.c (coff_find_nearest_line_discriminator): New function.
216 prototype.
217
218 2012-10-16 Joel Brobecker <brobecker@adacore.com>
219
220 * coff64-rs6000.c (rs6000coff64_vec): Set _close_and_cleanup
221 field to _bfd_archive_close_and_cleanup.
222 (aix5coff64_vec): Likewise.
223
224 2012-10-16 Joel Brobecker <brobecker@adacore.com>
225
226 * coff-rs6000.c (rs6000coff_vec): Set _close_and_cleanup
227 field to _bfd_archive_close_and_cleanup.
228 (pmac_xcoff_vec): Likewise.
229
230 2012-10-16 Sofiane Naci <sofiane.naci@arm.com>
231
232 * elf64-aarch64.c (elf64_aarch64_tls_howto_table): Fix shift value for
233 R_AARCH64_TLSIE_LD_GOTTPREL_PREL19, R_AARCH64_TLSLE_MOVW_TPREL_G2,
234 R_AARCH64_TLSLE_MOVW_TPREL_G1, R_AARCH64_TLSLE_MOVW_TPREL_G1_NC,
235 R_AARCH64_TLSLE_ADD_TPREL_HI12.
236 (elf64_aarch64_tlsdesc_howto_table): Fix shift value for
237 R_AARCH64_TLSDESC_LD64_PREL19 and R_AARCH64_TLSDESC_OFF_G1.
238 (elf64_aarch64_final_link_relocate): Add signed_addend when resolving
239 AARCH64_TLSLE_*_TPREL_* relocations.
240
241 2012-10-16 Alan Modra <amodra@gmail.com>
242
243 * elf32-xtensa.c (free_section_cache): Renamed from
244 clear_section_cache. Don't zero cache.
245 (section_cache_section): Remove ineffectual zero of cache.
246 Call init_section_cache instead.
247
248 2012-10-15 Doug Evans <dje@google.com>
249
250 * elf.c (special_sections_d): Add comment.
251
252 2012-10-13 H.J. Lu <hongjiu.lu@intel.com>
253
254 * Makefile.am (LIBDL): Replace -ldl with @lt_cv_dlopen_libs@.
255 * configure.in (lt_cv_dlopen_libs): AC_SUBST.
256 * Makefile.in: Regenerated.
257 * configure: Likewise.
258
259 2012-10-08 Alan Modra <amodra@gmail.com>
260
261 PR binutils/14662
262 * elf.c (_bfd_elf_make_section_from_shdr): Treat .gdb_index as
263 SEC_DEBUGGING.
264
265 2012-09-20 Walter Lee <walt@tilera.com>
266
267 * elf32-tilepro.c (tilepro_elf_relocate_section): Adjust got
268 relocations with value of hgot.
269 * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
270
271 2012-09-19 Steve Ellcey <sellcey@mips.com>
272
273 * config.bfd: Add mips*-mti-elf* target.
274
275 2012-09-18 H.J. Lu <hongjiu.lu@intel.com>
276
277 PR ld/14591
278 * elf-bfd.h (_bfd_elf_merge_symbol): Add an argument to return
279 if the old symbol is weak.
280
281 * elf32-sh-symbian.c (sh_symbian_relocate_section): Update
282 _bfd_elf_merge_symbol call.
283
284 * elflink.c (_bfd_elf_merge_symbol): Add an argument to return
285 if the old symbol is weak.
286 (_bfd_elf_add_default_symbol): Update _bfd_elf_merge_symbol
287 call.
288 (elf_link_add_object_symbols): Don't update symbol type from a
289 weak definition. Update symbol type from a common symbol when
290 overriding a weak symbol.
291
292 2012-09-17 H.J. Lu <hongjiu.lu@intel.com>
293
294 * elf32-i386.c (elf_i386_convert_mov_to_lea): Ignore discarded
295 section.
296 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
297
298 2012-09-17 H.J. Lu <hongjiu.lu@intel.com>
299
300 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Replace return
301 FALSE with abort.
302 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
303
304 2012-09-17 Walter Lee <walt@tilera.com>
305
306 * elf32-tilepro.c (tilepro_elf_relocate_section): Remove unused
307 got_base variable.
308 * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
309
310 2012-09-17 Walter Lee <walt@tilera.com>
311
312 * elf32-tilepro.c (tilepro_elf_relocate_section): Fix computation
313 of got relocations for when .got.plt section is merged with .got.
314 * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
315
316 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
317
318 * configure: Regenerate.
319
320 2012-09-13 Anthony Green <green@moxielogic.com>
321
322 * targets.c (bfd_elf32_bigmoxie_vec, bfd_elf32_littlemoxie_vec):
323 Define.
324 (bfd_elf32_moxie_vec): Remove.
325 * config.bfd, configure.in: Add bi-endian support for moxie.
326 * configure: Rebuilt.
327 * elf32-moxie.c (TARGET_LITTLE_NAME, TARGET_LITTLE_SYM): Define.
328 (TARGET_BIG_NAME, TARGET_BIG_SYM): Update for bi-endian support.
329
330 2012-09-12 Doug Kwan <dougkwan@google.com>
331
332 * elf64-ppc.c (ppc64_elf_relocate_section): Use pre-adjusted
333 relocation for stub lookup.
334
335 2012-09-12 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
336
337 * bfd-in2.h: Regenerated.
338 * elf64-aarch64.c
339 (elf64_aarch64_howto_table): Add R_AARCH64_GOT_LD_PREL19 reloc to HOWTO.
340 (elf64_aarch64_reloc_map): Add reloc entry.
341 (aarch64_resolve_relocation): Likewise.
342 (bfd_elf_aarch64_put_addend): Likewise.
343 (aarch64_reloc_got_type): Likewise.
344 (elf64_aarch64_final_link_relocate): Likewise.
345 (lf64_aarch64_check_relocs): Likewise.
346 (elf64_aarch64_check_relocs): New case for R_AARCH64_ADR_PREL_LO21
347 reloc.
348 * libbfd.h: Regenerated.
349 * reloc.c (R_AARCH64_GOT_LD_PREL19): New reloc.
350
351 2012-09-10 Matthias Klose <doko@ubuntu.com>
352
353 * config.in: Disable sanity check for kfreebsd.
354
355 2012-09-10 H.J. Lu <hongjiu.lu@intel.com>
356
357 * configure: Regenerated.
358
359 2012-09-04 Sergey A. Guriev <sergey.a.guriev@intel.com>
360
361 * cpu-ia64-opc.c (ins_cnt6a): New function.
362 (ext_cnt6a): Ditto.
363 (ins_strd5b): Ditto.
364 (ext_strd5b): Ditto.
365 (elf64_ia64_operands): Add new operand types.
366
367 2012-09-04 H.J. Lu <hongjiu.lu@intel.com>
368
369 PR binutils/14493
370 * elf.c (ignore_section_sym): Also ignore section symbols without
371 a BFD section.
372
373 2012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
374
375 * elf32-s390.c (elf_s390_relocate_section): Handle PLTOFF for
376 local and global ifunc symbols.
377 * elf64-s390.c (elf_s390_relocate_section): Likewise.
378
379 2012-09-02 H.J. Lu <hongjiu.lu@intel.com>
380
381 * elf-bfd.h (elf_link_hash_table): Add hdynamic for the
382 _DYNAMIC symbol.
383
384 * elflink.c (_bfd_elf_link_create_dynamic_sections): Set
385 hdynamic.
386
387 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Check
388 hdynamic instead of "_DYNAMIC".
389 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
390 * elf32-cr16.c (elf32_arm_finish_dynamic_symbol): Likewise.
391 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
392 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
393 * elf32-i386.c (elf_i386_convert_mov_to_lea): Likewise.
394 * elf32-lm32.c (lm32_elf_finish_dynamic_symbol): Likewise.
395 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
396 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
397 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
398 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
399 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
400 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
401 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
402 * elf64-aarch64.c elf64_aarch64_finish_dynamic_symbol(): Likewise.
403 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
404 * elf64-ia64-vms.c (elf64_ia64_finish_dynamic_symbol): Likewise.
405 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
406 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
407 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
408 * elfnn-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
409 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
410 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
411 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
412
413 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Check
414 hdynamic, hgot, hplt instead of _DYNAMIC, _GLOBAL_OFFSET_TABLE_,
415 _PROCEDURE_LINKAGE_TABLE_.
416 * elf32-score.c (s3_bfd_score_elf_finish_dynamic_symbol): Likewise.
417 * elf32-score7.c (s7_bfd_score_elf_finish_dynamic_symbol): Likewise.
418
419 2012-08-31 H.J. Lu <hongjiu.lu@intel.com>
420
421 * elf32-i386.c (elf_i386_convert_mov_to_lea): Don't optimize
422 _DYNAMIC.
423 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
424
425 2012-08-31 H.J. Lu <hongjiu.lu@intel.com>
426
427 * elf32-i386.c (elf_i386_convert_mov_to_lea): New.
428 (elf_i386_size_dynamic_sections): Use it on input sections.
429 (elf_i386_relocate_section): Don't convert
430 "mov foo@GOT(%reg), %reg" to "lea foo@GOTOFF(%reg), %reg"
431 for local symbols here.
432
433 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): New.
434 (elf_x86_64_size_dynamic_sections): Use it on input sections.
435 (elf_x86_64_relocate_section): Don't convert
436 "mov foo@GOTPCREL(%rip), %reg" to "lea foo(%rip), %reg"
437 for local symbols here.
438
439 2012-08-30 H.J. Lu <hongjiu.lu@intel.com>
440
441 * elf32-i386.c (elf_i386_relocate_section): Convert
442 "mov foo@GOT(%reg), %reg" to "lea foo@GOTOFF(%reg), %reg"
443 for local symbols.
444
445 * elf64-x86-64.c (elf_x86_64_relocate_section): Convert
446 "mov foo@GOTPCREL(%rip), %reg" to "lea foo(%rip), %reg"
447 for local symbols.
448
449 2012-08-31 Alan Modra <amodra@gmail.com>
450
451 PR ld/14464
452 * elf64-ppc.c (ppc64_elf_relocate_section): Map symbols defined
453 by a linker script in .opd to corresponding input .opd section.
454
455 2012-08-28 Maciej W. Rozycki <macro@codesourcery.com>
456
457 * elf32-ppc.c (ppc_elf_relocate_section): Assert that dynindx is
458 not minus one.
459 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
460
461 2012-08-28 Maciej W. Rozycki <macro@codesourcery.com>
462
463 * elflink.c (_bfd_elf_merge_symbol): Also override the version
464 a dynamic symbol defaulted to if preempted with a hidden or
465 internal definition.
466
467 2012-08-28 Walter Lee <walt@tilera.com>
468
469 * elf32-tilepro.c (allocate_dynrelocs): Use PLT_ENTRY_SIZE as size
470 of header.
471 (tilepro_plt_entry_build): Account for new header size.
472 (tilepro_elf_finish_dynamic_sections): Ditto.
473 (tilepro_elf_plt_sym_val): Ditto.
474 * elfxx-tilegx.c (allocate_dynrelocs): Use PLT_ENTRY_SIZE as size
475 of header + tail.
476 (tilegx_elf_finish_dynamic_sections): Account for new padding.
477
478 2012-08-27 Walter Lee <walt@tilera.com>
479
480 * reloc.c (Add BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL,
481 BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL,
482 BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL,
483 BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL,
484 BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL,
485 BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL,
486 BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL,
487 BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL,
488 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL,
489 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL,
490 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL,
491 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL,
492 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL,
493 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL): new relocations.
494 * elfxx-tilegx.c (tilegx_elf_howto_table): Handle new relocations.
495 (tilegx_reloc_map): Ditto.
496 (reloc_to_create_func): Ditto.
497 (tilegx_elf_check_relocs): Ditto.
498 (tilegx_elf_gc_sweep_hook): Ditto.
499 (tilegx_elf_relocate_section): Ditto.
500 * libbfd.h: Regenerate.
501 * bfd-in2.h: Regenerate.
502
503 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
504
505 * elf32-arm.c (v8): New array.
506 (tag_cpu_arch_combine): Add support for ARMv8 attributes.
507 (elf32_arm_merge_eabi_attributes): Likewise.
508 (VFP_VERSION_COUNT): New define.
509
510 2012-08-20 Tom Tromey <tromey@redhat.com>
511
512 * vms-lib.c (_bfd_vms_lib_get_module): Use bfd_zmalloc for
513 areltdata.
514 * opncls.c (_bfd_delete_bfd): Free arelt_data.
515 * mach-o.c (bfd_mach_o_fat_member_init): Use bfd_zmalloc for
516 areltdata.
517 * ecoff.c (_bfd_ecoff_slurp_armap): Use free for mapdata.
518 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Use bfd_zmalloc for
519 areltdata.
520 (xcoff_write_archive_contents_old): Likewise.
521 (xcoff_write_archive_contents_big): Likewise.
522 * archive64.c (bfd_elf64_archive_slurp_armap): Use free for
523 areltdata.
524 * archive.c (_bfd_generic_read_ar_hdr_mag): Use bfd_zmalloc and
525 free for areltdata.
526 (_bfd_get_elt_at_filepos): Likewise. Clear n_nfd->arelt_data on
527 failure.
528 (do_slurp_bsd_armap): Use bfd_zmalloc and free for areltdata.
529 (do_slurp_coff_armap): Likewise.
530 (_bfd_slurp_extended_name_table): Likewise.
531 (bfd_slurp_bsd_armap_f2): Likewise. Don't leak 'mapdata'.
532
533 2012-08-17 Nick Clifton <nickc@redhat.com>
534
535 * po/vi.po: Updated Vietnamese translation.
536
537 2012-08-17 Yuri Chornoivan <yurchor@ukr.net>
538
539 * elf-bfd.h, * elf32-ppc.c, * elf64-ia64-vms.c, * elfnn-ia64.c,
540 * elfxx-mips.c, * vms-alpha.c: Typo fixes.
541
542 2012-08-17 Alan Modra <amodra@gmail.com>
543
544 PR binutils/14475:
545 * archive.c (bfd_ar_hdr_from_filesystem): Revert last change.
546 Instead malloc areltdata.
547
548 2012-08-16 Tom Tromey <tromey@redhat.com>
549
550 PR binutils/14475:
551 * archive.c (bfd_ar_hdr_from_filesystem): Allocate areltdata on
552 'member' BFD. Don't try to free 'ared'.
553
554 2012-08-14 Nick Clifton <nickc@redhat.com>
555
556 * po/uk.po: Updated Ukranian translation.
557
558 2012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
559
560 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Look up
561 the options section in the output rather than input BFD to
562 decide if to add a DT_MIPS_OPTIONS tag.
563
564 2012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
565
566 * config.bfd: Wrap mips*el-*-linux* and mips*-*-linux* into
567 #ifdef BFD64.
568
569 2012-08-13 Ian Bolton <ian.bolton@arm.com>
570 Laurent Desnogues <laurent.desnogues@arm.com>
571 Jim MacArthur <jim.macarthur@arm.com>
572 Marcus Shawcroft <marcus.shawcroft@arm.com>
573 Nigel Stephens <nigel.stephens@arm.com>
574 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
575 Richard Earnshaw <rearnsha@arm.com>
576 Sofiane Naci <sofiane.naci@arm.com>
577 Tejas Belagod <tejas.belagod@arm.com>
578 Yufeng Zhang <yufeng.zhang@arm.com>
579
580 * Makefile.am: Add AArch64 files.
581 * Makefile.in: Regenerate.
582 * archures.c (bfd_aarch64_arch): New declaration.
583 (bfd_archures_list): Use bfd_archures_list.
584 * bfd-in.h (bfd_elf64_aarch64_init_maps): New declaration.
585 (bfd_aarch64_process_before_allocation): New declaration.
586 (bfd_elf64_aarch64_process_before_allocation): New declaration.
587 (bfd_elf64_aarch64_set_options): New declaration.
588 (bfd_elf64_aarch64_add_glue_sections_to_bfd): New declaration.
589 (BFD_AARCH64_SPECIAL_SYM_TYPE_MAP): New definition.
590 (BFD_AARCH64_SPECIAL_SYM_TYPE_TAG): New definition.
591 (BFD_AARCH64_SPECIAL_SYM_TYPE_OTHER): New definition.
592 (BFD_AARCH64_SPECIAL_SYM_TYPE_ANY): New definition.
593 (bfd_is_aarch64_special_symbol_name): New declaration.
594 (bfd_aarch64_merge_machines): New declaration.
595 (bfd_aarch64_update_notes): New declaration.
596 (int bfd_aarch64_get_mach_from_notes): New declaration.
597 (elf64_aarch64_setup_section_lists): New declaration.
598 (elf64_aarch64_next_input_section): New declaration.
599 (elf64_aarch64_size_stubs): New declaration.
600 (elf64_aarch64_build_stubs): New declaration.
601 * config.bfd: Add AArch64.
602 * configure.in: Add AArch64.
603 * configure: Regenerate.
604 * cpu-aarch64.c: New file.
605 * elf-bfd.h: Add AArch64.
606 * bfd-in2.h: Regenerate.
607 * libbfd.h: Regenerate.
608 * elf64-aarch64.c: New file.
609 * reloc.c: Add AArch64 relocations.
610 * targets.c: Add AArch64.
611 * po/SRC-POTFILES.in: Regenerate.
612
613 2012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
614
615 * elfxx-mips.c (mips_elf_calculate_relocation): Fix the handling
616 of protected symbols.
617
618 2012-08-10 Alan Modra <amodra@gmail.com>
619
620 PR binutils/14444
621 * elf.c (IS_VALID_GROUP_SECTION_HEADER) Add minsize param.
622 (setup_group): Adjust uses.
623 (bfd_section_from_shdr): Allow SHT_GROUP sections with just a flag
624 word.
625
626 2012-08-09 Nick Clifton <nickc@redhat.com>
627
628 * po/vi.po: Updated Vietnamese translation.
629
630 2012-08-09 Maciej W. Rozycki <macro@codesourcery.com>
631
632 * elfxx-mips.c (LA25_LUI_MICROMIPS_1, LA25_LUI_MICROMIPS_2):
633 Remove macros, folding them into...
634 (LA25_LUI_MICROMIPS): ... this new macro.
635 (LA25_J_MICROMIPS_1, LA25_J_MICROMIPS_2): Likewise into...
636 (LA25_J_MICROMIPS): ... this new macro.
637 (LA25_ADDIU_MICROMIPS_1, LA25_ADDIU_MICROMIPS_2): Likewise
638 into...
639 (LA25_ADDIU_MICROMIPS): ... this new macro.
640 (bfd_put_micromips_32, bfd_get_micromips_32): New functions.
641 (mips_elf_create_la25_stub): Use them.
642 (check_br32_dslot, check_br32, check_relocated_bzc): Likewise.
643 (_bfd_mips_elf_relax_section): Likewise.
644
645 2012-08-09 Alan Modra <amodra@gmail.com>
646 Tom Tromey <tromey@redhat.com>
647
648 * archive.c (SECTION Archives): Update documentation.
649 (_bfd_delete_archive_data): Remove.
650 (_bfd_add_bfd_to_archive_cache): Set 'parent_cache' and 'key'.
651 (archive_close_worker, _bfd_archive_close_and_cleanup): New
652 functions.
653 * libbfd-in.h (struct areltdata <parent_cache, key>): New fields.
654 (_bfd_delete_archive_data): Don't declare.
655 (_bfd_archive_close_and_cleanup): Declare.
656 (_bfd_generic_close_and_cleanup): Redefine.
657 * libbfd.h: Rebuild.
658 * opncls.c (_bfd_delete_bfd): Don't call _bfd_delete_archive_data.
659 (bfd_close): Don't close nested thin archives here.
660
661 2012-08-07 Tom Tromey <tromey@redhat.com>
662
663 * archive.c (_bfd_delete_archive_data): New function.
664 * libbfd-in.h (_bfd_delete_archive_data): Declare.
665 * libbfd.h: Rebuild.
666 * opncls.c (_bfd_delete_bfd): Call _bfd_delete_archive_data.
667
668 2012-08-07 Nick Clifton <nickc@redhat.com>
669
670 * po/uk.po: Updated Ukranian translation.
671
672 2012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
673
674 * elflink.c (bfd_elf_record_link_assignment): Remove --defsym
675 symbols special case.
676
677 2012-08-05 Maciej W. Rozycki <macro@linux-mips.org>
678
679 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Don't allocate
680 PLT slots for local symbols.
681
682 2012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
683
684 * elf64-mips.c (mips16_elf64_howto_table_rela): Correct src_mask
685 field initializers throughout.
686 * elfn32-mips.c (elf_mips16_howto_table_rela): Likewise.
687
688 2012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
689
690 * elfxx-mips.c (mips_elf_perform_relocation): Update the
691 cross-mode jump message.
692
693 2012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
694
695 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Update the
696 comment on DT_MIPS_RLD_MAP.
697
698 2012-08-03 Tom Tromey <tromey@redhat.com>
699
700 * opncls.c (_bfd_delete_bfd): Now static.
701 * libbfd-in.h (_bfd_delete_bfd): Don't declare.
702 * libbfd.h: Rebuild.
703
704 2012-08-02 Sean Keys <skeys@ipdatasys.com>
705
706 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Modified
707 conditional statment to allow suppression of mismatched bank
708 warning.
709
710 2012-08-01 Alan Modra <amodra@gmail.com>
711
712 * dwarf2.c (struct dwarf2_debug): Add close_on_cleanup.
713 (_bfd_dwarf2_slurp_debug_info): Set close_on_cleanup if we open
714 gnu_debuglink bfd.
715 (_bfd_dwarf2_cleanup_debug_info): Act on close_on_cleanup.
716
717 2012-07-30 Nick Clifton <nickc@redhat.com>
718
719 * po/bfd.pot: Updated template.
720 * po/es.po: Updated Spanish translation.
721 * po/fi.po: Updated Finnish translation.
722 * po/fr.po: Updated French translation.
723 * po/ru.po: Updated Russian translation.
724 * po/uk.po: Updated Ukranian translation.
725
726 2012-07-27 Mike Frysinger <vapier@gentoo.org>
727
728 * configure.in (AC_INIT): Call with the args bfd and 2.22.52.
729 (AM_INIT_AUTOMAKE): Remove args.
730 * configure: Regenerate.
731
732 2012-07-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
733
734 * cpu-s390.c (bfd_s390_64_arch, bfd_s390_arch): Pick the default
735 arch depending on the target size.
736
737 2012-07-27 Tristan Gingold <gingold@adacore.com>
738
739 * configure.in: Bump version to 2.23.51
740 * configure: Regenerate.
741
742 2012-07-26 Teresa Johnson <tejohnson@google.com>
743
744 * bfd/dwarf2.c (find_line): Initialize discriminator_ptr
745 if it is non-NULL.
746
747 2012-07-26 Meador Inge <meadori@codesourcery.com>
748 Nick Clifton <nickc@redhat.com>
749
750 PR ld/14397
751 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Report an error
752 if a required section is missing from the linker script.
753
754 2012-07-24 Jan Waclawek <konfera@efton.sk>
755 PR 13899
756 * elf32-avr.c (elf32_avr_relax_delete_bytes): Call
757 _bfd_elf_link_read_relocs with keep_memory as TRUE.
758
759 2012-07-24 Teresa Johnson <tejohnson@google.com>
760
761 * bfd.c (bfd_find_nearest_line_discriminator): New macro.
762 * coff-rs6000.c: Init _bfd_find_nearest_line_discriminator.
763 * coff64-rs6000.c: Likewise.
764 * dwarf2.c (struct line_info): Add discriminator field.
765 (add_line_info): Fill in new discriminator field.
766 (decode_line_info): Record discriminator information instead
767 of ignoring it.
768 (lookup_address_in_line_info_table): Return discriminator field if
769 requested.
770 (comp_unit_find_nearest_line): Add discriminator argument.
771 (find_line): Likewise.
772 (_bfd_dwarf2_find_nearest_line): Likewise.
773 (_bfd_dwarf2_find_line): Likewise.
774 * elf-bfd.h (_bfd_elf_find_nearest_line_discriminator): New.
775 (_bfd_elf_find_line_discriminator): Likewise.
776 (_bfd_generic_find_nearest_line_discriminator): Likewise. Defined.
777 * elf.c (_bfd_elf_find_nearest_line): Change to a wrapper
778 that invokes _bfd_elf_find_nearest_line_discriminator with correct
779 arguments.
780 (_bfd_elf_find_nearest_line_discriminator): New.
781 (_bfd_elf_find_line): Change to a wrapper
782 that invokes _bfd_elf_find_line_discriminator with correct
783 arguments.
784 (_bfd_elf_find_line_discriminator): New.
785 * coffgen.c (coff_find_nearest_line_with_names): Handle
786 new discriminator argument.
787 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
788 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
789 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
790 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
791 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Add discriminator
792 argument.
793 (_bfd_dwarf2_find_line): Likewise.
794 (_bfd_generic_find_nearest_line_discriminator): New.
795 * libbfd.c (_bfd_generic_find_nearest_line_discriminator): New.
796 * bfd-in2.h: Regenerated.
797 * libbfd.h: Likewise.
798 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize
799 _bfd_find_nearest_line_discriminator with
800 _bfd_generic_find_nearest_line_discriminator.
801 (bfd_target): Add _bfd_find_nearest_line_discriminator.
802
803 2012-07-24 Sean Keys <skeys@ipdatasys.com>
804
805 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Added code
806 that enables the linker to offset addresses, when linking against
807 symbols from the XGATE processor and vice versa.
808
809 2012-07-23 Nick Clifton <nickc@redhat.com>
810
811 * cisco-core.c (cisco_core_file_failing_command): Make static.
812 (cisco_core_file_failing_signal): Make static.
813
814 2012-07-18 H.J. Lu <hongjiu.lu@intel.com>
815
816 * bfd-in2.h: Regenerated.
817
818 2012-07-18 Nicolàs Alejandro Di Risio <sheeva@tiscali.it>
819
820 PR binutils/14335
821 * section.c: Fix a typo in comments.
822
823 2012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
824
825 * elf64-s390.c: Include elf-s390-common.c.
826 (R_390_IRELATIVE): New reloc.
827 (elf_s390_reloc_type_lookup): Support R_390_IRELATIVE.
828 (RELA_ENTRY_SIZE): New macro.
829 (elf_s390_link_hash_entry): New fields ifunc_resolver_address and
830 *ifunc_resolver_section.
831 (struct plt_entry): New struct.
832 (struct elf_s390_obj_tdata): New field local_plt.
833 (elf_s390_local_plt): New macro.
834 (struct elf_s390_link_hash_table): New field irelifunc.
835 (ELF64): New macro.
836 (link_hash_newfunc): Initialize new fields.
837 (elf_s390_check_relocs): Handle IFUNC symbols.
838 (elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC
839 symbols.
840 (allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for
841 IFUNC symbols.
842 (elf_s390_size_dynamic_sections): Handle IFUNC symbols.
843 (elf_s390_relocate_section): Likewise.
844 (elf_s390_finish_dynamic_symbol): Likewise.
845 (elf_s390_finish_dynamic_sections): Handle local IFUNC symbols.
846 (elf_s390_finish_ifunc_symbol): New function.
847 (elf_s390_gc_sweep_hook): Handle local plt entries.
848 (elf_backend_add_symbol_hook): Define.
849 * elf32-s390.c: See elf64-s390.c changes.
850 * elf-s390-common.c: New file.
851 * bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field.
852 * libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for
853 BFD_RELOC_390_IRELATIVE.
854 * reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation.
855
856 2012-07-13 Nick Clifton <nickc@redhat.com>
857
858 * aix386-core.c: Remove use of PTR and PARAMS macros.
859 * archive.c: Likewise.
860 * cache.c: Likewise.
861 * cisco-core.c: Likewise.
862 * coff-alpha.c: Likewise.
863 * coff-apollo.c: Likewise.
864 * coff-aux.c: Likewise.
865 * coff-h8300.c: Likewise.
866 * coff-h8500.c: Likewise.
867 * coff-i386.c: Likewise.
868 * coff-i960.c: Likewise.
869 * coff-ia64.c: Likewise.
870 * coff-m68k.c: Likewise.
871 * coff-m88k.c: Likewise.
872 * coff-mcore.c: Likewise.
873 * coff-mips.c: Likewise.
874 * coff-or32.c: Likewise.
875 * coff-ppc.c: Likewise.
876 * coff-rs6000.c: Likewise.
877 * coff-sh.c: Likewise.
878 * coff-sparc.c: Likewise.
879 * coff-stgo32.c: Likewise.
880 * coff-tic30.c: Likewise.
881 * coff-tic4x.c: Likewise.
882 * coff-tic54x.c: Likewise.
883 * coff-tic80.c: Likewise.
884 * coff-w65.c: Likewise.
885 * cofflink.c: Likewise.
886 * cpu-arc.c: Likewise.
887 * cpu-cris.c: Likewise.
888 * cpu-h8500.c: Likewise.
889 * cpu-i960.c: Likewise.
890 * cpu-msp430.c: Likewise.
891 * cpu-ns32k.c: Likewise.
892 * cpu-powerpc.c: Likewise.
893 * cpu-rs6000.c: Likewise.
894 * cpu-tic4x.c: Likewise.
895 * cpu-w65.c: Likewise.
896 * ecoff.c: Likewise.
897 * ecofflink.c: Likewise.
898 * elf-m10200.c: Likewise.
899 * elf32-bfin.c: Likewise.
900 * elf32-cris.c: Likewise.
901 * elf32-crx.c: Likewise.
902 * elf32-fr30.c: Likewise.
903 * elf32-frv.c: Likewise.
904 * elf32-h8300.c: Likewise.
905 * elf32-i960.c: Likewise.
906 * elf32-m32c.c: Likewise.
907 * elf32-m68hc11.c: Likewise.
908 * elf32-m68hc12.c: Likewise.
909 * elf32-m68hc1x.c: Likewise.
910 * elf32-m68k.c: Likewise.
911 * elf32-mcore.c: Likewise.
912 * elf32-rl78.c: Likewise.
913 * elf32-rx.c: Likewise.
914 * elf32-s390.c: Likewise.
915 * elf32-vax.c: Likewise.
916 * elf64-alpha.c: Likewise.
917 * elf64-mmix.c: Likewise.
918 * elf64-s390.c: Likewise.
919 * elf64-sparc.c: Likewise.
920 * elfnn-ia64.c: Likewise.
921 * elfxx-mips.c: Likewise.
922 * elfxx-sparc.c: Likewise.
923 * hash.c: Likewise.
924 * hp300hpux.c: Likewise.
925 * hppabsd-core.c: Likewise.
926 * hpux-core.c: Likewise.
927 * i386dynix.c: Likewise.
928 * i386linux.c: Likewise.
929 * i386lynx.c: Likewise.
930 * i386mach3.c: Likewise.
931 * i386msdos.c: Likewise.
932 * i386os9k.c: Likewise.
933 * irix-core.c: Likewise.
934 * lynx-core.c: Likewise.
935 * m68klinux.c: Likewise.
936 * mach-o.h: Likewise.
937 * mipsbsd.c: Likewise.
938 * netbsd-core.c: Likewise.
939 * nlm32-i386.c: Likewise.
940 * osf-core.c: Likewise.
941 * pc532-mach.c: Likewise.
942 * pef.c: Likewise.
943 * ppcboot.c: Likewise.
944 * ptrace-core.c: Likewise.
945 * reloc16.c: Likewise.
946 * sco5-core.c: Likewise.
947 * som.h: Likewise.
948 * sparclinux.c: Likewise.
949 * sparclynx.c: Likewise.
950 * ticoff.h: Likewise.
951 * trad-core.c: Likewise.
952 * vms-lib.c: Likewise.
953 * xsym.h: Likewise.
954
955 2012-07-09 Alan Modra <amodra@gmail.com>
956
957 PR ld/14323
958 * elflink.c (elf_sort_symbol): Sort by size too.
959 (elf_link_add_object_symbols <weakdefs>): Simplify binary search.
960 Do not depend on ordering of symbol aliases. Match largest size.
961
962 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
963
964 * elf.c (assign_section_numbers): Check if number of sections
965 >= SHN_LORESERVE.
966 * elfcode.h (elf_object_p): Likewise.
967
968 2012-07-03 Nick Clifton <nickc@redhat.com>
969
970 * archive.c (bsd_write_armap): Catch attempts to create an archive
971 with indicies bigger than 4Gb.
972 (coff_write_armap): Likewise.
973
974 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
975
976 PR binutils/14319
977 * elf.c (_bfd_elf_make_section_from_shdr): Don't compress empty
978 debug section.
979
980 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
981
982 PR ld/3351
983 * elflink.c (_bfd_elf_update_dynamic_flags): New.
984 (_bfd_elf_merge_symbol): Update both real and indirect symbol
985 dynamic flags.
986 (_bfd_elf_add_default_symbol): Make the real symbol dynamic if
987 the indirect symbol is defined in a shared library.
988 (elf_link_add_object_symbols): Likewise. If the indirect
989 symbol has been forced local, don't make the real symbol
990 dynamic.
991 (elf_link_check_versioned_symbol): Check indirect symbol.
992 (elf_link_output_extsym): Use real symbol definition when
993 reporting indirect symbol error. Check version info for
994 dynamic versioned symbol.
995
996 2012-07-03 Alan Modra <amodra@gmail.com>
997
998 PR ld/14207
999 * elf.c (assign_file_positions_for_load_sections): Remove assertions
1000 that only PT_LOAD headers include file header and section headers.
1001 (assign_file_positions_for_non_load_sections): Similarly don't
1002 assert PT_GNU_RELRO header does not include file and section headers.
1003 Compare first section vma rather than PT_LOAD p_vaddr against
1004 relro_start when looking for PT_LOAD covering PT_GNU_RELRO. Replace
1005 abort with assertion.
1006
1007 2012-07-02 Alan Modra <amodra@gmail.com>
1008
1009 * elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_section
1010 "anyway" variant when creating .plt.
1011 (m32c_elf_relax_plt_section): Remove redundant test and unused param.
1012 (m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling
1013 m32c_elf_relax_plt_section.
1014 * elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant
1015 when creating .got and .got.plt.
1016 (_bfd_mips_elf_final_link): Likewise for .rtproc, and use
1017 bfd_get_linker_section.
1018 * sunos.c: Similarly throughout.
1019
1020 2012-07-01 Andreas Schwab <schwab@linux-m68k.org>
1021
1022 * elf.c (_bfd_elf_make_section_from_shdr): Fix typo in error
1023 message.
1024
1025 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 * elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE
1028 on unresolvable relocation.
1029
1030 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
1031
1032 * archive.c (_bfd_compute_and_write_armap): Simplify global
1033 symbol handling.
1034
1035 2012-06-29 Nick Clifton <nickc@redhat.com>
1036
1037 PR ld/14189
1038 * elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount
1039 for locally bound symbols.
1040
1041 2012-06-29 Alan Modra <amodra@gmail.com>
1042
1043 * section.c (bfd_get_linker_section): New function.
1044 * elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use
1045 the above throughout rather than bfd_get_section_by_name. Use
1046 bfd_make_section_anyway rather than bfd_make_section when creating
1047 them.
1048 * elf32-bfin.c: Likewise.
1049 * elf32-cr16.c: Likewise.
1050 * elf32-cris.c: Likewise.
1051 * elf32-frv.c: Likewise.
1052 * elf32-hppa.c: Likewise.
1053 * elf32-i370.c: Likewise.
1054 * elf32-i386.c: Likewise.
1055 * elf32-lm32.c: Likewise.
1056 * elf32-m32c.c: Likewise.
1057 * elf32-m32r.c: Likewise.
1058 * elf32-m68k.c: Likewise.
1059 * elf32-microblaze.c: Likewise.
1060 * elf32-ppc.c: Likewise.
1061 * elf32-rl78.c: Likewise.
1062 * elf32-s390.c: Likewise.
1063 * elf32-score.c: Likewise.
1064 * elf32-score7.c: Likewise.
1065 * elf32-sh.c: Likewise.
1066 * elf32-tic6x.c: Likewise.
1067 * elf32-tilepro.c: Likewise.
1068 * elf32-vax.c: Likewise.
1069 * elf32-xstormy16.c: Likewise.
1070 * elf32-xtensa.c: Likewise.
1071 * elf64-alpha.c: Likewise.
1072 * elf64-hppa.c: Likewise.
1073 * elf64-ia64-vms.c: Likewise.
1074 * elf64-ppc.c: Likewise.
1075 * elf64-s390.c: Likewise.
1076 * elf64-sh64.c: Likewise.
1077 * elf64-sparc.c: Likewise.
1078 * elf64-x86-64.c: Likewise.
1079 * elfnn-ia64.c: Likewise.
1080 * elfxx-mips.c: Likewise.
1081 * elfxx-sparc.c: Likewise.
1082 * elfxx-tilegx.c: Likewise.
1083 * elflink.c: Likewise.
1084 * elf-vxworks.c: Likewise.
1085 * elf-m10300.c: Likewise. Also make use of htab plt, got and
1086 gotplt shortcuts.
1087 * bfd-in2.h: Regenerate.
1088 * elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when
1089 calling create_rofixup_section.
1090 * elflink.c (bfd_elf_final_link): Simplify test for .dynstr.
1091
1092 2012-06-29 Alan Modra <amodra@gmail.com>
1093
1094 * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .rela
1095 section for bss type sections, except for .rela.bss.
1096 * elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
1097 * elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise.
1098 * elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise.
1099 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
1100 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
1101
1102 2012-06-28 Roland McGrath <mcgrathr@google.com>
1103
1104 * elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for
1105 displacement calculation in nacl_p case.
1106
1107 2012-06-28 Nick Clifton <nickc@redhat.com>
1108
1109 * po/uk.po: New Ukranian translation.
1110 * configure.in (ALL_LINGUAS): Add uk.
1111 * configure: Regenerate.
1112
1113 2012-06-26 Alan Modra <amodra@gmail.com>
1114
1115 * elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if input
1116 file has multiple .got/.toc sections and all don't fit in
1117 current toc group.
1118
1119 2012-06-22 Roland McGrath <mcgrathr@google.com>
1120
1121 * elf.c (assign_file_positions_for_non_load_sections): Define
1122 __ehdr_start symbol if it's referenced and there's a PT_LOAD
1123 segment that covers both the file and program headers.
1124
1125 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
1126
1127 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
1128 _GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
1129
1130 2012-06-22 Alan Modra <amodra@gmail.com>
1131
1132 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-line
1133 save/restore functions when relocatable. Make "funcs" static.
1134
1135 2012-06-18 Hans-Peter Nilsson <hp@axis.com>
1136
1137 * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presence
1138 of merged .got and .got.plt entries.
1139
1140 2012-06-18 John Szakmeister <john@szakmeister.net>
1141
1142 * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.
1143
1144 2012-06-17 Hans-Peter Nilsson <hp@axis.com>
1145
1146 * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>
1147 <R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to
1148 thread common symbols.
1149
1150 2012-06-13 Nick Clifton <nickc@redhat.com>
1151
1152 * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.
1153 (elf32_arm_object_p): If the machine number could not be deduced
1154 from the notes, call bfd_arm_get_mach_from_attributes to get the
1155 number from the attributes.
1156
1157 2012-06-12 H.J. Lu <hongjiu.lu@intel.com>
1158
1159 PR bfd/14207
1160 * elf.c (assign_file_positions_for_non_load_sections): Abort if
1161 PT_GNU_RELRO segment doesn't fit in PT_LOAD segment.
1162
1163 2012-06-12 Alan Modra <amodra@gmail.com>
1164
1165 PR ld/14207
1166 * elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type
1167 sections at end of PT_LOAD segment when searching for segment
1168 that contains end of relro extent.
1169
1170 2012-06-11 H.J. Lu <hongjiu.lu@intel.com>
1171
1172 * elf.c (assign_file_positions_for_non_load_sections): Reindent.
1173
1174 2012-06-11 H.J. Lu <hongjiu.lu@intel.com>
1175
1176 * elf.c (_bfd_elf_map_sections_to_segments): Reindent.
1177
1178 2012-06-06 Alan Modra <amodra@gmail.com>
1179
1180 * elflink.c (elf_link_input_bfd): Provide a file symbol for
1181 each input file with local syms, if the input lacks such.
1182 (bfd_elf_final_link): Add a file symbol to mark end of locals
1183 for which we can associate with input files.
1184 (struct elf_final_link_info): Add filesym_count field.
1185 (struct elf_outext_info): Add need_second_pass and second_pass.
1186 (elf_link_output_extsym): Detect symbols defined in the output
1187 file, emit them on second pass over locals.
1188
1189 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1190
1191 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
1192 of target_read_memory as bfd_size_type.
1193 * bfd-in2.h: Regenerate.
1194 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
1195 argument of target_read_memory as bfd_size_type.
1196 (_bfd_elf32_bfd_from_remote_memory): Likewise.
1197 (_bfd_elf64_bfd_from_remote_memory): Likewise.
1198 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
1199 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
1200
1201 2012-06-03 Alan Modra <amodra@gmail.com>
1202
1203 PR binutils/13897
1204 * elf.c (elf_find_function): Cache last function sym info.
1205 (_bfd_elf_maybe_function_sym): Return function size, pass in
1206 section of interest.
1207 * elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise.
1208 (_bfd_elf_maybe_function_sym): Likewise.
1209 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
1210 (opd_entry_value): Add in_code_sec param. Revert caching code.
1211 Return -1 if in_code_sec and function found in wrong section.
1212 Update all calls.
1213
1214 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
1215
1216 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
1217 of target_read_memory as size_t.
1218 * bfd-in2.h: Regenerate.
1219 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
1220 argument of target_read_memory as size_t.
1221 (_bfd_elf32_bfd_from_remote_memory): Likewise.
1222 (_bfd_elf64_bfd_from_remote_memory): Likewise.
1223 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
1224 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
1225
1226 2012-06-01 Alan Modra <amodra@gmail.com>
1227
1228 PR binutils/13897
1229 * elf64-ppc.c (opd_entry_value): Rewrite cache code.
1230
1231 2012-05-29 Tom Tromey <tromey@redhat.com>
1232
1233 * opncls.c (bfd_fopen): Always close fd on failure.
1234 (bfd_fdopenr): Likewise.
1235
1236 2012-05-27 Alan Modra <amodra@gmail.com>
1237
1238 PR ld/14170
1239 * elflink.c (_bfd_elf_merge_symbol): When a symbol defined in
1240 a dynamic library finds a new instance with non-default
1241 visibility in a regular object, correctly handle symbols
1242 already on the undefs list and undo dynamic symbol state when
1243 the new symbol is hidden or internal.
1244
1245 2012-05-25 H.J. Lu <hongjiu.lu@intel.com>
1246
1247 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't use
1248 dynamic_sec_flags to create PLT .eh_frame section.
1249 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
1250
1251 2012-05-25 Alan Modra <amodra@gmail.com>
1252
1253 PR ld/13909
1254 * elf-eh-frame.c (_bfd_elf_eh_frame_present): New function.
1255 (_bfd_elf_maybe_strip_eh_frame_hdr): Use it here.
1256 * elf-bfd.h (_bfd_elf_eh_frame_present): Declare.
1257 * elflink.c (bfd_elf_size_dynamic_sections): Let the backend
1258 size dynamic sections before stripping eh_frame_hdr.
1259 (bfd_elf_gc_sections): Handle multiple .eh_frame sections.
1260 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame
1261 if no other .eh_frame sections exist.
1262 * elf64-ppc.c (ppc64_elf_size_stubs): Likewise.
1263 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't size
1264 or alloc plt_eh_frame here..
1265 (elf_i386_size_dynamic_sections): ..do it here instead. Don't
1266 specially keep sgotplt, iplt, tgotplt, sdynbss for symbols.
1267 (elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents
1268 before writing plt offset.
1269 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size
1270 or alloc plt_eh_frame here..
1271 (elf_x86_64_size_dynamic_sections): ..do it here instead.
1272 (elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents
1273 before writing plt offset.
1274
1275 2012-05-24 Alan Modra <amodra@gmail.com>
1276
1277 PR ld/14158
1278 * elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame
1279 size to output section alignment.
1280 (ppc64_elf_build_stubs): Likewise, and extend last FDE to cover.
1281
1282 2012-05-23 Alan Modra <amodra@gmail.com>
1283
1284 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Handle
1285 BFDs with multiple .eh_frame sections.
1286
1287 2012-05-23 Alan Modra <amodra@gmail.com>
1288
1289 PR ld/13909
1290 * elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.
1291
1292 2012-05-22 H.J. Lu <hongjiu.lu@intel.com>
1293
1294 PR ld/13909
1295 * elf32-i386.c (elf_i386_create_dynamic_sections): Revert the
1296 last change.
1297 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
1298
1299 2012-05-22 Alan Modra <amodra@gmail.com>
1300
1301 * elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
1302 first one is zero size or discarded.
1303 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of
1304 glink_eh_frame contents here..
1305 (ppc_elf_finish_dynamic_sections): ..rather than here. Just set
1306 offset to .glink.
1307
1308 2012-05-22 H.J. Lu <hongjiu.lu@intel.com>
1309
1310 PR ld/13909
1311 * elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT
1312 eh_frame section if there is an input .eh_frame section.
1313 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
1314
1315 2012-05-22 H.J. Lu <hongjiu.lu@intel.com>
1316
1317 PR ld/14105
1318 * elf32-i386.c (elf_i386_create_dynamic_sections): Always
1319 create PLT eh_frame section with SEC_LINKER_CREATED.
1320 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
1321
1322 2012-05-22 Alan Modra <amodra@gmail.com>
1323
1324 * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frame
1325 sections attached to a BFD.
1326 * section.c (bfd_get_section_by_name): Rewrite description.
1327 (bfd_get_next_section_by_name): New function.
1328 * bfd-in2.h: Regenerate.
1329
1330 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
1331
1332 * elf32-m68k.c (elf_m68k_grok_prstatus): New function.
1333 (elf_m68k_grok_psinfo): New function.
1334 (elf_backend_grok_prstatus): Define.
1335 (elf_backend_grok_psinfo): Define.
1336
1337 2012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1338
1339 * elf64-mips.c (elf_backend_got_header_size): Correct definition.
1340 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF
1341 backend's GOT header size instead of hardcoding it.
1342
1343 2012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1344
1345 * elf32-vax.c (elf_vax_relocate_section)
1346 <R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
1347
1348 2012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1349
1350 * elf32-vax.c (elf_vax_relocate_section)
1351 <R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than
1352 its name as the check for text sections.
1353
1354 2012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1355
1356 * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure
1357 the third reloc offset is the same as the first.
1358
1359 2012-05-19 Alan Modra <amodra@gmail.com>
1360
1361 * elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete.
1362 (has_tls_reloc, has_tls_get_addr_call): Move back to..
1363 * elf32-ppc.c: ..here.
1364 (ppc_elf_section_flags, elf_backend_section_flags): Delete.
1365 (ppc_elf_modify_segment_map): Use ELF sh_flags to detect VLE sections.
1366
1367 2012-05-18 H.J. Lu <hongjiu.lu@intel.com>
1368
1369 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Don't make
1370 _DYNAMIC nor _GLOBAL_OFFSET_TABLE_ absolute.
1371 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
1372
1373 2012-05-18 Roland McGrath <mcgrathr@google.com>
1374
1375 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so as
1376 not to clobber the ar_fmag field stored in ARED->arch_header.
1377
1378 2012-05-18 Pedro Alves <palves@redhat.com>
1379
1380 * mach-o.h: Don't include sysdep.h.
1381
1382 2012-05-18 Nick Clifton <nickc@redhat.com>
1383
1384 PR 14072
1385 * bfd-in.h: Check for PACKAGE or PACKAGE_VERSION before
1386 complaining about config.h not having been included.
1387 * bfd-in2.h: Regenerate.
1388
1389 2012-05-18 Andreas Schwab <schwab@linux-m68k.org>
1390
1391 * aclocal.m4: Regenerate.
1392 * Makefile.in: Regenerate.
1393
1394 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
1395 Nick Clifton <nickc@redhat.com>
1396
1397 PR 14072
1398 * configure.in: Add check that sysdep.h has been included before
1399 any system header files.
1400 * configure: Regenerate.
1401 * config.in: Regenerate.
1402 * aclocal.m4: Regenerate.
1403 * bfd-in.h: Generate an error if included before config.h.
1404 * sysdep.h: Likewise.
1405 * bfd-in2.h: Regenerate.
1406 * compress.c: Remove #include "config.h".
1407 * plugin.c: Likewise.
1408 * elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h.
1409 * elf64-hppa.c: Likewise.
1410 * som.c: Likewise.
1411 * xsymc.c: Likewise.
1412
1413 2012-05-17 Maciej W. Rozycki <macro@linux-mips.org>
1414 Alan Modra <amodra@gmail.com>
1415
1416 * elf.c (ignore_section_sym): Correct comment. Don't return
1417 true for absolute section.
1418 (elf_map_symbols): Move stray comment. Adjust for above change.
1419 Don't discard global section symbols.
1420
1421 2012-05-17 Alan Modra <amodra@gmail.com>
1422
1423 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC,
1424 _GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute.
1425 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC
1426 absolute.
1427
1428 2012-05-17 Alan Modra <amodra@gmail.com>
1429
1430 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns,
1431 is_ppc_vle): Move to..
1432 * elf32-ppc.h: ..here, making is_ppc_vle a macro.
1433
1434 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1435
1436 * bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
1437 bfd_get_section_lma, bfd_get_section_alignment,
1438 bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros
1439 in order to use the `bfd' argument.
1440 * bfd-in2.h: Regenerate.
1441 * elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd'
1442 as the first argument for `bfd_get_section_alignment'.
1443 * elf32-arm.c (create_ifunc_sections): Likewise, for
1444 `bfd_set_section_alignment'.
1445 * elf32-m32r.c (m32r_elf_relocate_section): Likewise, for
1446 `bfd_get_section_name'.
1447 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
1448 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1449 (ppc_elf_relocate_section): Likewise.
1450 * elf64-mmix.c (mmix_final_link_relocate): Likewise, for
1451 `bfd_get_section_vma'.
1452 * elf64-ppc.c (create_linkage_sections): Likewise, for
1453 `bfd_set_section_alignment'.
1454
1455 2012-05-16 Georg-Johann Lay <avr@gjlay.de>
1456
1457 PR target/13503
1458 * reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
1459 * bfd-in2.h: Regenerate.
1460 * libbfd.h: Regenerate.
1461 * elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to
1462 R_AVR_8_HLO8.
1463 (avr_reloc_map): Likewise.
1464
1465 2012-05-16 Daniel Richard G. <skunk@iskunk.org>
1466
1467 PR binutils/13558
1468 * bfd/aout-cris.c: Include sysdep.h before bfd.h.
1469 * bfd/aout-ns32k.c: Likewise.
1470 * bfd/aout-sparcle.c: Likewise.
1471 * bfd/aout0.c: Likewise.
1472 * bfd/bfd-in2.h: Likewise.
1473 * bfd/coff-stgo32.c: Likewise.
1474 * bfd/cpu-lm32.c: Likewise.
1475 * bfd/cpu-microblaze.c: Likewise.
1476 * bfd/cpu-score.c: Likewise.
1477 * bfd/cpu-tilegx.c: Likewise.
1478 * bfd/cpu-tilepro.c: Likewise.
1479 * bfd/elf32-lm32.c: Likewise.
1480 * bfd/elf32-microblaze.c: Likewise.
1481 * bfd/elf32-score7.c: Likewise.
1482 * bfd/elf32-tilepro.c: Likewise.
1483 * bfd/elfxx-tilegx.c: Likewise.
1484 * bfd/mach-o.h: Likewise.
1485 * bfd/nlm32-ppc.c: Likewise.
1486 * bfd/ns32knetbsd.c: Likewise.
1487 * bfd/pef.h: Likewise.
1488 * bfd/plugin.c: Likewise.
1489 * bfd/stab-syms.c: Likewise.
1490 * bfd/sunos.c: Likewise.
1491 * bfd/syms.c: Likewise.
1492 * bfd/xsym.h: Likewise.
1493
1494 2012-05-16 Alan Modra <amodra@gmail.com>
1495
1496 * elflink.c: Rename flaginfo to flinfo throughout, except..
1497 (bfd_elf_lookup_section_flags): ..here, rename finfo to flaginfo.
1498 Formatting, style. Simplify flag match.
1499
1500 2012-05-16 Alan Modra <amodra@gmail.com>
1501
1502 * dwarf2.c: Formatting.
1503 (arange_add): Pass in unit rather than bfd. Update callers.
1504 Ignore empty ranges. Don't ask for cleared memory.
1505 (parse_comp_unit): Only set unit->base_address if processing
1506 DW_TAG_compile_unit.
1507 (find_debug_info): Optimise section lookup.
1508 (place_sections): Use bfd_alloc for stash->adjusted_sections.
1509 (find_line): Match previously parsed comp unit addresses as we
1510 do for newly parsed comp units.
1511
1512 2012-05-16 Alan Modra <amodra@gmail.com>
1513
1514 * archive.c (_bfd_generic_read_ar_hdr_mag): Ensure sscanf
1515 stops at end of ar_size field.
1516
1517 2012-05-16 Alan Modra <amodra@gmail.com>
1518
1519 PR ld/13962
1520 PR ld/7023
1521 * elf.c (bfd_section_from_shdr): Fail when .dynsym sh_info is
1522 out of range. As a special case, fix sh_info for zero sh_size.
1523 Do the same for .symtab.
1524
1525 2012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
1526 Stephane Carrez <stcarrez@nerim.fr>
1527
1528 * archures.c: Add bfd_arch_m9s12x and bfd_arch_m9s12xg.
1529 * config.bfd: Likewise.
1530 * cpu-m9s12x.c: New.
1531 * cpu-m9s12xg.c: New.
1532 * elf32-m68hc12.c: Add S12X and XGATE co-processor support.
1533 Add option to offset S12 addresses into XGATE memory space.
1534 Fix carry bug in IMM16 (IMM8 low/high) relocate.
1535 * Makefile.am (ALL_MACHINES): Add cpu-m9s12x and cpu-m9s12xg.
1536 (ALL_MACHINES_CFILES): Likewise.
1537 * reloc.c: Add S12X relocs.
1538 * Makefile.in: Regenerate.
1539 * bfd-in2.h: Regenerate.
1540 * libbfd.h: Regenerate.
1541
1542 2012-05-14 James Lemke <jwlemke@codesourcery.com>
1543 Catherine Moore <clm@codesourcery.com>
1544
1545 * bfd.c (bfd_lookup_section_flags): Add section parm.
1546 * ecoff.c (bfd_debug_section): Remove flag_info initializer.
1547 * elf-bfd.h (bfd_elf_section_data): Move in section_flag_info.
1548 (bfd_elf_lookup_section_flags): Add section parm.
1549 * elf32-ppc.c (is_ppc_vle): New function.
1550 (ppc_elf_modify_segment_map): New function.
1551 (elf_backend_modify_segment_map): Define.
1552 (has_vle_insns): New define.
1553 * elf32-ppc.h (ppc_elf_modify_segment_map): Declare.
1554 * elflink.c (bfd_elf_lookup_section_flags): Add return value & parm.
1555 Move in logic to omit / include a section.
1556 * libbfd-in.h (bfd_link_info): Add section parm.
1557 (bfd_generic_lookup_section_flags): Likewise.
1558 * reloc.c (bfd_generic_lookup_section_flags): Likewise.
1559 * section.c (bfd_section): Move out section_flag_info.
1560 (BFD_FAKE_SECTION): Remove flag_info initializer.
1561 * targets.c (_bfd_lookup_section_flags): Add section parm.
1562
1563 2012-05-14 Catherine Moore <clm@codesourcery.com>
1564
1565 * archures.c (bfd_mach_ppc_vle): New.
1566 * bfd-in2.h: Regenerated.
1567 * cpu-powerpc.c (bfd_powerpc_archs): New entry for vle.
1568 * elf32-ppc.c (split16_format_type): New enumeration.
1569 (ppc_elf_vle_split16): New function.
1570 (HOWTO): Add entries for R_PPC_VLE relocations.
1571 (ppc_elf_reloc_type_lookup): Handle PPC_VLE relocations.
1572 (ppc_elf_section_flags): New function.
1573 (ppc_elf_lookup_section_flags): New function.
1574 (ppc_elf_section_processing): New function.
1575 (ppc_elf_check_relocs): Handle PPC_VLE relocations.
1576 (ppc_elf_relocation_section): Likewise.
1577 (elf_backend_lookup_section_flags_hook): Define.
1578 (elf_backend_section_flags): Define.
1579 (elf_backend_section_processing): Define.
1580 * elf32-ppc.h (ppc_elf_section_processing): Declare.
1581 * libbfd.h: Regenerated.
1582 * reloc.c (BFD_RELOC_PPC_VLE_REL8, BFD_RELOC_PPC_VLE_REL15,
1583 BFD_RELOC_PPC_VLE_REL24, BFD_RELOC_PPC_VLE_LO16A,
1584 BFD_RELOC_PPC_VLE_LO16D, BFD_RELOC_PPC_VLE_HI16A,
1585 BFD_RELOC_PPC_VLE_HI16D, BFD_RELOC_PPC_VLE_HA16A,
1586 BFD_RELOC_PPC_VLE_HA16D, BFD_RELOC_PPC_VLE_SDA21,
1587 BFD_RELOC_PPC_VLE_SDA21_LO, BFD_RELOC_PPC_VLE_SDAREL_LO16A,
1588 BFD_RELOC_PPC_VLE_SDAREL_LO16D, BFD_RELOC_PPC_VLE_SDAREL_HI16A,
1589 BFD_RELOC_PPC_VLE_SDAREL_HI16D, BFD_RELOC_PPC_VLE_SDAREL_HA16A,
1590 BFD_RELOC_PPC_VLE_SDAREL_HA16D): New bfd relocations.
1591
1592 2012-05-11 Georg-Johann Lay <avr@gjlay.de>
1593
1594 PR target/13503
1595 * reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
1596 BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
1597 * bfd-in2.h: Regenerate.
1598 * libbfd.h: Regenerate.
1599 * elf32-avr.c (elf_avr_howto_table): Add entries for
1600 R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
1601 (avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
1602 R_AVR_8_HHI8.
1603
1604 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1605
1606 * elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32
1607 addend overflow check.
1608
1609 2012-05-10 DJ Delorie <dj@redhat.com>
1610
1611 * elf32-rx.c (rx_elf_object_p): Ignore empty segments.
1612
1613 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1614
1615 * elf64-x86-64.c (elf_x86_64_relocate_section): Display signed
1616 hex number in x32 addend overflow check.
1617
1618 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1619
1620 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
1621 R_X86_64_RELATIVE64.
1622
1623 2012-05-09 H.J. Lu <hongjiu.lu@intel.com>
1624
1625 * elf64-x86-64.c (elf_x86_64_relocate_section): Check addend
1626 overflow for R_X86_64_RELATIVE64.
1627
1628 2012-05-08 Ben Cheng <bccheng@google.com>
1629
1630 * elf.c: Preserve the original p_align and p_flags if they are
1631 valid.
1632
1633 2012-05-07 Alan Modra <amodra@gmail.com>
1634
1635 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
1636 RELOC_AGAINST_DISCARDED_SECTION invocation.
1637
1638 2012-05-07 Hans-Peter Nilsson <hp@axis.com>
1639
1640 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
1641 local variable i_ instead of assuming and using a variable i.
1642
1643 2012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
1644
1645 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
1646 relocations.
1647 * elfxx-mips.c (mips_reloc_against_discarded_section): New
1648 function.
1649 (_bfd_mips_elf_relocate_section): Call it, in place of
1650 RELOC_AGAINST_DISCARDED_SECTION.
1651 * elf-m10200.c (mn10200_elf_relocate_section): Update arguments
1652 to RELOC_AGAINST_DISCARDED_SECTION.
1653 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1654 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1655 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1656 * elf32-bfin.c (bfin_relocate_section): Likewise.
1657 (bfinfdpic_relocate_section): Likewise.
1658 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
1659 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
1660 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1661 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1662 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1663 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
1664 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1665 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1666 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1667 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1668 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1669 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1670 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1671 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1672 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1673 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1674 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1675 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1676 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1677 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1678 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1679 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1680 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1681 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1682 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1683 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1684 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1685 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1686 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1687 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1688 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1689 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1690 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1691 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1692 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1693 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1694 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1695 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1696 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1697 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1698 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1699 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1700 (elf64_alpha_relocate_section): Likewise.
1701 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1702 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1703 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1704 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1705 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1706 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1707 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1708 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1709 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1710
1711 2012-05-05 Alan Modra <amodra@gmail.com>
1712
1713 PR ld/14052
1714 PR ld/13621
1715 * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
1716
1717 2012-05-05 Alan Modra <amodra@gmail.com>
1718
1719 * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
1720 bfd_und_section and bfd_ind_section with their _ptr variants, or
1721 use corresponding bfd_is_* macros.
1722 * aout-ns32k.c: Likewise.
1723 * aout-tic30.c: Likewise.
1724 * coff-arm.c: Likewise.
1725 * coff-tic54x.c: Likewise.
1726 * cpu-ns32k.c: Likewise.
1727 * elf-attrs.c: Likewise.
1728 * elfcode.h: Likewise.
1729 * peicode.h: Likewise.
1730 * reloc.c: Likewise.
1731 * riscix.c: Likewise.
1732 * versados.c: Likewise.
1733 * section.c: Likewise.
1734 (bfd_abs_section, bfd_ind_section, bfd_com_section,
1735 bfd_ind_section): Delete.
1736 (std_section): New array replacing above.
1737 (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr,
1738 bfd_ind_section_ptr, STD_SECTION): Update.
1739 (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts.
1740 * bfd-in2.h: Regenerate.
1741
1742 2012-05-03 Sean Keys <skeys@ipdatasys.com>
1743
1744 * cpu-xgate.c: New file. Added XGATE support.
1745 * archures.c (bfd_architecture): Add XGATE architecture.
1746 (bfd_archures_list): Add reference to XGATE architecture info.
1747 * elf-bfd.h (prep_headers): Handle bfd_arch_xgate.
1748 * reloc.c: Add various XGATE relocation enums.
1749 * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector
1750 list.
1751 * Makefile.am: Add support for XGATE elf.
1752 * configure.in: Ditto.
1753 * config.bfd: Ditto.
1754 * Makefile.in: Regenerate.
1755 * configure: Ditto.
1756 * bfd-in2.h: Ditto.
1757 * libbfd.h: Ditto.
1758 Added files for XGATE relocations.
1759 * elf32-xgate.c: Created minimal relocation file.
1760 * elf32-xgate.h: Created minimal header file for elf32-xgate.
1761
1762 2012-05-03 Tristan Gingold <gingold@adacore.com>
1763
1764 * dwarf2.c (decode_line_info): Ignore
1765 DW_LNE_HP_source_file_correlation.
1766
1767 2012-05-01 Nick Clifton <nickc@redhat.com>
1768
1769 PR binutils/13121
1770 * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with
1771 AIX system headers.
1772 * coff-ppc.c: Likewise.
1773 * cofflink.c: Likewise.
1774 * elf32-arm.c: Likewise.
1775 * elf64-sparc.c: Likewise.
1776 * elflink.c: Likewise.
1777 * pdp11.c: Likewise.
1778 * rescoff.c: Likewise.
1779
1780 2012-04-26 Mark Wielaard <mjw@redhat.com>
1781
1782 * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc
1783 possibly being relative to DW_AT_low_pc.
1784 (parse_comp_unit): Likewise.
1785
1786 2012-04-26 Andreas Schwab <schwab@linux-m68k.org>
1787
1788 * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references
1789 also when generating PIE.
1790 (elf_m68k_discard_copies): Mark undefined weak symbols referenced
1791 by relocations as dynamic.
1792
1793 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
1794
1795 Provide a way for programs to recognize BFD_ASSERT calls.
1796 * bfd.c (bfd_assert_handler_type): New API type.
1797 (bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
1798 (_bfd_assert_handler): New variable.
1799 (_bfd_default_assert_handler): New function.
1800 (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
1801 * libbfd-in.h (_bfd_assert_handler): Declare.
1802 * libbfd.h, bfd-in2.h: Regenerate.
1803
1804 2012-04-24 Hans-Peter Nilsson <hp@axis.com>
1805
1806 PR ld/13990
1807 * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local
1808 symbol, where PLT refcount is set to -1.
1809
1810 2012-04-24 Alan Modra <amodra@gmail.com>
1811
1812 PR ld/13991
1813 * elf-bfd.h (_bfd_elf_link_just_syms): Define as
1814 _bfd_generic_link_just_syms.
1815 * elflink.c (_bfd_elf_link_just_syms): Delete.
1816 * linker.c (_bfd_generic_link_just_syms): Set sec_info_type.
1817
1818 * bfd-in.h (discarded_section): Renamed from elf_discarded_section.
1819 * section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS,
1820 SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME,
1821 SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE.
1822 * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c,
1823 * elf.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c,
1824 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
1825 * elf32-crx.c, * elf32-d10v.c, * elf32-epiphany.c,
1826 * elf32-fr30.c, * elf32-frv.c, * elf32-h8300.c,
1827 * elf32-hppa.c, * elf32-i370.c, * elf32-i386.c,
1828 * elf32-i860.c, * elf32-ip2k.c, * elf32-iq2000.c,
1829 * elf32-lm32.c, * elf32-m32c.c, * elf32-m32r.c,
1830 * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
1831 * elf32-mep.c, * elf32-moxie.c, * elf32-msp430.c,
1832 * elf32-mt.c, * elf32-openrisc.c, * elf32-ppc.c,
1833 * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c,
1834 * elf32-score.c, * elf32-score7.c, * elf32-sh.c,
1835 * elf32-spu.c, * elf32-tic6x.c, * elf32-tilepro.c,
1836 * elf32-v850.c, * elf32-vax.c, * elf32-xc16x.c,
1837 * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
1838 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1839 * elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c,
1840 * elf64-x86-64.c, * elflink.c, * elfnn-ia64.c,
1841 * elfxx-mips.c, * elfxx-sparc.c, * elfxx-tilegx.c,
1842 * reloc.c: Update all references.
1843 * bfd-in2.h: Regenerate.
1844
1845 2012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1846
1847 * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
1848 * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
1849
1850 2012-04-19 Thomas Schwinge <thomas@codesourcery.com>
1851
1852 * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
1853 got_type.
1854 (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
1855 it.
1856
1857 2012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1858
1859 * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
1860 relocations when LE conversion happens on the IE tls symbol.
1861
1862 2012-04-17 Roland McGrath <mcgrathr@google.com>
1863
1864 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
1865 so that 32-byte boundary is a proper instruction boundary.
1866
1867 2012-04-17 Tristan Gingold <gingold@adacore.com>
1868
1869 * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
1870 member of an object archive.<
1871
1872 2012-04-17 Tristan Gingold <gingold@adacore.com>
1873
1874 * vms-lib.c (MAX_EKEYLEN): Define.
1875 (MAX_KEYLEN): Fix value.
1876 (vms_write_index): Add comments and fix indentation.
1877 Adjust comparaison. Add assertions. Free kbn_blk.
1878 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
1879 Compense MAX_KEYLEN adjustment.
1880
1881 2012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
1882
1883 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
1884 (_bfd_mips_elf_check_relocs): Update accordingly.
1885
1886 2012-04-13 Alan Modra <amodra@gmail.com>
1887
1888 PR ld/13947
1889 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
1890 reloc sections.
1891
1892 2012-04-12 David S. Miller <davem@davemloft.net>
1893
1894 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
1895 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
1896 * libbfd.h: Regenerate.
1897 * bfd-in2.h: Likewise.
1898 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
1899 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
1900 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
1901 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
1902 (_bfd_sparc_elf_check_relocs): Likewise.
1903 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1904 (_bfd_sparc_elf_relocate_section): Likewise.
1905
1906 2012-04-12 Roland McGrath <mcgrathr@google.com>
1907
1908 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
1909 New variables.
1910 (struct elf32_arm_link_hash_table): New member `nacl_p'.
1911 (elf32_arm_link_hash_table_create): Initialize it.
1912 (elf32_arm_nacl_link_hash_table_create): New function.
1913 (arm_movw_immediate, arm_movt_immediate): New functions.
1914 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
1915 (elf32_arm_finish_dynamic_sections): Likewise.
1916 (elf32_arm_output_plt_map_1): Likewise.
1917 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
1918 New backend vector stanza.
1919 (elf32_arm_nacl_modify_segment_map): New function.
1920 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
1921 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
1922 * configure.in: Likewise.
1923 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
1924 (bfd_elf32_littlearm_nacl_vec): Likewise.
1925 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
1926 (bfd_elf32_bigarm_symbian_vec): Likewise.
1927 (bfd_elf32_littlearm_symbian_vec): Likewise.
1928 (bfd_elf32_bigarm_vxworks_vec): Likewise.
1929 (bfd_elf32_littlearm_vxworks_vec): Likewise.
1930 * configure: Regenerated.
1931
1932 2012-04-12 Tristan Gingold <gingold@adacore.com>
1933
1934 * elflink.c (elf_link_output_extsym): Add a guard.
1935 (bfd_elf_final_link): Remove assertion.
1936 (bfd_elf_final_link): Add a guard.
1937 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
1938 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
1939 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
1940 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
1941 Remove.
1942 (elfNN-ia64-vms target): Move to ...
1943 * elf64-ia64-vms.c: New file.
1944 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
1945 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
1946 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
1947 * configure: Regenerate.
1948 * Makefile.in: Regenerate.
1949
1950 2012-04-11 Nick Clifton <nickc@redhat.com>
1951
1952 PR binutils/13897
1953 * elf64-ppc.c (opd_entry_value): When dealing with sections
1954 without relocs, keep the last section loaded in order to avoid
1955 unnecessary reloads.
1956
1957 2012-04-09 Roland McGrath <mcgrathr@google.com>
1958
1959 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
1960 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
1961 (nacl_modify_program_headers): Likewise.
1962
1963 2012-04-03 Roland McGrath <mcgrathr@google.com>
1964
1965 * elf-nacl.c: New file.
1966 * elf-nacl.h: New file.
1967 * elf32-i386.c (elf_backend_modify_segment_map): Define for
1968 bfd_elf32_i386_nacl_vec.
1969 (elf_backend_modify_program_headers): Likewise.
1970 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
1971 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
1972 (elf_backend_modify_program_headers): Likewise.
1973 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
1974 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
1975 * Makefile.in: Regenerated.
1976 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
1977 (bfd_elf32_x86_64_nacl_vec): Likewise.
1978 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
1979 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
1980 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
1981 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
1982 (bfd_elf32_i386_nacl_vec): Likewise.
1983 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
1984 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
1985 * configure: Regenerated.
1986
1987 2012-03-31 Andreas Schwab <schwab@linux-m68k.org>
1988
1989 * elf32-m68k.c (elf_m68k_relocate_section): Allow
1990 R_68K_TLS_LE{8,16,32} for PIE.
1991
1992 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1993
1994 * elf64-s390.c: Fix several comments regarding PLT entry
1995 description.
1996 * elf32-s390.c: Likewise.
1997
1998 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1999
2000 * elf64-s390.c: Use the section pointer shortcuts in
2001 elf_link_hash_table and remove them from the target specific
2002 variant.
2003 * elf32-s390.c: Likewise.
2004
2005 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2006
2007 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
2008 New definitions.
2009 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
2010 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
2011 (elf_s390_finish_dynamic_sections): Likewise.
2012 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
2013 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
2014 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
2015 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
2016 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
2017
2018 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2019
2020 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
2021 Rename all occurrences in the file to elf_dyn_relocs.
2022 * elf64-s390.c: Likewise.
2023
2024 2012-03-30 Alan Modra <amodra@gmail.com>
2025
2026 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
2027 libraries.
2028
2029 2012-03-29 Alan Modra <amodra@gmail.com>
2030
2031 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
2032 * bfd-in2.h: Regenerate.
2033
2034 2012-03-23 Alan Modra <amodra@gmail.com>
2035
2036 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
2037 on empty alloc sections.
2038
2039 2012-03-23 Alan Modra <amodra@gmail.com>
2040
2041 * linker.c (_bfd_nearby_section): New function, split out from..
2042 (fix_syms): ..here.
2043 * bfd-in.h (_bfd_nearby_section): Declare.
2044 * bfd-in2.h: Regenerate.
2045 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
2046 data_index_section with ld -q or ld -r output relocs against
2047 stripped output sections. Instead use _bfd_nearby_section.
2048
2049 2012-03-23 Alan Modra <amodra@gmail.com>
2050
2051 PR binutils/13894
2052 * elf64-ppc.c (opd_entry_value): Read full symbol table when
2053 sym hashes unavailable.
2054
2055 2012-03-21 Eliot Dresselhaus <eliot@sonic.net>
2056
2057 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
2058 for non-C6X objects.
2059
2060 2012-03-20 Kai Tietz <ktietz@redhat.com>
2061
2062 PR ld/12742
2063 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
2064 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
2065 Add windows.h header include if HAVE_WINDOWS_H is defined.
2066 (dlerror): New static function if windows variant is used instead
2067 of dlfcn.h.
2068 (dlclose): Likewise.
2069 (dlopen): Likewise.
2070 (dlsym): Likewise.
2071 * configure: Regenerated.
2072 * config.in: Regenerated.
2073
2074 2012-03-20 H.J. Lu <hongjiu.lu@intel.com>
2075
2076 PR ld/13880
2077 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
2078 for R_386_GOTOFF relocation against protected function if
2079 SYMBOLIC_BIND is true.
2080
2081 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
2082 error for R_X86_64_GOTOFF64 relocation against protected function
2083 when building executable or SYMBOLIC_BIND is true.
2084
2085 2012-03-16 Roland McGrath <mcgrathr@google.com>
2086
2087 * config.bfd: Handle x86_64-*-nacl*.
2088 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
2089 (bfd_elf32_x86_64_nacl_vec): Likewise.
2090 * targets.c: Support them.
2091 * configure.in: Likewise.
2092 * configure: Regenerated.
2093
2094 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2095
2096 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
2097 (elf32_arm_attributes_forbid_div): Likewise.
2098 (elf32_arm_merge_eabi_attributes): Correct handling of
2099 Tag_DIV_use.
2100
2101 2012-03-15 Roland McGrath <mcgrathr@google.com>
2102
2103 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
2104 elf_x86_64_backend_data parameters for plt_eh_frame.
2105
2106 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
2107 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
2108 (elf_x86_64_arch_bed): New variable.
2109 (elf_backend_arch_data): New macro.
2110 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
2111 (elf_x86_64_allocate_dynrelocs): Likewise.
2112 (elf_x86_64_relocate_section): Likewise.
2113 (elf_x86_64_plt_sym_val): Likewise.
2114 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
2115 parameters for PLT details.
2116 (elf_x86_64_finish_dynamic_sections): Likewise.
2117
2118 2012-03-14 Roland McGrath <mcgrathr@google.com>
2119
2120 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
2121 to the full size, padding out with nop instructions.
2122
2123 2012-03-12 Alan Modra <amodra@gmail.com>
2124
2125 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
2126 on zero size dynbss symbol.
2127 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
2128 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
2129 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
2130 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
2131 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
2132 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
2133 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
2134 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
2135 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
2136 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
2137 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
2138 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
2139 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
2140 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
2141 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
2142 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
2143 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
2144 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
2145 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
2146 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
2147 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
2148
2149 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
2150
2151 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
2152 * bfd-in2.h: Regenerate.
2153 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
2154 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
2155
2156 2012-03-09 H.J. Lu <hongjiu.lu@intel.com>
2157
2158 PR ld/13817
2159 * elf32-i386.c (elf_i386_relocate_section): Restore
2160 R_386_IRELATIVE.
2161
2162 * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
2163 R_X86_64_IRELATIVE.
2164
2165 2012-03-08 Tristan Gingold <gingold@adacore.com>
2166
2167 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
2168 keylen according to archive kind. Set nextvbn and nextrfa lhd
2169 fields. Add comments.
2170
2171 2012-03-07 Nick Clifton <nickc@redhat.com>
2172
2173 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
2174 field.
2175 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
2176 (elf_mn10300_tdata): Define.
2177 (elf_mn10300_local_got_tls_type): Define.
2178 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
2179 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
2180 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
2181 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
2182 (mn10300_reloc_map): Likewise.
2183 (elf_mn10300_tls_transition): New function.
2184 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
2185 (mn10300_elf_check_relocs): Add TLS support.
2186 (mn10300_elf_final_link_relocate): Likewise.
2187 (mn10300_elf_relocate_section): Likewise.
2188 (mn10300_elf_relax_section): Likewise.
2189 (elf32_mn10300_link_hash_newfunc): Initialise new field.
2190 (_bfd_mn10300_copy_indirect_symbol): New function.
2191 (elf32_mn10300_link_hash_table_create): Initialise new fields.
2192 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
2193 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
2194 (_bfd_mn10300_elf_reloc_type_class): Allocate an
2195 elf_mn10300_obj_tdata structure.
2196 (elf_backend_copy_indirect_symbol): Define.
2197 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
2198 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
2199 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
2200 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
2201 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
2202 alongside other MN10300 relocations.
2203 * bfd-in2.h: Regenerate.
2204 * libbfd.h: Regenerate.
2205
2206 2012-03-06 Jakub Jelinek <jakub@redhat.com>
2207
2208 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
2209 set relocate to TRUE.
2210
2211 2012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2212
2213 PR ld/12152
2214 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
2215 overflows for R_SPARC_UA32 in .stab sections.
2216
2217 2012-03-01 Alan Modra <amodra@gmail.com>
2218
2219 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
2220
2221 2012-02-27 Alan Modra <amodra@gmail.com>
2222
2223 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
2224 before calling elf specific function.
2225 (sh_elf_osec_readonly_p): Test for error return from above.
2226
2227 2012-02-27 Alan Modra <amodra@gmail.com>
2228
2229 * elf32-spu.c (build_stub): Fix malloc under-allocation.
2230
2231 2012-02-25 Walter Lee <walt@tilera.com>
2232 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
2233 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
2234 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
2235 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
2236 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
2237 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
2238 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
2239 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
2240 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
2241 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
2242 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
2243 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
2244 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
2245 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
2246 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
2247 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
2248 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
2249 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
2250 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
2251 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
2252 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
2253 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
2254 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
2255 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
2256 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
2257 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
2258 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
2259 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
2260 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
2261 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
2262 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
2263 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
2264 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
2265 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
2266 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
2267 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
2268 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
2269 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
2270 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
2271 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
2272 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
2273 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
2274 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
2275 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
2276 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
2277 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
2278 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
2279 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
2280 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
2281 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
2282 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
2283 relocations.
2284 (tilepro_reloc_map): Ditto.
2285 (tilepro_info_to_howto_rela): Ditto.
2286 (reloc_to_create_func): Ditto.
2287 (tilepro_tls_translate_to_le): New.
2288 (tilepro_tls_translate_to_ie): New.
2289 (tilepro_elf_tls_transition): New.
2290 (tilepro_elf_check_relocs): Handle new tls relocations.
2291 (tilepro_elf_gc_sweep_hook): Ditto.
2292 (allocate_dynrelocs): Ditto.
2293 (tilepro_elf_relocate_section): Ditto.
2294 (tilepro_replace_insn): New.
2295 (insn_mask_X1): New.
2296 (insn_mask_X0_no_dest_no_srca): New
2297 (insn_mask_X1_no_dest_no_srca): New
2298 (insn_mask_Y0_no_dest_no_srca): New
2299 (insn_mask_Y1_no_dest_no_srca): New
2300 (srca_mask_X0): New
2301 (srca_mask_X1): New
2302 (insn_tls_le_move_X1): New
2303 (insn_tls_le_move_zero_X0X1): New
2304 (insn_tls_ie_lw_X1): New
2305 (insn_tls_ie_add_X0X1): New
2306 (insn_tls_ie_add_Y0Y1): New
2307 (insn_tls_gd_add_X0X1): New
2308 (insn_tls_gd_add_Y0Y1): New
2309 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
2310 relocations.
2311 (tilegx_reloc_map): Ditto.
2312 (tilegx_info_to_howto_rela): Ditto.
2313 (reloc_to_create_func): Ditto.
2314 (tilegx_elf_link_hash_table): New field disable_le_transition.
2315 (tilegx_tls_translate_to_le): New.
2316 (tilegx_tls_translate_to_ie): New.
2317 (tilegx_elf_tls_transition): New.
2318 (tilegx_elf_check_relocs): Handle new tls relocations.
2319 (tilegx_elf_gc_sweep_hook): Ditto.
2320 (allocate_dynrelocs): Ditto.
2321 (tilegx_elf_relocate_section): Ditto.
2322 (tilegx_copy_bits): New.
2323 (tilegx_replace_insn): New.
2324 (insn_mask_X1): New.
2325 (insn_mask_X0_no_dest_no_srca): New.
2326 (insn_mask_X1_no_dest_no_srca): New.
2327 (insn_mask_Y0_no_dest_no_srca): New.
2328 (insn_mask_Y1_no_dest_no_srca): New.
2329 (insn_mask_X0_no_operand): New.
2330 (insn_mask_X1_no_operand): New.
2331 (insn_mask_Y0_no_operand): New.
2332 (insn_mask_Y1_no_operand): New.
2333 (insn_tls_ie_ld_X1): New.
2334 (insn_tls_ie_ld4s_X1): New.
2335 (insn_tls_ie_add_X0X1): New.
2336 (insn_tls_ie_add_Y0Y1): New.
2337 (insn_tls_ie_addx_X0X1): New.
2338 (insn_tls_ie_addx_Y0Y1): New.
2339 (insn_tls_gd_add_X0X1): New.
2340 (insn_tls_gd_add_Y0Y1): New.
2341 (insn_move_X0X1): New.
2342 (insn_move_Y0Y1): New.
2343 (insn_add_X0X1): New.
2344 (insn_add_Y0Y1): New.
2345 (insn_addx_X0X1): New.
2346 (insn_addx_Y0Y1): New.
2347 * libbfd.h: Regenerate.
2348 * bfd-in2.h: Regenerate.
2349
2350 2012-02-25 Walter Lee <walt@tilera.com>
2351
2352 * config.bfd (tilegx-*-*): rename little endian vector; add big
2353 endian vector.
2354 (tilegxbe-*-*): New case.
2355 * configure.in (bfd_elf32_tilegx_vec): Rename...
2356 (bfd_elf32_tilegx_le_vec): ... to this.
2357 (bfd_elf32_tilegx_be_vec): New vector.
2358 (bfd_elf64_tilegx_vec): Rename...
2359 (bfd_elf64_tilegx_le_vec): ... to this.
2360 (bfd_elf64_tilegx_be_vec): New vector.
2361 * configure: Regenerate.
2362 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
2363 (TARGET_LITTLE_NAME): Ditto.
2364 (TARGET_BIG_SYM): Define.
2365 (TARGET_BIG_NAME): Define.
2366 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
2367 (TARGET_LITTLE_NAME): Ditto.
2368 (TARGET_BIG_SYM): Define.
2369 (TARGET_BIG_NAME): Define.
2370 * targets.c (bfd_elf32_tilegx_vec): Rename...
2371 (bfd_elf32_tilegx_le_vec): ... to this.
2372 (bfd_elf32_tilegx_be_vec): Declare.
2373 (bfd_elf64_tilegx_vec): Rename...
2374 (bfd_elf64_tilegx_le_vec): ... to this.
2375 (bfd_elf64_tilegx_be_vec): Declare.
2376 (_bfd_target_vector): Add / rename above vectors.
2377 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
2378 * bfd-in2.h: Regenerate.
2379 * cpu-tilegx.c (bfd_tilegx32_arch): define.
2380 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
2381
2382 2012-02-24 Nick Clifton <nickc@redhat.com>
2383
2384 PR ld/13730
2385 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
2386 error message instead of aborting, when an outofrange reloc is
2387 encountered.
2388
2389 2012-02-23 Iain Sandoe <idsandoe@googlemail.com>
2390
2391 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
2392 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
2393 bit-fields when target and host differ in endian-ness. When
2394 PAIRs are non-scattered find the 'symbol' from the preceding
2395 reloc. Add FIXME re. reloc symbols on section boundaries.
2396 (bfd_mach_o_swap_out_non_scattered_reloc): New.
2397 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
2398
2399 2012-02-17 Iain Sandoe <idsandoe@googlemail.com>
2400
2401 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
2402 sect-diffs.
2403 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
2404 (bfd_mach_o_i386_swap_reloc_out): Likewise.
2405
2406 2012-02-17 Tristan Gingold <gingold@adacore.com>
2407
2408 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
2409 * libbfd.h: Regenerated.
2410 * bfd-in2.h: Likewise.
2411 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
2412 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
2413 (bfd_mach_o_i386_swap_reloc_out): Likewise.
2414
2415 2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2416
2417 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
2418 GD->LE and LD->LE optimizations.
2419
2420 2012-02-16 Alan Modra <amodra@gmail.com>
2421
2422 PR binutils/13355
2423 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
2424
2425 2012-02-13 Richard Henderson <rth@redhat.com>
2426
2427 PR ld/13621
2428 * linker.c (fix_syms): Force symbols outside any section into
2429 bfd_abs_section_ptr.
2430
2431 2012-02-13 Alan Modra <amodra@gmail.com>
2432
2433 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
2434 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
2435 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
2436 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
2437
2438 2012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2439 Nick Clifton <nickc@redhat.com>
2440
2441 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
2442 memset.
2443
2444 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
2445
2446 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
2447 vma additions in their logical, rather than physical order.
2448
2449 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
2450
2451 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
2452 parameters.
2453 * mach-o-x86-64.c (text_section_names_xlat): New.
2454 (mach_o_x86_64_segsec_names_xlat): New.
2455 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
2456 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
2457
2458 2012-02-10 Tristan Gingold <gingold@adacore.com>
2459
2460 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
2461 to avoid infinite loop. Add comments.
2462
2463 2012-02-09 H.J. Lu <hongjiu.lu@intel.com>
2464
2465 PR ld/13675
2466 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
2467 nop instructions.
2468 (bfd_arch_i386_short_nop_fill): New.
2469 (bfd_arch_i386_long_nop_fill): Likewise.
2470 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
2471 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
2472 bfd_arch_info initializers.
2473
2474 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
2475 (bfd_arch_i386_short_nop_fill): This.
2476 Update bfd_arch_info initializers.
2477 * cpu-l1om.c: Likewise.
2478
2479 2012-02-08 Alan Modra <amodra@gmail.com>
2480
2481 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
2482 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
2483 the correct h->u.weakdef.
2484
2485 2012-02-07 Alan Modra <amodra@gmail.com>
2486
2487 * elf.c (elf_find_function): Don't use internal_elf_sym.
2488 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
2489 parameter with asymbol.
2490 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
2491 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
2492 (struct elf_backend_data <maybe_function_sym>): Likewise.
2493
2494 2012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
2495
2496 PR bfd/13410
2497 * elf32-avr.c (elf32_avr_relax_section): Correct the
2498 condition that qualifies the candidates for relaxation.
2499
2500 2012-02-02 Tristan Gingold <gingold@adacore.com>
2501
2502 * bfdio.c (real_fopen): Remove unused vms_modes variable.
2503
2504 2012-02-02 Tristan Gingold <gingold@adacore.com>
2505
2506 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
2507 variable warning.
2508
2509 2012-02-02 Tristan Gingold <gingold@adacore.com>
2510
2511 * archive.c (bfd_slurp_armap): Fix thinko in cast.
2512
2513 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
2514
2515 PR ld/13616
2516 * archures.c (bfd_arch_info): Add fill.
2517 (bfd_default_arch_struct): Add bfd_arch_default_fill.
2518 (bfd_arch_default_fill): New.
2519
2520 * configure.in: Set bfd version to 2.22.52.
2521 * configure: Regenerated.
2522
2523 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
2524 initializer.
2525 * cpu-arc.c: Likewise.
2526 * cpu-arm.c: Likewise.
2527 * cpu-avr.c: Likewise.
2528 * cpu-bfin.c: Likewise.
2529 * cpu-cr16.c: Likewise.
2530 * cpu-cr16c.c: Likewise.
2531 * cpu-cris.c: Likewise.
2532 * cpu-crx.c: Likewise.
2533 * cpu-d10v.c: Likewise.
2534 * cpu-d30v.c: Likewise.
2535 * cpu-dlx.c: Likewise.
2536 * cpu-epiphany.c: Likewise.
2537 * cpu-fr30.c: Likewise.
2538 * cpu-frv.c: Likewise.
2539 * cpu-h8300.c: Likewise.
2540 * cpu-h8500.c: Likewise.
2541 * cpu-hppa.c: Likewise.
2542 * cpu-i370.c: Likewise.
2543 * cpu-i860.c: Likewise.
2544 * cpu-i960.c: Likewise.
2545 * cpu-ia64.c: Likewise.
2546 * cpu-ip2k.c: Likewise.
2547 * cpu-iq2000.c: Likewise.
2548 * cpu-lm32.c: Likewise.
2549 * cpu-m10200.c: Likewise.
2550 * cpu-m10300.c: Likewise.
2551 * cpu-m32c.c: Likewise.
2552 * cpu-m32r.c: Likewise.
2553 * cpu-m68hc11.c: Likewise.
2554 * cpu-m68hc12.c: Likewise.
2555 * cpu-m68k.c: Likewise.
2556 * cpu-m88k.c: Likewise.
2557 * cpu-mcore.c: Likewise.
2558 * cpu-mep.c: Likewise.
2559 * cpu-microblaze.c: Likewise.
2560 * cpu-mips.c: Likewise.
2561 * cpu-mmix.c: Likewise.
2562 * cpu-moxie.c: Likewise.
2563 * cpu-msp430.c: Likewise.
2564 * cpu-mt.c: Likewise.
2565 * cpu-ns32k.c: Likewise.
2566 * cpu-openrisc.c: Likewise.
2567 * cpu-or32.c: Likewise.
2568 * cpu-pdp11.c: Likewise.
2569 * cpu-pj.c: Likewise.
2570 * cpu-plugin.c: Likewise.
2571 * cpu-powerpc.c: Likewise.
2572 * cpu-rl78.c: Likewise.
2573 * cpu-rs6000.c: Likewise.
2574 * cpu-rx.c: Likewise.
2575 * cpu-s390.c: Likewise.
2576 * cpu-score.c: Likewise.
2577 * cpu-sh.c: Likewise.
2578 * cpu-sparc.c: Likewise.
2579 * cpu-spu.c: Likewise.
2580 * cpu-tic30.c: Likewise.
2581 * cpu-tic4x.c: Likewise.
2582 * cpu-tic54x.c: Likewise.
2583 * cpu-tic6x.c: Likewise.
2584 * cpu-tic80.c: Likewise.
2585 * cpu-tilegx.c: Likewise.
2586 * cpu-tilepro.c: Likewise.
2587 * cpu-v850.c: Likewise.
2588 * cpu-vax.c: Likewise.
2589 * cpu-w65.c: Likewise.
2590 * cpu-we32k.c: Likewise.
2591 * cpu-xc16x.c: Likewise.
2592 * cpu-xstormy16.c: Likewise.
2593 * cpu-xtensa.c: Likewise.
2594 * cpu-z80.c: Likewise.
2595 * cpu-z8k.c: Likewise.
2596
2597 * cpu-i386.c: Include "libiberty.h".
2598 (bfd_arch_i386_fill): New.
2599 Add bfd_arch_i386_fill to bfd_arch_info initializer.
2600
2601 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
2602 * cpu-l1om.c: Likewise.
2603
2604 * linker.c (default_data_link_order): Call abfd->arch_info->fill
2605 if fill size is 0.
2606
2607 * bfd-in2.h: Regenerated.
2608
2609 2012-01-27 Michael Eager <eager@eagercon.com>
2610
2611 * elf32-microblaze.c (create_got_section):
2612 Reuse existing .rela.got section.
2613
2614 2012-01-23 Alan Modra <amodra@gmail.com>
2615
2616 * elf-bfd.h: Formatting.
2617 (struct elf_backend_data): Add "maybe_function_sym".
2618 (_bfd_elf_maybe_function_sym): Declare.
2619 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
2620 (elfNN_bed): Init new field.
2621 * elf.c (elf_find_function): Use maybe_function_sym.
2622 (_bfd_elf_maybe_function_sym): New function.
2623 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
2624 (ppc64_elf_maybe_function_sym): New function.
2625
2626 2012-01-20 Francois Gouget <fgouget@codeweavers.com>
2627
2628 PR binutils/13534
2629 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
2630 pad the size field in an archive header.
2631 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
2632 function for the archive size field.
2633 (bfd_generic_openr_next_archived_file): Likewise.
2634 (do_slurp_coff_armap): Likewise.
2635 (_bfd_write_archive_contents): Likewise.
2636 (_bfd_bsd44_write_ar_hdr): Use the new function.
2637 (bfd_ar_hdr_from_filesystem): Likewise.
2638 (_bfd_write_archive_contents): Likewise.
2639 (bsd_write_armap): Likewise.
2640 (coff_write_armap): Likewise.
2641 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
2642 * bfdio.c (bfd_bread): Use correct type for archive element
2643 sizes.
2644 * ar.c (open_inarch): Likewise.
2645 (extract_file): Likewise.
2646 * libbfd-in.h (struct areltdata): Use correct types for
2647 parsed_size and extra_size fields.
2648 Prototype _bfd_ar_sizepad function.
2649 * libbfd.h: Regenerate.
2650
2651 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2652
2653 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
2654 Return NULL if core file generation is unsupported.
2655 (elfcore_write_prstatus): Likewise.
2656 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
2657 (elf_backend_write_core_note): Define.
2658
2659 2012-01-19 Tristan Gingold <gingold@adacore.com>
2660
2661 * pef.c: Add a comment.
2662 * xsym.c: Likewise.
2663
2664 2012-01-17 Alan Modra <amodra@gmail.com>
2665
2666 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
2667 trailing garbage in the note.
2668 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
2669
2670 2012-01-16 Daniel Green <venix1@gmail.com>
2671
2672 PR ld/13491
2673 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
2674 h->root.type not h->type.
2675 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
2676
2677 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
2678
2679 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
2680 indirect symbols.
2681
2682 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
2683
2684 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
2685 position from here... to (bfd_mach_o_build_seg_command): Here.
2686
2687 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
2688
2689 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
2690 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
2691 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
2692 file. (bfd_mach_o_section): Add indirect_syms field.
2693
2694 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2695
2696 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
2697 vmsize from filesize. Don't compute offsets or file sizes for
2698 zerofill sections.
2699
2700 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2701
2702 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
2703 command type independent.
2704
2705 2012-01-11 Alan Modra <amodra@gmail.com>
2706
2707 * elf64-ppc.c: Define more insns used in plt call stubs.
2708 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
2709 (ppc64_elf_relocate_section): Likewise.
2710 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
2711 (struct ppc_link_hash_table): Increase size of stub_count array.
2712 Add plt_stub_align and plt_thread_safe.
2713 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
2714 (plt_stub_size, plt_stub_pad): New functions.
2715 (build_plt_stub): Emit barriers for power7 thread safety. Don't
2716 emit needless save of r2.
2717 (build_tls_get_addr_stub): Adjust params.
2718 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
2719 plt stubs. Adjust build_*plt_stub calls.
2720 (ppc_size_one_stub): Similarly.
2721 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
2722 params. Choose default for plt_thread_safe based on existence of
2723 calls to thread creation functions. Modify plt_call to
2724 plt_call_r2save when no tocsave reloc found. Align tail of stub
2725 sections.
2726 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
2727 output of stub statistics.
2728 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
2729 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
2730
2731 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
2732
2733 PR ld/13581
2734 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
2735 check on R_X86_64_PCXX.
2736
2737 2012-01-10 Tristan Gingold <gingold@adacore.com>
2738
2739 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
2740 warning.
2741
2742 2012-01-10 Tristan Gingold <gingold@adacore.com>
2743
2744 * bfdio.c (bfd_tell): Handle nested archives.
2745 (bfd_seek): Ditto.
2746 * cache.c (bfd_cache_lookup_worker): Ditto.
2747 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
2748 nested archives.
2749 (bfd_generic_openr_next_archived_file): Likewise.
2750
2751 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
2752
2753 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
2754 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
2755 (bfd_mach_o_primary_symbol_sort_key): Likewise.
2756 (bfd_mach_o_cf_symbols): Likewise.
2757 (bfd_mach_o_sort_symbol_table): Remove.
2758 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
2759 for indirect and dysymtab counts. Do the symbol sorting here.
2760 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
2761 Make the indirect symbols a TODO.
2762 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
2763 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
2764 a non-zero value.
2765 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
2766 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
2767 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
2768 (IS_MACHO_INDIRECT): Remove.
2769 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
2770
2771 2012-01-06 Nick Clifton <nickc@redhat.com>
2772
2773 PR binutils/13121
2774 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
2775 'flaginfo' to avoid conflicts with AIX system headers.
2776
2777 2012-01-06 Tristan Gingold <gingold@adacore.com>
2778
2779 * bfdio.c (bfd_bread): Use arelt_size macro.
2780
2781 2012-01-06 Tristan Gingold <gingold@adacore.com>
2782
2783 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
2784
2785 2012-01-05 Nick Clifton <nickc@redhat.com>
2786
2787 PR ld/12161
2788 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
2789 necessary.
2790
2791 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2792
2793 Fix zero registers core files when built by gcc-4.7.
2794 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
2795 size. Call elfcore_write_note for the local variables. Remove the
2796 final elfcore_write_note call. Add NOTREACHED comments.
2797
2798 2012-01-04 Tristan Gingold <gingold@adacore.com>
2799
2800 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
2801 (bfd_mach_o_generic_stat_arch_elt): Adjust.
2802
2803 2012-01-04 Tristan Gingold <gingold@adacore.com>
2804
2805 * mach-o.c (bfd_mach_o_fat_member_init): New function.
2806 (bfd_mach_o_openr_next_archived_file): Reindent.
2807 Adjust to call bfd_mach_o_fat_member_init.
2808 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
2809
2810 2012-01-04 Tristan Gingold <gingold@adacore.com>
2811
2812 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
2813 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
2814 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
2815 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
2816 BFD_RELOC_MACH_O_X86_64_BRANCH32,
2817 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
2818 BFD_RELOC_MACH_O_X86_64_GOT.
2819
2820 2012-01-04 Tristan Gingold <gingold@adacore.com>
2821
2822 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
2823 (bfd_mach_o_load_command): Add fvmlib field.
2824
2825 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
2826 (bfd_mach_o_read_command): Handle fvmlib.
2827
2828 2012-01-04 Tristan Gingold <gingold@adacore.com>
2829
2830 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
2831 Decode msubtype for ARM.
2832
2833 2012-01-04 Tristan Gingold <gingold@adacore.com>
2834
2835 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
2836
2837 2012-01-04 Tristan Gingold <gingold@adacore.com>
2838
2839 * mach-o.h: Reindent header.
2840 (bfd_mach_o_encryption_info_command): New structure.
2841 (bfd_mach_o_load_command): Add encryption_info field.
2842
2843 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
2844 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
2845 (bfd_mach_o_read_command): Adjust error message.
2846
2847 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
2848
2849 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
2850 which reads DWARF2 and stores in stash from find_line.
2851 (find_line) Call _bfd_dwarf2_slurp_debug_info.
2852 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
2853 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
2854 * mach-o.c (dsym_subdir): The name of subdir where debug
2855 information may be stored.
2856 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
2857 type is UUID.
2858 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
2859 corresponding to the executable.
2860 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
2861 specified binary file.
2862 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
2863 the original BFD.
2864 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
2865 executables, dylibs, and bundles.
2866 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
2867 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
2868
2869 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2870
2871 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
2872 for stabd symbols.
2873 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
2874 (bfd_mach_o_cf_symbols): Likewise.
2875
2876 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2877
2878 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
2879
2880 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2881
2882 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
2883 as the value of an indirect symbol. Keep the string table index in
2884 non-indirect syms for reference.
2885 (bfd_mach_o_write_dysymtab): New.
2886 (bfd_mach_o_primary_symbol_sort_key): New.
2887 (bfd_mach_o_cf_symbols): New.
2888 (bfd_mach_o_sort_symbol_table): New.
2889 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
2890 If we are emitting a dysymtab, process indirect symbols and count the
2891 number of each other kind.
2892 (bfd_mach_o_mangle_sections): New.
2893 (bfd_mach_o_write_contents): Split out some pre-requisite code into
2894 the command builder. Write dysymtab if the command is present.
2895 (bfd_mach_o_count_sections_for_seg): New.
2896 (bfd_mach_o_build_seg_command): New.
2897 (bfd_mach_o_build_dysymtab_command): New.
2898 (bfd_mach_o_build_commands): Reorganize to support the fact that some
2899 commands are optional and should not be emitted if there are no
2900 sections or symbols.
2901 (bfd_mach_o_set_section_contents): Amend comment.
2902 * mach-o.h: Amend and add to comments.
2903 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
2904 pointer to the indirects, when present.
2905 (bfd_mach_o_should_emit_dysymtab): New macro.
2906 (IS_MACHO_INDIRECT): Likewise.
2907
2908 For older changes see ChangeLog-2011
2909 \f
2910 Local Variables:
2911 mode: change-log
2912 left-margin: 8
2913 fill-column: 74
2914 version-control: never
2915 End:
This page took 0.08694 seconds and 3 git commands to generate.