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