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