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