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