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