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