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