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