1218822Sdim2007-07-02  Joseph Myers  <joseph@codesourcery.com>
2107492Sobrien
3218822Sdim	* elfxx-mips.c (mips_elf_calculate_relocation): Handle
4218822Sdim	R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
5218822Sdim	* elf64-mips.c (mips_elf64_howto_table_rela): Support
6218822Sdim	R_MIPS_TLS_DTPREL64.
7107492Sobrien
8218822Sdim2007-07-02  Alan Modra  <amodra@bigpond.net.au>
9107492Sobrien
10218822Sdim	* Makefile.am: Run "make dep-am".
11218822Sdim	* Makefile.in: Regenerate.
12218822Sdim	* aclocal.m4: Regenerate.
13218822Sdim	* config.in: Regenerate.
14218822Sdim	* po/SRC-POTFILES.in: Regenerate.
15218822Sdim	* po/bfd.pot: Regenerate.
16107492Sobrien
17218822Sdim2007-07-02  Alan Modra  <amodra@bigpond.net.au>
18107492Sobrien
19218822Sdim	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy
20218822Sdim	symsec != NULL tests.
21107492Sobrien
22218822Sdim2007-07-02  Alan Modra  <amodra@bigpond.net.au>
23107492Sobrien
24218822Sdim	PR 4712
25218822Sdim	* elf.c (assign_file_positions_for_load_sections): Adjust lma
26218822Sdim	by p_vaddr_offset.
27107492Sobrien
28218822Sdim2007-06-30  H.J. Lu  <hongjiu.lu@intel.com>
29107492Sobrien
30218822Sdim	* aclocal.m4: Regenerated.
31218822Sdim	* Makefile.in: Likewise.
32218822Sdim
33218822Sdim2007-06-29  Joseph Myers  <joseph@codesourcery.com>
34218822Sdim
35218822Sdim	* elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
36218822Sdim	(ppc_elf_merge_private_bfd_data): Call it.
37218822Sdim
38218822Sdim2007-06-29  Joseph Myers  <joseph@codesourcery.com>
39218822Sdim
40218822Sdim	* elfxx-mips.c (mips_elf_merge_obj_attributes): New.
41218822Sdim	(_bfd_mips_elf_merge_private_bfd_data): Call it.
42218822Sdim
43218822Sdim2007-06-29  Joseph Myers  <joseph@codesourcery.com>
44218822Sdim
45218822Sdim	* elf-attrs.c: New.
46218822Sdim	* Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
47218822Sdim	(BFD32_BACKENDS_CFILES): Add elf-attrs.c.
48218822Sdim	(elf-attrs.lo): Generate dependencies.
49218822Sdim	* Makefile.in: Regenerate.
50218822Sdim	* configure.in (elf): Add elf-attrs.lo.
51104834Sobrien	* configure: Regenerate.
52218822Sdim	* elf-bfd.h (struct elf_backend_data): Add entries for object
53218822Sdim	attributes.
54218822Sdim	(NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
55218822Sdim	OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
56218822Sdim	Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
57218822Sdim	New.
58218822Sdim	(struct elf_obj_tdata): Add entries for object attributes.
59218822Sdim	(elf_known_obj_attributes, elf_other_obj_attributes,
60218822Sdim	elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
61218822Sdim	New.
62218822Sdim	(bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
63218822Sdim	bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
64218822Sdim	bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
65218822Sdim	bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
66218822Sdim	bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
67218822Sdim	_bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
68218822Sdim	_bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
69218822Sdim	* elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
70218822Sdim	(bfd_section_from_shdr): Handle attributes sections.
71218822Sdim	* elflink.c (bfd_elf_final_link): Handle attributes sections.
72218822Sdim	* elfxx-target.h (elf_backend_obj_attrs_vendor,
73218822Sdim	elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
74218822Sdim	elf_backend_obj_attrs_section_type): New.
75218822Sdim	(elfNN_bed): Update.
76218822Sdim	* elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
77218822Sdim	aeabi_attribute_list): Remove.
78218822Sdim	(struct elf32_arm_obj_tdata): Remove object attributes fields.
79218822Sdim	(check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
80218822Sdim	elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
81218822Sdim	Update for new object attributes interfaces.
82218822Sdim	(uleb128_size, is_default_attr, eabi_attr_size,
83218822Sdim	elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
84218822Sdim	elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
85218822Sdim	elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
86218822Sdim	elf32_arm_add_eabi_attr_int, attr_strdup,
87218822Sdim	elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
88218822Sdim	copy_eabi_attributes, elf32_arm_parse_attributes): Remove.  Moved
89218822Sdim	to generic code in elf-attrs.c.
90218822Sdim	(elf32_arm_obj_attrs_arg_type): New.
91218822Sdim	(elf32_arm_fake_sections): Do not handle .ARM.attributes.
92218822Sdim	(elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
93218822Sdim	(bfd_elf32_bfd_final_link): Remove.
94218822Sdim	(elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
95218822Sdim	elf_backend_obj_attrs_arg_type,
96218822Sdim	elf_backend_obj_attrs_section_type): New.
97218822Sdim	* elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
98218822Sdim	attributes.
99218822Sdim	* elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
100218822Sdim	* elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
101218822Sdim	* elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
102218822Sdim	* elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
103218822Sdim	* elf32-sh.c (sh_elf_copy_private_data): Likewise.
104218822Sdim	* elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
105104834Sobrien
106218822Sdim2007-06-29  Paul Brook  <paul@codesourcery.com>
107104834Sobrien
108218822Sdim	* elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress
109218822Sdim	call veneers for call relocations against undefined symbols.
110218822Sdim	(elf32_arm_final_link_relocate): Turn call to undefined symbol
111218822Sdim	into a jump to the next instruction.
112104834Sobrien
113218822Sdim2007-06-29  Michael Snyder  <msnyder@svkmacdonelllnx>
114104834Sobrien
115218822Sdim	* bfd.c (bfd_demangle): Plug memory leak (Coverity).
116104834Sobrien
117218822Sdim2007-06-29  M R Swami Reddy  <MR.Swami.Reddy@nsc.com>
118104834Sobrien
119218822Sdim	* Makefile.am: Add cr16 related entry
120218822Sdim	* Makefile.in: Regenerate
121218822Sdim	* archures.c: Add bfd_cr16_arch
122218822Sdim	* bfd-in2.h: Regenerate
123218822Sdim	* config.bfd: Add cr16-elf
124218822Sdim	* configure.in: Add bfd_elf32_cr16_vec
125218822Sdim	* configure: Regenerate.
126218822Sdim	* targets.c: Added cr16 related information
127218822Sdim	* cpu-cr16.c: New file.
128218822Sdim	* elf32-cr16.c: New file.
129218822Sdim	* reloc.c: Added cr16 relocs.
130104834Sobrien
131218822Sdim2007-06-29  Alan Modra  <amodra@bigpond.net.au>
132104834Sobrien
133218822Sdim	* elflink.c (_bfd_elf_link_assign_sym_version): Improve error
134218822Sdim	message for undefined version nodes.
135218822Sdim	(elf_gc_sweep): Don't warn when zero size sections are
136218822Sdim	removed.
137104834Sobrien
138218822Sdim2007-06-29  Nathan Froyd  <froydnj@codesourcery.com>
139104834Sobrien
140218822Sdim	* elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
141218822Sdim	types.
142104834Sobrien
143218822Sdim2007-06-29  Alan Modra  <amodra@bigpond.net.au>
144104834Sobrien
145218822Sdim	* elf32-spu.c (spu_elf_fake_sections): New function.
146218822Sdim	(elf_backend_fake_sections): Define.
147104834Sobrien
148218822Sdim2007-06-29  Alan Modra  <amodra@bigpond.net.au>
149104834Sobrien
150218822Sdim	* elf.c (assign_file_positions_for_load_sections): Use elf
151218822Sdim	section header sh_size rather than bfd section size, simplifying
152218822Sdim	.tbss handling.
153104834Sobrien
154218822Sdim2007-06-29  Alan Modra  <amodra@bigpond.net.au>
155104834Sobrien
156218822Sdim	PR ld/4701
157218822Sdim	* elf.c (assign_file_positions_for_load_sections): Ensure bss
158218822Sdim	segments meet gABI alignment requirements.  Don't allocate
159218822Sdim	file space for bss sections in a segment also containing file
160218822Sdim	or program headers.
161104834Sobrien
162218822Sdim2007-06-27  Alan Modra  <amodra@bigpond.net.au>
163104834Sobrien
164218822Sdim	* bfd.c (struct bfd): Rename "next" to "archive_next".
165218822Sdim	* archive.c: Rename uses throughout file.
166218822Sdim	* archive64.c: Likewise.
167218822Sdim	* coff-rs6000.c: Likewise.
168218822Sdim	* ecoff.c: Likewise.
169218822Sdim	* som.c: Likewise.
170218822Sdim	* bfd-in2.h: Regenerate.
171104834Sobrien
172218822Sdim	* elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
173218822Sdim	input bfds.
174218822Sdim	* elf32-spu.c (spu_elf_create_sections): Likewise.
175104834Sobrien
176218822Sdim2007-06-26  H.J. Lu  <hongjiu.lu@intel.com>
177104834Sobrien
178218822Sdim	* dwarf2.c (find_line): New.  Contains the duplicated code from:
179218822Sdim	(_bfd_dwarf2_find_nearest_line): Use it.
180218822Sdim	(_bfd_dwarf2_find_line): Use it.
181104834Sobrien
182218822Sdim2007-06-26  Joseph Myers  <joseph@codesourcery.com>
183104834Sobrien
184218822Sdim	* elf32-arm.c (copy_eabi_attributes): Copy type of attributes.
185104834Sobrien
186218822Sdim2007-06-25  Richard Sandiford  <richard@codesourcery.com>
187104834Sobrien
188218822Sdim	* elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
189218822Sdim	to be used for calls from MIPS16 code.
190104834Sobrien
191218822Sdim2007-06-23  Andreas Schwab  <schwab@suse.de>
192218822Sdim
193218822Sdim	* configure.in (--with-separate-debug-dir): New option.
194104834Sobrien	* configure: Regenerate.
195218822Sdim	* Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR.
196218822Sdim	* Makefile.in: Regenerate.
197218822Sdim	* dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to
198218822Sdim	bfd_follow_gnu_debuglink.
199218822Sdim	(_bfd_dwarf2_find_line): Likewise.
200104834Sobrien
201218822Sdim2007-06-22  Nick Clifton  <nickc@redhat.com>
202104834Sobrien
203218822Sdim	* dwarf2.c: Add support for reading in debug information via a
204218822Sdim	.gnu_debuglink section:
205218822Sdim	(struct dwarf2_debug): Add bfd field to record the bfd containing
206218822Sdim	the debug info.
207218822Sdim	(parse_comp_unit): Remove ABFD parameter.  Instead use the bfd
208218822Sdim	field in the dwarf2_debug structure.
209218822Sdim	(_bfd_dwarf2_find_nearest_line): If a debug info section could not
210218822Sdim	be found in the current bfd call bfd_follow_gnu_debuglink to see
211218822Sdim	if another file contains the debug information.  If it does, open
212218822Sdim	it and continue.
213218822Sdim	(_bfd_dwarf2_find_line): Likewise.
214218822Sdim
215218822Sdim2007-06-19  H.J. Lu  <hongjiu.lu@intel.com>
216218822Sdim
217218822Sdim	PR ld/4590
218218822Sdim	* elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset
219218822Sdim	when removing duplicated entries.
220218822Sdim	(get_dyn_sym_info): Initialize the got_offset field to -1.
221218822Sdim	Update call to sort_dyn_sym_info.
222218822Sdim	(elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort
223218822Sdim	array of addend and remove duplicates.
224218822Sdim
225218822Sdim2007-06-18  H.J. Lu  <hongjiu.lu@intel.com>
226218822Sdim
227218822Sdim	* libpei.h (_bfd_XXi_final_link_postscript): Remove
228218822Sdim	duplication.
229218822Sdim	(bfd_target_pei_p): New.
230218822Sdim	(bfd_target_pei_arch): New
231218822Sdim	(bfd_target_efi_p): Likewise.
232218822Sdim	(bfd_target_efi_arch): New
233218822Sdim	(bfd_pe_executable_p): Use bfd_target_pei_p and
234218822Sdim	bfd_target_efi_p.
235218822Sdim
236218822Sdim	* peicode.h (arch_type): New enum.
237218822Sdim	(pe_arch): New function.
238218822Sdim	(pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file
239218822Sdim	if there is an EFI/PE target.
240218822Sdim
241218822Sdim2007-06-14  H.J. Lu  <hongjiu.lu@intel.com>
242218822Sdim
243218822Sdim	* Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config.
244218822Sdim
245218822Sdim	* acinclude.m4: Don't include m4 files. Remove libtool
246218822Sdim	kludge.
247218822Sdim
248218822Sdim	* Makefile.in: Regenerated.
249218822Sdim	* aclocal.m4: Likewise.
250130561Sobrien	* configure: Likewise.
251104834Sobrien
252218822Sdim2007-06-11  Sterling Augustine  <sterling@tensilica.com>
253218822Sdim	    Bob Wilson  <bob.wilson@acm.org>
254104834Sobrien
255218822Sdim	* elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed
256218822Sdim	XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
257218822Sdim	(extend_ebb_bounds_backward, compute_text_actions): Likewise.
258218822Sdim	(compute_ebb_proposed_actions, coalesce_shared_literal): Likewise.
259218822Sdim	(xtensa_get_property_predef_flags): Likewise.
260218822Sdim	(compute_removed_literals): Pass new arguments to is_removable_literal.
261218822Sdim	(is_removable_literal): Add sec, prop_table and ptblsize arguments.
262218822Sdim	Do not remove literal if the NO_TRANSFORM property flag is set.
263104834Sobrien
264218822Sdim2007-05-31  Richard Sandiford  <rsandifo@nildram.co.uk>
265104834Sobrien
266218822Sdim	* elfxx-mips.c (mips_elf_initialize_tls_index): When processing a
267218822Sdim	type (3) single-GOT entry, read tls_type from the hash table entry
268218822Sdim	rather than the GOT entry.
269104834Sobrien
270218822Sdim2007-06-01  Alan Modra  <amodra@bigpond.net.au>
271104834Sobrien
272218822Sdim	* simple.c (bfd_simple_get_relocated_section_contents): Init
273218822Sdim	input_bfds_tail.
274104834Sobrien
275218822Sdim2007-05-30  Alan Modra  <amodra@bigpond.net.au>
276104834Sobrien
277218822Sdim	* elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
278218822Sdim	created by objcopy --only-keep-debug.
279218822Sdim	(_bfd_elf_init_private_section_data): Only change elf_section_type
280218822Sdim	if it is SHT_NULL.
281104834Sobrien
282218822Sdim	* elf.c (assign_file_positions_for_load_sections): Correct sh_type
283218822Sdim	to SHT_NOBITS earlier.  Base actions in rest of function on sh_type
284218822Sdim	and sh_flags instead of bfd section flags.  Delete voff and code
285218822Sdim	keeping nobits segments aligned.
286104834Sobrien
287218822Sdim2007-05-25  Eric Christopher  <echristo@apple.com>
288104834Sobrien
289218822Sdim	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame):
290218822Sdim	Check that sym_sec isn't NULL before accessing.
291104834Sobrien
292218822Sdim2007-05-24  Steve Ellcey  <sje@cup.hp.com>
293104834Sobrien
294218822Sdim	* Makefile.in: Regnerate.
295218822Sdim	* configure: Regenerate.
296218822Sdim	* aclocal.m4: Regenerate.
297218822Sdim	* doc/Makefile.in: Regenerate.
298104834Sobrien
299218822Sdim2007-05-22  Paul Brook  <paul@codesourcery.com>
300104834Sobrien
301218822Sdim	* elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset
302218822Sdim	with sec and sec_shndx.
303218822Sdim	(elf32_arm_ouput_plt_map_sym): Use them.
304218822Sdim	(elf32_arm_output_arch_local_syms): Output mapping symbols for
305218822Sdim	interworking glue.
306104834Sobrien
307218822Sdim2007-05-18  Paul Brook  <paul@codesourcery.com>
308104834Sobrien
309218822Sdim	* elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define.
310218822Sdim	(a2t1v5_ldr_insn, a2t1v5_ldr_insn): New.
311218822Sdim	(record_arm_to_thumb_glue): Add v5t non-pic glue.
312218822Sdim	(elf32_arm_create_thumb_stub): Ditto.
313104834Sobrien
314218822Sdim2007-05-16  H.J. Lu  <hongjiu.lu@intel.com>
315218822Sdim	    Alan Modra  <amodra@bigpond.net.au>
316104834Sobrien
317218822Sdim	* elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss
318218822Sdim	section to the minimum alignment.
319104834Sobrien
320218822Sdim2007-05-15  H.J. Lu  <hongjiu.lu@intel.com>
321218822Sdim	    Alan Modra  <amodra@bigpond.net.au>
322104834Sobrien
323218822Sdim	PR ld/4504
324218822Sdim	* elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New.
325218822Sdim	* elflink.c (_bfd_elf_adjust_dynamic_copy): New.
326104834Sobrien
327218822Sdim	* elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call
328218822Sdim	_bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic
329218822Sdim	bss section.
330218822Sdim	* elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
331218822Sdim	* elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
332218822Sdim	* elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
333218822Sdim	* elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
334218822Sdim	* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
335218822Sdim	* elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
336218822Sdim	* elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
337218822Sdim	* elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
338218822Sdim	* elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
339218822Sdim	* elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
340218822Sdim	* elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
341218822Sdim	* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
342218822Sdim	* elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
343218822Sdim	* elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
344218822Sdim	* elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
345218822Sdim	* elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise.
346218822Sdim	* elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
347218822Sdim
348218822Sdim2007-05-15  Richard Sandiford  <richard@codesourcery.com>
349218822Sdim
350218822Sdim	* elfxx-mips.c (mips_elf_create_local_got_entry): Remove
351218822Sdim	input_section argument.  Create .rela.dyn relocations against
352218822Sdim	symbol 0 rather than the section symbol.
353218822Sdim	(mips_elf_local_got_index): Remove input_section argument.
354218822Sdim	Update call to mips_elf_create_local_got_entry.
355218822Sdim	(mips_elf_got_page, mips_elf_got16_entry): Likewise.
356218822Sdim	(mips_elf_calculate_relocation): Update calls to
357218822Sdim	mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page.
358218822Sdim
359218822Sdim2007-05-15  Mark Shinwell  <shinwell@codesourcery.com>
360218822Sdim
361218822Sdim	* elf32-arm.c (elf32_arm_final_link_relocate): Correctly
362218822Sdim	handle the Thumb-2 JUMP19 relocation.
363218822Sdim
364218822Sdim2007-05-15  Alan Modra  <amodra@bigpond.net.au>
365218822Sdim
366218822Sdim	PR 4479
367218822Sdim	* elf.c (elf_fake_sections): Don't allow backend to change
368218822Sdim	SHT_NOBITS if called for strip/objcopy --only-keep-debug.
369218822Sdim	* elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar
370218822Sdim	fix from here.
371218822Sdim
372218822Sdim2007-05-14  Alan Modra  <amodra@bigpond.net.au>
373218822Sdim
374218822Sdim	* elf.c (bfd_elf_string_from_elf_section): Return NULL on
375218822Sdim	invalid shstrndx.
376218822Sdim	(bfd_elf_get_str_section): Likewise.
377218822Sdim
378218822Sdim2007-05-12  Alan Modra  <amodra@bigpond.net.au>
379218822Sdim
380218822Sdim	PR 4497
381218822Sdim	* elf-eh-frame.c (struct cie): Add "local_personality".  Make
382218822Sdim	"personality" a union.
383218822Sdim	(cie_eq): Compare local_personality too.  Adjust personality
384218822Sdim	comparison.
385218822Sdim	(_bfd_elf_discard_section_eh_frame): Check binding on personality
386218822Sdim	reloc sym to allow for bad symtab.  Use stashed local syms rather
387218822Sdim	than reading personality local sym.  Handle discarded sections.
388218822Sdim
389218822Sdim2007-05-12  Alan Modra  <amodra@bigpond.net.au>
390218822Sdim
391218822Sdim	* elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.
392218822Sdim
393218822Sdim2007-05-11  Alan Modra  <amodra@bigpond.net.au>
394218822Sdim
395218822Sdim	* elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
396218822Sdim	(enum ppc_elf_plt_type): Move from..
397218822Sdim	* elf32-ppc.c: ..here.
398218822Sdim	(struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16.
399218822Sdim	(struct ppc_elf_link_hash_table): Reorder.  Add old_bfd.  Delete
400218822Sdim	can_use_new_plt.  Make is_vxworks a bitfield.
401218822Sdim	(ppc_elf_link_hash_table_create): Don't clear is_vxworks (again).
402218822Sdim	(ppc_elf_check_relocs): Update setting of reloc flags.  Set old_bfd.
403218822Sdim	(ppc_elf_select_plt_layout): Modify parameters.  Use bfd reloc
404218822Sdim	flags to better detect object files needing old bss-style plt.
405218822Sdim	Allow secure plt to be used without rel16 relocs being detected.
406218822Sdim	Warn if secure plt request cannot be allowed.
407218822Sdim
408218822Sdim2007-05-11  Alan Modra  <amodra@bigpond.net.au>
409218822Sdim
410218822Sdim	* reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define.
411218822Sdim	* elf-bfd.h (struct elf_backend_data): Change return type of
412218822Sdim	elf_backend_relocate_section to int.
413218822Sdim	* elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and
414218822Sdim	R_SPU_PPU64.
415218822Sdim	(spu_elf_bfd_to_reloc_type): Convert new relocs.
416218822Sdim	(spu_elf_count_relocs): New function.
417218822Sdim	(elf_backend_count_relocs): Define.
418218822Sdim	(spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and
419218822Sdim	R_SPU_PPU64 relocs.
420218822Sdim	* elflink.c (elf_link_input_bfd): Emit relocs if relocate_section
421218822Sdim	returns 2.
422218822Sdim	* bfd-in2.h: Regenerate.
423218822Sdim	* libbfd.h: Regenerate.
424218822Sdim
425218822Sdim2007-05-10  Richard Sandiford  <richard@codesourcery.com>
426218822Sdim
427218822Sdim	* elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries
428218822Sdim	for R_ARM_ABS12 relocs.
429218822Sdim	(elf32_arm_finish_dynamic_symbol): Fix the loop that creates
430218822Sdim	non-shared VxWorks PLT entries.
431218822Sdim
432218822Sdim2007-05-11  Alan Modra  <amodra@bigpond.net.au>
433218822Sdim
434218822Sdim	PR 4454
435218822Sdim	* elf-eh-frame.c (struct cie): Make "personality" a bfd_vma.
436218822Sdim	(_bfd_elf_discard_section_eh_frame): Handle local syms on
437218822Sdim	personality relocation.
438218822Sdim
439218822Sdim2007-05-10  Richard Sandiford  <richard@codesourcery.com>
440218822Sdim
441218822Sdim	* elf.c (assign_file_positions_for_load_sections): Use p_memsz
442218822Sdim	rather than p_filesz to calculate the LMA of the end of a segment.
443218822Sdim
444218822Sdim2007-05-10  Jakub Jelinek  <jakub@redhat.com>
445218822Sdim
446218822Sdim	* elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
447218822Sdim	processing if symbol is defined in the executable.
448218822Sdim
449218822Sdim2007-05-10  Alexandre Oliva  <aoliva@redhat.com>
450218822Sdim
451218822Sdim	* elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
452218822Sdim	(frvfdpic_elf_discard_info): New.
453218822Sdim	(elf_backend_discard_info): Define for FDPIC.
454218822Sdim
455218822Sdim2007-05-09  Mark Shinwell  <shinwell@codesourcery.com>
456218822Sdim
457218822Sdim	* elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
458218822Sdim	attempt to scan if the bfd doesn't correspond to an ELF image.
459218822Sdim	(bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
460218822Sdim
461218822Sdim2007-05-08  Alexandre Oliva  <aoliva@redhat.com>
462218822Sdim
463218822Sdim	* elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
464218822Sdim	for which _bfd_elf_section_offset returns -1.
465218822Sdim
466218822Sdim2007-05-08  Alan Modra  <amodra@bigpond.net.au>
467218822Sdim
468218822Sdim	* elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
469218822Sdim	(mark_functions_via_relocs): Likewise.
470218822Sdim
471218822Sdim2007-05-07  Alan Modra  <amodra@bigpond.net.au>
472218822Sdim
473218822Sdim	* elflink.c (bfd_elf_final_link): Correct reloc handling for
474218822Sdim	elf_backend_count_relocs.
475218822Sdim	(bfd_elf_discard_info): Print an error if we can't read syms.
476218822Sdim
477218822Sdim2007-05-07  Alan Modra  <amodra@bigpond.net.au>
478218822Sdim
479218822Sdim	* elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
480218822Sdim	invalid reloc code.
481218822Sdim	(spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions.
482218822Sdim	(elf_backend_gc_mark_hook, elf_backend_section_processing): Don't
483218822Sdim	define.
484218822Sdim
485218822Sdim2007-05-07  Alan Modra  <amodra@bigpond.net.au>
486218822Sdim
487218822Sdim	* elf.c (assign_file_positions_for_load_sections): Don't check
488218822Sdim	core segment.
489218822Sdim
490218822Sdim2007-05-04  H.J. Lu  <hongjiu.lu@intel.com>
491218822Sdim
492218822Sdim	* elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
493218822Sdim	and .rel.dyn aren't present.
494218822Sdim
495218822Sdim2007-05-04  Nick Clifton  <nickc@redhat.com>
496218822Sdim
497218822Sdim	* elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
498218822Sdim	sections are present examine the indirect sections in an attempt
499218822Sdim	to compute the correct relocation size.  If there is any
500218822Sdim	ambiguity, produce an error and refuse to sort.
501218822Sdim
502218822Sdim2007-05-03  Sandra Loosemore  <sandra@codesourcery.com>
503218822Sdim
504218822Sdim	* elf32-arm.c (allocate_dynrelocs): Fix typo in comment.
505218822Sdim
506218822Sdim2007-05-03  Vincent Riviere  <vincent.riviere@freesbee.fr>
507218822Sdim	    Nick Clifton  <nickc@redhat.com>
508218822Sdim
509218822Sdim	PR gas/3041
510218822Sdim	* aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols
511218822Sdim	in the same way as relocs against external symbols.
512218822Sdim
513218822Sdim2007-05-02  Alan Modra  <amodra@bigpond.net.au>
514218822Sdim
515218822Sdim	* elf.c (assign_file_positions_for_load_sections): Set sh_offset
516218822Sdim	here.  Set sh_type to SHT_NOBITS if we won't be allocating
517218822Sdim	file space.  Don't bump p_memsz for non-alloc sections.  Adjust
518218822Sdim	section-in-segment check.
519218822Sdim	(assign_file_positions_for_non_load_sections): Don't set sh_offset
520218822Sdim	here for sections that have already been handled above.
521218822Sdim
522218822Sdim2007-04-30  Alan Modra  <amodra@bigpond.net.au>
523218822Sdim
524218822Sdim	* elf32-spu.c (struct spu_link_hash_table): Add stack_analysis
525218822Sdim	and emit_stack_syms bitfields.
526218822Sdim	(get_sym_h): Read all symbols if stack analysis will be done.
527218822Sdim	(spu_elf_create_sections): Add stack_analysis and emit_stack_syms
528218822Sdim	params, and stash in hash table.
529218822Sdim	(is_hint): Split off from..
530218822Sdim	(is_branch): ..here.  Adjust callers.
531218822Sdim	(spu_elf_size_stubs): Add stack_analysis param.  Arrange to read
532218822Sdim	and keep all syms.
533218822Sdim	(write_one_stub): Fix mem leak.
534218822Sdim	(find_function_stack_adjust): New function.
535218822Sdim	(sort_syms_syms, sort_syms_psecs): New vars.
536218822Sdim	(sort_syms): New function.
537218822Sdim	(struct call_info, struct function_info): New.
538218822Sdim	(struct spu_elf_stack_info): New.
539218822Sdim	(alloc_stack_info, maybe_insert_function, func_name): New functions.
540218822Sdim	(is_nop, insns_at_end, check_function_ranges): Likewise.
541218822Sdim	(find_function, insert_callee, mark_functions_via_relocs): Likewise.
542218822Sdim	(pasted_function, interesting_section, discover_functions): Likewise.
543218822Sdim	(mark_non_root, call_graph_traverse, build_call_tree): Likewise.
544218822Sdim	(sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise.
545218822Sdim	(bfd_elf32_bfd_final_link): Define.
546218822Sdim	* elf32-spu.h (struct _spu_elf_section_data): Add stack_info field.
547218822Sdim	(spu_elf_create_sections, spu_elf_size_stubs): Update prototypes.
548218822Sdim
549218822Sdim2007-04-28  Sergey Rogozhkin  <rogozhkin@niisi.msk.ru>
550218822Sdim
551218822Sdim	* elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access
552218822Sdim	memory which we might not own.
553218822Sdim
554218822Sdim2007-04-27  Bob Wilson  <bob.wilson@acm.org>
555218822Sdim
556218822Sdim	* elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function.
557218822Sdim	(elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise.
558218822Sdim	(elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local.
559218822Sdim
560218822Sdim2007-04-27  Bob Wilson  <bob.wilson@acm.org>
561218822Sdim
562218822Sdim	* elf32-xtensa.c (xtensa_read_table_entries): Step through table
563218822Sdim	contents and relocs in parallel.
564218822Sdim
565218822Sdim2007-04-27  Bob Wilson  <bob.wilson@acm.org>
566218822Sdim
567218822Sdim	* elf32-xtensa.c (relax_property_section): Remove extra irel increment.
568218822Sdim
569218822Sdim2007-04-27  Alan Modra  <amodra@bigpond.net.au>
570218822Sdim
571218822Sdim	* cpu-rs6000.c: Write Mimi's name in ASCII.
572218822Sdim	* coff-rs6000.c: Likewise.
573218822Sdim	* rs6000-core.c: Likewise.
574218822Sdim
575218822Sdim2007-04-27  Alan Modra  <amodra@bigpond.net.au>
576218822Sdim
577218822Sdim	* sysdep.h: Include config.h first.
578218822Sdim	Many files: Include sysdep.h before bfd.h.
579218822Sdim	* Makefile.am: Run "make dep-am".
580104834Sobrien	* Makefile.in: Regenerate.
581104834Sobrien
582218822Sdim2007-04-25  Alan Modra  <amodra@bigpond.net.au>
583104834Sobrien
584218822Sdim	* sysdep.h: Revert last change.
585104834Sobrien
586218822Sdim2007-04-24  Nick Clifton  <nickc@redhat.com>
587218822Sdim
588218822Sdim	* coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset.
589218822Sdim	* coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto.
590218822Sdim
591218822Sdim2007-04-24  Alan Modra  <amodra@bigpond.net.au>
592218822Sdim
593218822Sdim	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
594218822Sdim	eh_frame_hdr table won't be created.
595218822Sdim
596218822Sdim2007-04-24  Alan Modra  <amodra@bigpond.net.au>
597218822Sdim
598218822Sdim	* acinclude.m4: Include config/stdint.m4.
599218822Sdim	* configure.in: Invoke GCC_HEADER_STDINT.
600218822Sdim	* sysdep.h: Don't include ansidecl.h here.
601218822Sdim	* configure: Regenerate.
602218822Sdim	* config.in: Regenerate.
603104834Sobrien	* Makefile.in: Regenerate.
604104834Sobrien
605218822Sdim2007-04-23  Nathan Sidwell  <nathan@codesourcery.com>
606104834Sobrien
607218822Sdim	* archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
608218822Sdim	bfd_mach_mcf_isa_c_emac): New.
609218822Sdim	* elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
610218822Sdim	elf_isac_plt_entry, elf_isac_plt_info): New.
611218822Sdim	(elf32_m68k_object_p): Add ISA_C.
612218822Sdim	(elf32_m68k_print_private_bfd_data): Print ISA_C.
613218822Sdim	(elf32_m68k_get_plt_info): Detect ISA_C.
614218822Sdim	* cpu-m68k.c (arch_info): Add ISAC.
615218822Sdim	(m68k_arch_features): Likewise,
616218822Sdim	(bfd_m68k_compatible): ISAs B & C are not compatible.
617104834Sobrien
618218822Sdim2007-04-21  Nick Clifton  <nickc@redhat.com>
619104834Sobrien
620218822Sdim	* ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
621218822Sdim	(ecoff_link_add_archive_symbols): Likewise.
622218822Sdim	* coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
623218822Sdim	relent.howto.
624218822Sdim	* ieee.c (parse_int): Initialise x.
625218822Sdim	(must_parse_int): Initialise result.
626218822Sdim	(ieee_slurp_external_symbols): Initialise value.
627104834Sobrien
628218822Sdim2007-04-21  Alan Modra  <amodra@bigpond.net.au>
629104834Sobrien
630218822Sdim	* config.bfd (spu-*-elf): Delete targ_selvecs.
631104834Sobrien
632218822Sdim2007-04-19  Nick Clifton  <nickc@redhat.com>
63399461Sobrien
634218822Sdim	* coffcode.h (coff_rtype_to_howto): Initialise genrel.howto.
635104834Sobrien
636218822Sdim2007-04-19  Alan Modra  <amodra@bigpond.net.au>
637218822Sdim
638218822Sdim	* bfd.c (bfd_demangle): New function.
639218822Sdim	* Makefile.am: Run "make dep-am".
640218822Sdim	* Makefile.in: Regenerate.
641104834Sobrien	* bfd-in2.h: Regenerate.
642104834Sobrien
643218822Sdim2007-04-18  Matthias Klose  <doko@ubuntu.com>
644104834Sobrien
645218822Sdim	* Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
646218822Sdim	(bfdver.h): Use the date in non-release builds for the soversion.
647218822Sdim	* Makefile.in: Regenerate.
64899461Sobrien
649218822Sdim2007-04-17  Paul Brook  <paul@codesourcery.com>
65099461Sobrien
651218822Sdim	* elf.c (_bfd_elf_is_function_type): New function.
652218822Sdim	* elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
653218822Sdim	(_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
654218822Sdim	is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
655218822Sdim	* elf-bfd.h (elf_backend_data): Add is_function_type.
656218822Sdim	(_bfd_elf_is_function_type): Add prototype.
657218822Sdim	* elfxx-target.h (elf_backend_is_function_type): Add default
658218822Sdim	definition.
659218822Sdim	(elfNN_bed): Add elf_backend_is_function_type.
660218822Sdim	* elf32-arm.c (elf32_arm_is_function_type): New function.
661218822Sdim	(elf_backend_is_function_type): Define.
662104834Sobrien
663218822Sdim2007-04-17  Daniel Jacobowitz  <dan@codesourcery.com>
664104834Sobrien
665218822Sdim	* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
666218822Sdim	DT_MIPS_RLD_MAP before DT_DEBUG again.
667104834Sobrien
668218822Sdim2007-04-14  Steve Ellcey  <sje@cup.hp.com>
669104834Sobrien
670218822Sdim	* Makefile.am: Add ACLOCAL_AMFLAGS.
671218822Sdim	* configure.in: Change macro call order.
672218822Sdim	* Makefile.in: Regnerate.
673218822Sdim	* doc/Makefile.in: Regenerate.
674218822Sdim	* configure: Regenerate.
67599461Sobrien
676218822Sdim2007-04-14  Jakub Jelinek  <jakub@redhat.com>
67799461Sobrien
678218822Sdim	* elflink.c (bfd_elf_final_link): Don't free symbuf for
679218822Sdim	non-elf input bfds.
680218822Sdim	(bfd_elf_size_dynamic_sections): Don't access elf_section_data
681218822Sdim	for non-elf input bfds.
68294536Sobrien
683218822Sdim2007-04-12  Richard Sandiford  <richard@codesourcery.com>
684104834Sobrien
685218822Sdim	* elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
686218822Sdim	DT_MIPS_RTLD_MAP for PIEs.
687104834Sobrien
688218822Sdim2007-04-12  Richard Sandiford  <richard@codesourcery.com>
689104834Sobrien
690218822Sdim	* elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
691218822Sdim	when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
692218822Sdim	in a read-only section.
693218822Sdim	(_bfd_mips_elf_check_relocs): Likewise.
694104834Sobrien
695218822Sdim2007-04-12  Bob Wilson  <bob.wilson@acm.org>
696104834Sobrien
697218822Sdim	* elf32-xtensa.c (xtensa_is_insntable_section): New.
698218822Sdim	(xtensa_is_proptable_section): New.
699218822Sdim	(elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
700218822Sdim	tables with 12-byte entries, as well as tables with 8-byte entries.
701218822Sdim	Sort the relocations before examining them.
702218822Sdim	(relax_property_section): Use xtensa_is_proptable_section and
703218822Sdim	xtensa_is_littable_section.  Rewrite code for combining table entries
704218822Sdim	to be more robust in case of unexpected relocations.  Do not set offset
705218822Sdim	of unused relocations to less than zero.
706218822Sdim	(xtensa_is_property_section): Use other functions instead of
707218822Sdim	duplicating section name comparisons.
708218822Sdim	(xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
709218822Sdim	(xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
710104834Sobrien
711218822Sdim2007-04-12  Bob Wilson  <bob.wilson@acm.org>
712104834Sobrien
713218822Sdim	* elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
714218822Sdim	from Xtensa property sections.
715218822Sdim
716218822Sdim2007-04-12  Alan Modra  <amodra@bigpond.net.au>
717218822Sdim
718218822Sdim	* elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
719218822Sdim	is non-NULL before dereferencing.
720218822Sdim
721218822Sdim2007-04-11  Nathan Sidwell  <nathan@codesourcery.com>
722218822Sdim
723218822Sdim	* elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
724218822Sdim	relocs too.
725218822Sdim
726218822Sdim2007-04-10  Richard Henderson  <rth@redhat.com>
727218822Sdim
728218822Sdim	* elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
729218822Sdim	(elf64_alpha_size_got_sections): Remove unused something_changed local.
730218822Sdim	(elf64_alpha_size_plt_section): Return void.
731218822Sdim	(elf64_alpha_size_rela_got_section): Likewise.
732218822Sdim	(elf64_alpha_relax_section): Only regenerate got+plt if the
733218822Sdim	relax_trip counter has changed.
734218822Sdim
735218822Sdim2007-04-09  Daniel Jacobowitz  <dan@codesourcery.com>
736218822Sdim
737218822Sdim	* Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
738218822Sdim	* doc/Makefile.am (DOCFILES): Add bfdver.texi.
739218822Sdim	(bfdver.texi): New rule.
740218822Sdim	* Makefile.in, doc/Makefile.in: Regenerated.
741218822Sdim
742218822Sdim2007-04-03  Matt Thomas  <matt@netbsd.org>
743218822Sdim
744218822Sdim	* elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
745218822Sdim	in a shared object if it is not in a CODE section or if it is against
746218822Sdim	a section symbol.  This allows DWARF2 to use pcrel format.
747218822Sdim
748218822Sdim2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
749218822Sdim
750218822Sdim	PR ld/4304
751218822Sdim	* elflink.c (bfd_elf_final_link): Call einfo callback in
752218822Sdim	bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
753218822Sdim	warning.
754218822Sdim
755218822Sdim2007-04-05  Alan Modra  <amodra@bigpond.net.au>
756218822Sdim
757218822Sdim	* elf32-spu.c (spu_elf_output_symbol_hook): New function.
758218822Sdim	(elf_backend_link_output_symbol_hook): Define.
759218822Sdim
760218822Sdim2007-04-02  Nick Clifton  <nickc@redhat.com>
761218822Sdim
762218822Sdim	PR binutils/4292
763218822Sdim	* bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
764218822Sdim	targets as 64-bit values, even if running on a 64-bit host.
765218822Sdim	* coffgen.c (coff_print_symbol): Likewise.
766218822Sdim
767218822Sdim2007-03-29  Nick Clifton  <nickc@redhat.com>
768218822Sdim
769218822Sdim	PR binutils/4110
770218822Sdim	* elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
771218822Sdim	(setup_group): Use it.  Report corrupt group section headers.
772218822Sdim	(bfd_section_from_shdr): Use new macro.  Replace constant 4 with
773218822Sdim	GRP_ENTRY_SIZE.  Cope with NULLs in the group section table.
774218822Sdim	(elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
775218822Sdim
776218822Sdim2007-03-29  Alan Modra  <amodra@bigpond.net.au>
777218822Sdim
778218822Sdim	PR ld/4267
779218822Sdim	* elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
780218822Sdim	for rel->r_info values.
781218822Sdim	(bfd_elf_perform_complex_relocation): Likewise.
782218822Sdim	* elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
783218822Sdim	unused entries.  Don't clear plt.plist in loop.
784218822Sdim
785218822Sdim2007-03-28  Richard Sandiford  <richard@codesourcery.com>
786218822Sdim
787218822Sdim	* elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
788218822Sdim	* elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
789218822Sdim	Merge into...
790218822Sdim	(sparc_elf_append_rela): ...this new function.
791218822Sdim	(SPARC_ELF_APPEND_RELA): Delete.
792218822Sdim	(_bfd_sparc_elf_link_hash_table_create): Don't initialize
793218822Sdim	the deleted append_rela field.
794218822Sdim	(_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
795218822Sdim	instead of SPARC_ELF_APPEND_RELA.
796218822Sdim	(_bfd_sparc_elf_finish_dynamic_symbol): Likewise.  Use the
797218822Sdim	elf_size_info structure to find the size of a RELA entry and
798218822Sdim	the associated swap-out function.
799218822Sdim	(sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
800218822Sdim	(sparc_finish_dyn): ...this new function.
801218822Sdim	(_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
802218822Sdim
803218822Sdim2007-03-28  Richard Sandiford  <richard@codesourcery.com>
804218822Sdim	    Phil Edwards  <phil@codesourcery.com>
805218822Sdim
806218822Sdim	* doc/bfd.texinfo: Put the contents after the title page rather
807218822Sdim	than at the end of the document.
808218822Sdim
809218822Sdim2007-03-27  Andreas Schwab  <schwab@suse.de>
810218822Sdim
811218822Sdim	* elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
812218822Sdim
813218822Sdim2007-03-26  H.J. Lu  <hongjiu.lu@intel.com>
814218822Sdim
815218822Sdim	* configure: Regenerated.
816218822Sdim
817218822Sdim2007-03-26  Alan Modra  <amodra@bigpond.net.au>
818218822Sdim
819218822Sdim	* elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
820218822Sdim	(allocate_spuear_stubs): New function.
821218822Sdim	(spu_elf_size_stubs): Call allocate_spuear_stubs.
822218822Sdim
823218822Sdim2007-03-26  Alan Modra  <amodra@bigpond.net.au>
824218822Sdim
825218822Sdim	* aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
826218822Sdim	* aout-arm.c (MY_bfd_reloc_name_lookup): Define.
827218822Sdim	(MY (bfd_reloc_name_lookup)): New function.
828218822Sdim	* aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
829218822Sdim	* aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
830218822Sdim	(MY_bfd_reloc_name_lookup): Define.
831218822Sdim	* aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
832218822Sdim	(MY_bfd_reloc_name_lookup): Define.
833218822Sdim	* aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
834218822Sdim	(NAME (aout, reloc_name_lookup)): New function.
835218822Sdim	* bout.c (b_out_bfd_reloc_name_lookup): New function.
836218822Sdim	* coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
837218822Sdim	(_bfd_ecoff_bfd_reloc_name_lookup): Define.
838218822Sdim	* coff-arm.c (coff_arm_reloc_name_lookup): New function.
839218822Sdim	(coff_bfd_reloc_name_lookup): Define.
840218822Sdim	* coff-i386.c (coff_bfd_reloc_name_lookup): Define.
841218822Sdim	(coff_i386_reloc_name_lookup): New function.
842218822Sdim	* coff-i860.c (coff_i860_reloc_name_lookup): New function.
843218822Sdim	(coff_bfd_reloc_name_lookup): Define.
844218822Sdim	* coff-i960.c (coff_i960_reloc_name_lookup): New function.
845218822Sdim	(coff_bfd_reloc_name_lookup): Define.
846218822Sdim	* coff-m68k.c (m68k_reloc_name_lookup): New function.
847218822Sdim	(coff_bfd_reloc_name_lookup): Define.
848218822Sdim	* coff-maxq.c (maxq_reloc_name_lookup): New function.
849218822Sdim	(coff_bfd_reloc_name_lookup): Define.
850218822Sdim	* coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
851218822Sdim	(coff_bfd_reloc_name_lookup): Define.
852218822Sdim	* coff-mips.c (mips_bfd_reloc_name_lookup): New function.
853218822Sdim	(_bfd_ecoff_bfd_reloc_name_lookup): Define.
854218822Sdim	* coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
855218822Sdim	(coff_bfd_reloc_name_lookup): Define.
856218822Sdim	* coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
857218822Sdim	(_bfd_xcoff_reloc_name_lookup): New function.
858218822Sdim	(rs6000coff_vec, pmac_xcoff_vec): Init new field.
859218822Sdim	* coff-sh.c (coff_bfd_reloc_name_lookup): Define.
860218822Sdim	(sh_coff_reloc_name_lookup): New function.
861218822Sdim	* coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
862218822Sdim	(coff_bfd_reloc_name_lookup): Define.
863218822Sdim	* coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
864218822Sdim	(tic30_coff_reloc_name_lookup): New function.
865218822Sdim	* coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
866218822Sdim	(tic4x_coff_reloc_name_lookup): New function.
867218822Sdim	* coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
868218822Sdim	(tic54x_coff_reloc_name_lookup): New function.
869218822Sdim	* coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
870218822Sdim	(coff_amd64_reloc_name_lookup): New function.
871218822Sdim	* coff-z80.c (coff_z80_reloc_name_lookup): New function.
872218822Sdim	(coff_bfd_reloc_name_lookup): Define.
873218822Sdim	* coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
874218822Sdim	(coff_bfd_reloc_name_lookup): Define.
875218822Sdim	* coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
876218822Sdim	(xcoff64_reloc_name_lookup): New function.
877218822Sdim	(rs6000coff64_vec, aix5coff64_vec): Init new field.
878218822Sdim	* coffcode.h (coff_bfd_reloc_name_lookup): Define.
879218822Sdim	* elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
880218822Sdim	* elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
881218822Sdim	* elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
882218822Sdim	* elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
883218822Sdim	* elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
884218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
885218822Sdim	* elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
886218822Sdim	* elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
887218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
888218822Sdim	* elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
889218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
890218822Sdim	* elf32-cris.c (cris_reloc_name_lookup): New function.
891218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
892218822Sdim	* elf32-crx.c (elf_crx_reloc_name_lookup): New function.
893218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
894218822Sdim	* elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
895218822Sdim	* elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
896218822Sdim	* elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
897218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
898218822Sdim	* elf32-fr30.c (fr30_reloc_name_lookup): New function.
899218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
900218822Sdim	* elf32-frv.c (frv_reloc_name_lookup): New function.
901218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
902218822Sdim	* elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
903218822Sdim	* elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
904218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
905218822Sdim	* elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
906218822Sdim	* elf32-i370.c (i370_elf_reloc_name_lookup): New function.
907218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
908218822Sdim	* elf32-i386.c (elf_i386_reloc_name_lookup): New function.
909218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
910218822Sdim	* elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
911218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
912218822Sdim	* elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
913218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
914218822Sdim	* elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
915218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
916218822Sdim	* elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
917218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
918218822Sdim	* elf32-m32c.c (m32c_reloc_name_lookup): New function.
919218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
920218822Sdim	* elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
921218822Sdim	* elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
922218822Sdim	* elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
923218822Sdim	* elf32-m68k.c (reloc_name_lookup): New function.
924218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
925218822Sdim	* elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
926218822Sdim	* elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
927218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
928218822Sdim	* elf32-mep.c (mep_reloc_name_lookup): New function.
929218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
930218822Sdim	* elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
931218822Sdim	(mips_vxworks_bfd_reloc_name_lookup): Likewise.
932218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
933218822Sdim	* elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
934218822Sdim	* elf32-mt.c (mt_reloc_name_lookup): New function.
935218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
936218822Sdim	* elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
937218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
938218822Sdim	* elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
939218822Sdim	* elf32-pj.c (pj_elf_reloc_name_lookup): New function.
940218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
941218822Sdim	* elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
942218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
943218822Sdim	* elf32-s390.c (elf_s390_reloc_name_lookup): New function.
944218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
945218822Sdim	* elf32-score.c (elf32_score_reloc_name_lookup): New function.
946218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
947218822Sdim	* elf32-sh.c (sh_elf_reloc_name_lookup): New function.
948218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
949218822Sdim	* elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
950218822Sdim	* elf32-spu.c (spu_elf_reloc_name_lookup): New function.
951218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
952218822Sdim	* elf32-v850.c (v850_elf_reloc_name_lookup): New function.
953218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
954218822Sdim	* elf32-vax.c (reloc_name_lookup): New function.
955218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
956218822Sdim	* elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
957218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
958218822Sdim	* elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
959218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
960218822Sdim	* elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
961218822Sdim	(bfd_elf32_bfd_reloc_name_lookup): Define.
962218822Sdim	* elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
963218822Sdim	(bfd_elf64_bfd_reloc_name_lookup): Define.
964218822Sdim	* elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
965218822Sdim	* elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
966218822Sdim	* elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
967218822Sdim	* elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
968218822Sdim	* elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
969218822Sdim	(bfd_elf64_bfd_reloc_name_lookup): Define.
970218822Sdim	* elf64-s390.c (elf_s390_reloc_name_lookup): New function.
971218822Sdim	(bfd_elf64_bfd_reloc_name_lookup): Define.
972218822Sdim	* elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
973218822Sdim	(bfd_elf64_bfd_reloc_name_lookup): Define.
974218822Sdim	* elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
975218822Sdim	* elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
976218822Sdim	(bfd_elf64_bfd_reloc_name_lookup): Define.
977218822Sdim	* elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
978218822Sdim	* elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
979218822Sdim	(bfd_elfNN_bfd_reloc_name_lookup): Define.
980218822Sdim	* elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
981218822Sdim	* elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
982218822Sdim	* i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
983218822Sdim	* i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
984218822Sdim	* ieee.c (ieee_bfd_reloc_name_lookup): Define.
985218822Sdim	* libaout.h (NAME (aout, reloc_name_lookup)): Declare.
986218822Sdim	* libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
987218822Sdim	* mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
988218822Sdim	(MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
989218822Sdim	(MY(reloc_name_lookup)): New function.
990218822Sdim	* nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
991218822Sdim	* oasys.c (oasys_bfd_reloc_name_lookup): Define.
992218822Sdim	* pdp11.c (NAME (aout, reloc_name_lookup)): New function.
993218822Sdim	* pe-mips.c (coff_mips_reloc_name_lookup): New function.
994218822Sdim	(coff_bfd_reloc_name_lookup): Define.
995218822Sdim	* reloc.c (bfd_reloc_name_lookup): New function.
996218822Sdim	* riscix.c (riscix_reloc_name_lookup): New function.
997218822Sdim	(MY_bfd_reloc_name_lookup): Define.
998218822Sdim	* som.c (som_bfd_reloc_name_lookup): New function.
999218822Sdim	* targets.c (struct bfd_target): Add reloc_name_lookup.
1000218822Sdim	(BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
1001218822Sdim	* versados.c (versados_bfd_reloc_name_lookup): Define.
1002218822Sdim	* vms.c (vms_bfd_reloc_name_lookup): New function.
1003218822Sdim	* bfd-in2.h: Regenerate.
1004218822Sdim	* libbfd.h: Regenerate.
1005218822Sdim
1006218822Sdim2007-03-26  Thiemo Seufer  <ths@mips.com>
1007218822Sdim
1008218822Sdim	PR ld/4208
1009218822Sdim	* elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
1010218822Sdim	matching relocation is found.
1011218822Sdim	(_bfd_mips_elf_relocate_section): Only warn about missing relocations.
1012218822Sdim
1013218822Sdim2007-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1014218822Sdim
1015218822Sdim	* configure: Regenerated.
1016218822Sdim
1017218822Sdim2007-03-23  Joseph Myers  <joseph@codesourcery.com>
1018218822Sdim
1019218822Sdim	* configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
1020130561Sobrien	* configure: Regenerate.
1021104834Sobrien
1022218822Sdim2007-03-23  Alan Modra  <amodra@bigpond.net.au>
1023104834Sobrien
1024218822Sdim	* elf32-spu.c (spu_stub_name): Don't put input section in stub name.
1025218822Sdim	Remove input_sec param.  Adjust all calls.
1026218822Sdim	(write_one_stub): Adjust stub symbol.
1027218822Sdim	(needs_ovl_stub): New function, extracted from..
1028218822Sdim	(spu_elf_size_stubs): ..here.
1029218822Sdim	(spu_elf_relocate_section): Use needs_ovl_stub.
1030104834Sobrien
1031218822Sdim2007-03-22  Joseph Myers  <joseph@codesourcery.com>
1032104834Sobrien
1033218822Sdim	* Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
1034218822Sdim	if nonempty.
1035218822Sdim	* configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
1036218822Sdim	* Makefile.in, configure, doc/Makefile.in: Regenerate.
1037104834Sobrien
1038218822Sdim2007-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1039104834Sobrien
1040218822Sdim	PR ld/4210
1041218822Sdim	* peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
1042218822Sdim	address and virtual size of the last section for the image
1043218822Sdim	size.
1044218822Sdim
1045218822Sdim2007-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1046218822Sdim
1047218822Sdim	PR ld/4007
1048218822Sdim	* elf.c (assign_file_positions_for_load_sections): Check if
1049218822Sdim	all sections are in the segment.
1050218822Sdim
1051218822Sdim2007-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1052218822Sdim
1053218822Sdim	PR ld/4208
1054218822Sdim	* elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
1055218822Sdim	matching LO16 relocation for HI16 relocation.
1056218822Sdim
1057218822Sdim2007-03-20  Paul Brook  <paul@codesourcery.com>
1058218822Sdim
1059218822Sdim	* bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
1060104834Sobrien	* bfd-in2.h: Regenerate.
1061218822Sdim	* elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
1062218822Sdim	(record_arm_to_thumb_glue): Use globals->pic_veneer.
1063218822Sdim	(elf32_arm_create_thumb_stub): Ditto.
1064218822Sdim	(bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
1065104834Sobrien
1066218822Sdim2007-03-18  Mark Shinwell  <shinwell@codesourcery.com>
106794536Sobrien
1068218822Sdim	* bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
1069218822Sdim	argument and extra last argument.
1070104834Sobrien	* bfd-in2.h: Regenerate.
1071218822Sdim	* elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
1072218822Sdim	member.
1073218822Sdim	(bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
1074218822Sdim	extra last argument.  Set no_enum_size_warning appropriately.
1075218822Sdim	(elf32_arm_merge_eabi_attributes): Improve enum sizes
1076218822Sdim	diagnostic, suppressing it when no_enum_size_warning dictates.
107794536Sobrien
1078218822Sdim2007-03-20  Nick Clifton  <nickc@redhat.com>
1079104834Sobrien
1080218822Sdim	PR binutils/3535
1081218822Sdim	* elf.c (copy_private_bfd_data): Widen the scope of Solaris
1082218822Sdim	specific conditions that need the program headers to be
1083218822Sdim	rewritten.
108494536Sobrien
1085218822Sdim2007-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1086104834Sobrien
1087218822Sdim	* peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
1088218822Sdim	MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
1089218822Sdim	SizeOfInitializedData, SizeOfUninitializedData,
1090218822Sdim	AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
1091218822Sdim	extra PE a.out header.
1092218822Sdim	(IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
1093218822Sdim	(IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
1094218822Sdim	defined.
1095218822Sdim	(IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
1096218822Sdim	defined.
1097218822Sdim	(_bfd_XX_print_private_bfd_data_common): Also print Magic,
1098218822Sdim	MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
1099218822Sdim	SizeOfInitializedData, SizeOfUninitializedData,
1100218822Sdim	AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
1101218822Sdim	extra PE a.out header.
1102104834Sobrien
1103218822Sdim2007-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1104104834Sobrien
1105218822Sdim	* targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
1106218822Sdim	only if BFD64 is defined.
1107104834Sobrien
1108218822Sdim2007-03-17  Alan Modra  <amodra@bigpond.net.au>
1109104834Sobrien
1110218822Sdim	* elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
1111218822Sdim	on setjmp calls.
111294536Sobrien
1113218822Sdim2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
111492828Sobrien
1115218822Sdim	* doc/Makefile.in: Regenerated.
111692828Sobrien
1117218822Sdim2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
111892828Sobrien
1119218822Sdim	* Makefile.am (bfdver.h): Substitute report_bugs_to.  Also
1120218822Sdim	create doc/bfdver.texi.
1121218822Sdim	* Makefile.in: Regenerated.
1122104834Sobrien
1123218822Sdim	* configure.in (--with-bugurl): New option.
1124218822Sdim	* configure: Regenerated.
112592828Sobrien
1126218822Sdim	* version.h (REPORT_BUGS_TO): New.
112792828Sobrien
1128218822Sdim2007-03-13  H.J. Lu  <hongjiu.lu@intel.com>
112992828Sobrien
1130218822Sdim	PR binutils/3826
1131218822Sdim	* elf-bfd.h (elf_backend_data): Add elf_osabi.
1132218822Sdim	(_bfd_elf_set_osabi): New.
1133104834Sobrien
1134218822Sdim	* elf.c (_bfd_elf_set_osabi): New.
1135104834Sobrien
1136218822Sdim	* elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
1137218822Sdim	(elf_backend_post_process_headers): Defined with
1138218822Sdim	_bfd_elf_set_osabi.
1139218822Sdim	(ELF_OSABI): Properly defined for each target.
1140104834Sobrien
1141218822Sdim	* elf32-i370.c (i370_elf_post_process_headers): Removed.
1142218822Sdim	(ELF_OSABI): Defined.
1143218822Sdim	(elf_backend_post_process_headers): Defined with
1144218822Sdim	_bfd_elf_set_osabi.
1145104834Sobrien
1146218822Sdim	* elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
1147218822Sdim	freebsd.
1148218822Sdim	(elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
114991041Sobrien
1150218822Sdim	* elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
1151218822Sdim	(ELF_OSABI): Defined.
1152218822Sdim	(elf_backend_post_process_headers): Defined with
1153218822Sdim	_bfd_elf_set_osabi.
115491041Sobrien
1155218822Sdim	* elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
1156218822Sdim	freebsd.
1157218822Sdim	(elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
1158218822Sdim	elf_osabi.
1159104834Sobrien
1160218822Sdim	* elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
1161218822Sdim	with elf_osabi.
1162218822Sdim	(ELF_OSABI): Properly defined for each target.
1163218822Sdim	(elf_backend_post_process_headers): Defined with
1164218822Sdim	_bfd_elf_set_osabi for Linux.
1165104834Sobrien
1166218822Sdim	* elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
1167218822Sdim	(ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
1168218822Sdim	(elf_backend_post_process_headers): Defined with
1169218822Sdim	_bfd_elf_set_osabi.
1170104834Sobrien
1171218822Sdim	* elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
1172218822Sdim	(ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
1173218822Sdim	(elf_backend_post_process_headers): Defined with
1174218822Sdim	_bfd_elf_set_osabi.
1175104834Sobrien
1176218822Sdim	* elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
1177218822Sdim	with any ELF target of the compatible machine for which we do not
1178218822Sdim	have a specific backend.
117991041Sobrien
1180218822Sdim	* elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
1181218822Sdim	with elf_osabi.
118291041Sobrien
1183218822Sdim	* elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
1184218822Sdim	(elfNN_bed): Initialize elf_osabi with ELF_OSABI.
118591041Sobrien
1186218822Sdim2007-03-08  Alan Modra  <amodra@bigpond.net.au>
118791041Sobrien
1188218822Sdim	* elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
1189218822Sdim	V850_OTHER_* bits.
1190104834Sobrien
1191218822Sdim2007-03-08  Alan Modra  <amodra@bigpond.net.au>
1192104834Sobrien
1193218822Sdim	* Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
1194218822Sdim	(BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
1195218822Sdim	Run "make dep-am".
1196218822Sdim	* Makefile.in: Regenerate.
1197218822Sdim	* po/SRC-POTFILES.in: Regenerate.
1198104834Sobrien
1199218822Sdim2007-03-07  H.J. Lu  <hongjiu.lu@intel.com>
1200104834Sobrien
1201218822Sdim	* config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
1202218822Sdim	(x86_64-*-kfreebsd*-gnu): Likewise.
1203218822Sdim	(x86_64-*-netbsd*): Likewise.
1204218822Sdim	(x86_64-*-openbsd*): Likewise.
1205218822Sdim	(x86_64-*-linux-*): Likewise.
120691041Sobrien
1207218822Sdim	* configure.in: Support bfd_efi_app_x86_64_vec.
1208218822Sdim	* configure: Regenerated.
120991041Sobrien
1210218822Sdim	* efi-app-x86_64.c: New file.
121191041Sobrien
1212218822Sdim	* targets.c (bfd_efi_app_x86_64_vec): New.
1213218822Sdim	(_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
121491041Sobrien
1215218822Sdim2007-03-07  Kai Tietz   <kai.tietz@onevision.com>
1216104834Sobrien
1217218822Sdim	* reloc.c (bfd_generic_get_relocated_section_contents): Remove
1218218822Sdim	const for type reloc_howto_type.
1219104834Sobrien
1220218822Sdim2007-03-07  Alan Modra  <amodra@bigpond.net.au>
1221104834Sobrien
1222218822Sdim	PR 3958
1223218822Sdim	* elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
1224218822Sdim	(elf_discarded_section): Move..
1225218822Sdim	* bfd-in.h: ..to here.
1226218822Sdim	* bfd-in2.h: Regenerate.
1227218822Sdim	* elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
1228218822Sdim	from discarded sections before relocate_section has done its job.
1229218822Sdim	* reloc.c (bfd_generic_get_relocated_section_contents): Handle
1230218822Sdim	relocs against symbols from discarded sections.
1231218822Sdim	* elf-hppa.h (elf_hppa_howto_table): Set size.  Set dst_mask on
1232218822Sdim	SECREL32.
1233218822Sdim	(elf_hppa_relocate_section): Handle relocatable link after setting
1234218822Sdim	sec, sym, h etc. for final link.  Squash error messages for
1235218822Sdim	relocatable link.  Clear section contents for relocs against
1236218822Sdim	symbols in discarded sections, and zero reloc.  Remove existing
1237218822Sdim	zero r_symndx code.
1238218822Sdim	* elf-m10200.c (mn10200_elf_relocate_section): Likewise.
1239218822Sdim	* elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1240218822Sdim	* elf32-arm.c (elf32_arm_relocate_section): Likewise.
1241218822Sdim	* elf32-avr.c (elf32_avr_relocate_section): Likewise.
1242218822Sdim	* elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
1243218822Sdim	(bfin_relocate_section): Likewise.
1244218822Sdim	* elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
1245218822Sdim	* elf32-cris.c (cris_elf_relocate_section): Likewise.
1246218822Sdim	* elf32-crx.c (elf32_crx_relocate_section): Likewise.
1247218822Sdim	* elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1248218822Sdim	* elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1249218822Sdim	* elf32-frv.c (elf32_frv_relocate_section): Likewise.
1250218822Sdim	* elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1251218822Sdim	* elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1252218822Sdim	* elf32-i370.c (i370_elf_relocate_section): Likewise.
1253218822Sdim	* elf32-i386.c (elf_i386_relocate_section): Likewise.
1254218822Sdim	* elf32-i860.c (elf32_i860_relocate_section): Likewise.
1255218822Sdim	* elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1256218822Sdim	* elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1257218822Sdim	* elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1258218822Sdim	* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1259218822Sdim	* elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1260218822Sdim	* elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1261218822Sdim	* elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1262218822Sdim	* elf32-mep.c (mep_elf_relocate_section): Likewise.
1263218822Sdim	* elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1264218822Sdim	* elf32-mt.c (mt_elf_relocate_section): Likewise.
1265218822Sdim	* elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1266218822Sdim	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1267218822Sdim	* elf32-s390.c (elf_s390_relocate_section): Likewise.
1268218822Sdim	* elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
1269218822Sdim	* elf32-sh.c (sh_elf_relocate_section): Likewise.
1270218822Sdim	* elf32-spu.c (spu_elf_relocate_section): Likewise.
1271218822Sdim	* elf32-v850.c (v850_elf_relocate_section): Likewise.
1272218822Sdim	* elf32-vax.c (elf_vax_relocate_section): Likewise.
1273218822Sdim	* elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1274218822Sdim	* elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1275218822Sdim	* elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1276218822Sdim	* elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1277218822Sdim	(elf64_alpha_relocate_section): Likewise.
1278218822Sdim	* elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1279218822Sdim	* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1280218822Sdim	* elf64-s390.c (elf_s390_relocate_section): Likewise.
1281218822Sdim	* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1282218822Sdim	* elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1283218822Sdim	* elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1284218822Sdim	* elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1285218822Sdim	* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1286104834Sobrien
1287218822Sdim	* elf32-arm.c (elf32_arm_relocate_section): Always adjust section
1288218822Sdim	symbols for relocatable link.  Don't use always-zero st_value.
1289218822Sdim	(elf_backend_rela_normal): Don't define.
1290218822Sdim	* elf32-bfin.c (bfinfdpic_relocate_section): Use
1291218822Sdim	RELOC_FOR_GLOBAL_SYMBOL.
1292218822Sdim	* elf32-frv.c (elf32_frv_relocate_section): Likewise.
1293218822Sdim	* elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
1294218822Sdim	section symbol adjustments with same for relocatable link.
1295218822Sdim	* elf32-i386.c (elf_i386_relocate_section): Likewise.
1296218822Sdim	* elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
1297218822Sdim	(elf32_m68hc11_check_relocs): ..to here.
1298218822Sdim	* elf32-score.c (score_elf_final_link_relocate): Remove zero
1299218822Sdim	r_symndx code.
1300218822Sdim	* elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
1301104834Sobrien
1302218822Sdim2007-03-07  Alan Modra  <amodra@bigpond.net.au>
130391041Sobrien
1304218822Sdim	PR 4144
1305218822Sdim	* elf.c (assign_file_positions_for_load_sections): Don't
1306218822Sdim	adjust p_memsz for !SEC_LOAD section vma modulo page size.
1307218822Sdim	Instead, use the same lma based adjustment for SEC_LOAD
1308218822Sdim	sections.
130991041Sobrien
1310218822Sdim2007-03-01  Bob Wilson  <bob.wilson@acm.org>
1311218822Sdim
1312218822Sdim	* elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
1313218822Sdim	(find_relaxable_sections): Do not increment src_count for unknown
1314218822Sdim	opcodes.  Decode only once instead of calling is_l32r_relocation.
1315218822Sdim	(compute_text_actions): Remove unused no_insn_move flag.  Assert that
1316218822Sdim	src_next matches src_count in relax_info.
1317218822Sdim
1318218822Sdim2007-03-01  Joseph Myers  <joseph@codesourcery.com>
1319218822Sdim
1320218822Sdim	* Makefile.am (bfdver.h): Use "." not " " between version number
1321218822Sdim	and date.
1322218822Sdim	* Makefile.in: Regenerate.
1323218822Sdim	* configure.in (PKGVERSION): Default to "(GNU Binutils) ".
1324104834Sobrien	* configure: Regenerate.
1325104834Sobrien
1326218822Sdim2007-02-28  Nathan Sidwell  <nathan@codesourcery.com>
132791041Sobrien
1328218822Sdim	* config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
132991041Sobrien
1330218822Sdim2007-02-27  Alan Modra  <amodra@bigpond.net.au>
1331104834Sobrien
1332218822Sdim	* elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
1333218822Sdim	* elf32-spu.c (ovl_mgr_pread): Add const to casts.
1334104834Sobrien
1335218822Sdim2007-02-23  Carlos O'Donell  <carlos@codesourcery.com>
133691041Sobrien
1337218822Sdim	* dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
1338218822Sdim	DWARF even with 64-bit addresses.
1339218822Sdim	(_bfd_dwarf2_find_nearest_line): Likewise.
134091041Sobrien
1341218822Sdim2007-02-23  Nick Clifton  <nickc@redhat.com>
134291041Sobrien
1343218822Sdim	PR binutils/3535
1344218822Sdim	* elf.c (copy_private_bfd_data): Always rewrite the program
1345218822Sdim	headers when a Solaris interpreter segment is involved.
134691041Sobrien
1347218822Sdim2007-02-22  Paul Brook  <paul@codesourcery.com>
134891041Sobrien
1349218822Sdim	* elflink.c (gc_mark_hook_fn): Remove.
1350218822Sdim	(_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
1351218822Sdim	(bfd_elf_gc_sections): Ditto.  Call gc_mark_extra_sections.
1352218822Sdim	* elf-bfd.h (elf_gc_mark_hook_fn): Define.
1353218822Sdim	(elf_backend_data): Add gc_mark_extra_sections.
1354218822Sdim	* elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
1355218822Sdim	definition.
1356218822Sdim	(elfNN_bed): Add elf_backend_gc_mark_extra_sections.
1357218822Sdim	* elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
1358218822Sdim	(elf_backend_gc_mark_extra_sections): Define.
135991041Sobrien
1360218822Sdim2007-02-21  Nick Clifton  <nickc@redhat.com>
136191041Sobrien
1362218822Sdim	* elf.c (_bfd_elf_map_sections_to_segments): If the
1363218822Sdim	override_segment_assignment callback is defined then call it.
136491041Sobrien
1365218822Sdim2007-02-21  Alan Modra  <amodra@bigpond.net.au>
136691041Sobrien
1367218822Sdim	* elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
136891041Sobrien
1369218822Sdim2007-02-19  Thiemo Seufer  <ths@mips.com>
137091041Sobrien
1371218822Sdim	* elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
1372218822Sdim	translation marker from untranslatable strings.
137391041Sobrien
1374218822Sdim2007-02-19  Alan Modra  <amodra@bigpond.net.au>
137591041Sobrien
1376218822Sdim	* elf-bfd.h (struct elf_backend_data): Add default_execstack.
1377218822Sdim	* elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
1378218822Sdim	* elfxx-target.h (elf_backend_default_execstack): Define to 1.
1379218822Sdim	(elfNN_bed): Init new field.
1380218822Sdim	* elf64-ppc.c (elf_backend_default_execstack): Define to 0.
138191041Sobrien
1382218822Sdim2007-02-17  Mark Mitchell  <mark@codesourcery.com>
1383218822Sdim            Nathan Sidwell  <nathan@codesourcery.com>
1384218822Sdim            Vladimir Prus  <vladimir@codesourcery.com
1385218822Sdim            Joseph Myers  <joseph@codesourcery.com>
138691041Sobrien
1387218822Sdim	* configure.in (--with-pkgversion): New option.
1388218822Sdim	* configure: Regenerate.
1389218822Sdim	* Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
1390218822Sdim	* Makefile.in: Regenerate.
1391218822Sdim	* version.h (BFD_VERSION_STRING): Define using
1392218822Sdim	@bfd_version_package@.
139391041Sobrien
1394218822Sdim2007-02-16  Carlos O'Donell  <carlos@codesourcery.com>
139591041Sobrien
1396218822Sdim	* elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
1397218822Sdim	Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
1398218822Sdim	and EF_MIPS_UCODE.
139991041Sobrien
1400218822Sdim2007-02-15  Alan Modra  <amodra@bigpond.net.au>
140191041Sobrien
1402218822Sdim	* libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
1403218822Sdim	declare.
1404218822Sdim	(_bfd_norelocs_canonicalize_reloc): Likewise.
1405218822Sdim	* libbfd.h: Regenerate.
1406218822Sdim	* libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
1407218822Sdim	(_bfd_norelocs_canonicalize_reloc): Likewise.
1408218822Sdim	* binary.c (binary_bfd_reloc_type_lookup): Don't define.
1409218822Sdim	(binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
1410218822Sdim	(binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
1411218822Sdim	* ihex.c: Similarly.
1412218822Sdim	* mach-o-target.c: Similarly.
1413218822Sdim	* mach-o.c: Similarly.
1414218822Sdim	* mmo.c: Similarly.
1415218822Sdim	* pef.c: Similarly.
1416218822Sdim	* ppcboot.c: Similarly.
1417218822Sdim	* srec.c: Similarly.
1418218822Sdim	* xsym.c: Similarly.
141991041Sobrien
1420218822Sdim2007-02-14  H.J. Lu  <hongjiu.lu@intel.com>
142191041Sobrien
1422218822Sdim	PR ld/3953
1423218822Sdim	* elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
1424218822Sdim	when adding default symbol.
1425218822Sdim
1426218822Sdim2007-02-13  Alan Modra  <amodra@bigpond.net.au>
1427218822Sdim
1428218822Sdim	* elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
1429218822Sdim	for branch lookup table.
1430218822Sdim
1431218822Sdim2007-02-12  Alan Modra  <amodra@bigpond.net.au>
1432218822Sdim
1433218822Sdim	* elf64-ppc.c (create_linkage_sections): Don't create
1434218822Sdim	.rela.rodata.brlt for --emit-relocs.
1435218822Sdim	(ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
1436218822Sdim	(ppc_size_one_stub): Count them.  Simplify test of stub type
1437218822Sdim	when counting stub relocs.  Set SEC_RELOC too.
1438218822Sdim	(ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
1439218822Sdim	(ppc64_elf_finish_dynamic_sections): Output brlt relocs.
1440218822Sdim
1441218822Sdim2007-02-12  Alan Modra  <amodra@bigpond.net.au>
1442218822Sdim
1443218822Sdim	* elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
1444218822Sdim	with a zero symbol index.
1445218822Sdim
1446218822Sdim2007-02-12  Alan Modra  <amodra@bigpond.net.au>
1447218822Sdim
1448218822Sdim	* elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
1449218822Sdim
1450218822Sdim2007-02-05  Dave Brolley  <brolley@redhat.com>
1451218822Sdim            Stan Cox  <scox@redhat.com>
1452218822Sdim
1453218822Sdim	PR ld/3972
1454218822Sdim	* elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
1455218822Sdim
1456218822Sdim2007-02-05  Dave Brolley  <brolley@redhat.com>
1457218822Sdim	    Richard Sandiford  <rsandifo@redhat.com>
1458218822Sdim	    Stan Cox  <scox@redhat.com>
1459218822Sdim	    Nick Clifton  <nickc@redhat.com>
1460218822Sdim	    DJ Delorie  <dj@redhat.com>
1461218822Sdim	    Frank Ch. Eigler  <fche@redhat.com>
1462218822Sdim	    Ben Elliston  <bje@redhat.com>
1463218822Sdim	    Richard Henderson  <rth@redhat.com>
1464218822Sdim
1465218822Sdim	* Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
1466218822Sdim	(ALL_MACHINES_CFILES): Add CPU_MEP.c.
1467218822Sdim	(BFD32_BACKENDS): Add elf32-mep.lo.
1468218822Sdim	(BFD32_BACKENDS_CFILES): Add elf32-mep.c.
1469218822Sdim	(cpu-mep.lo,elf32-mep.lo): New targets.
1470218822Sdim	* archures.c (bfd_arch_mep): New enumerator.
1471218822Sdim	(bfd_mach_mep, bfd_mach_mep_h1): New macros.
1472218822Sdim	(bfd_mep_arch): New external variable.
1473218822Sdim	(bfd_archures_list): Add bfd_mep_arch.
1474218822Sdim	* config.bfd: Support mep-*-elf.
1475218822Sdim	* configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
1476218822Sdim	* reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
1477218822Sdim	* targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
1478218822Sdim	declarations.
1479218822Sdim	(_bfd_target_vector): Add bfd_elf32_mep_vec and
1480218822Sdim	bfd_elf32_mep_little_vec.
1481218822Sdim	* mep-relocs.pl: New file.
1482218822Sdim	* cpu-mep.c: New file.
1483218822Sdim	* elf32-mep.c: New file.
1484218822Sdim	* bfd-in2.h: Regenerate.
1485218822Sdim	* po/POTFILES.in: Regenerate.
1486218822Sdim	* libbfd.h: Regenerate.
1487218822Sdim	* Makefile.in: Regenerate.
1488218822Sdim	* configure: Regenerate.
1489218822Sdim
1490218822Sdim2007-02-05  Dave Brolley  <brolley@redhat.com>
1491218822Sdim
1492218822Sdim	* elflink.c (evaluate_complex_relocation_symbols): Check for
1493218822Sdim	STT_SRELC for global symbols.
1494218822Sdim	(perform_complex_relocations): Renamed to
1495218822Sdim	perform_complex_relocation and now examines only one relocation.
1496218822Sdim	(elf_link_input_bfd): Don't call perform_complex_relocations.
1497218822Sdim	* elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
1498218822Sdim	* elf32-mep.c (mep_elf_howto_table): Add R_RELC.
1499218822Sdim	(OD,OS,OU): #undefs corrected to N, S and U repectively.
1500218822Sdim	(mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
1501218822Sdim	(complex_reloc_installation_howto): Removed.
1502218822Sdim	(mep_info_to_howto_rela): Remove special case for r_type==0xff.
1503218822Sdim	(mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
1504218822Sdim
1505218822Sdim2007-02-05  Dave Brolley  <brolley@redhat.com>
1506218822Sdim	    Richard Sandiford  <rsandifo@redhat.com>
1507218822Sdim	    DJ Delorie  <dj@redhat.com>
1508218822Sdim	    Graydon Hoare  <graydon@redhat.com>
1509218822Sdim	    Nick Clifton  <nickc@cambridge.redhat.com>
1510218822Sdim	    Jeff Holcomb  <jeffh@redhat.com>
1511218822Sdim	    Frank Ch. Eigler  <fche@redhat.com>
1512218822Sdim
1513218822Sdim	* elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
1514218822Sdim	* elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
1515218822Sdim	* elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
1516218822Sdim	* elflink.c (set_symbolValue): New static function.
1517218822Sdim	(resolve_symbol): Likewise.
1518218822Sdim	(resolve_section): Likewise.
1519218822Sdim	(undefined_reference): Likewise.
1520218822Sdim	(eval_symbol): Likewise.
1521218822Sdim	(evaluate_complex_relocation_symbols): Likewise.
1522218822Sdim	(put_value): Likewise.
1523218822Sdim	(get_value): Likewise.
1524218822Sdim	(decode_complex_addend):
1525218822Sdim	(bfd_elf_perform_complex_relocation): New function.
1526218822Sdim	(elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
1527218822Sdim	* reloc.c (BFD_RELOC_RELC): New relocation number.
1528218822Sdim	* syms.c (BSF_RELC,BSF_SRELC): New macros.
1529218822Sdim
1530218822Sdim2007-02-05  Bob Wilson  <bob.wilson@acm.org>
1531218822Sdim
1532218822Sdim	* elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
1533218822Sdim	(elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
1534218822Sdim	(elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
1535218822Sdim	(elf_xtensa_allocate_got_size): Replace these with...
1536218822Sdim	(elf_xtensa_allocate_dynrelocs): ...this new function.
1537218822Sdim	(elf_xtensa_size_dynamic_sections): Use it.
1538218822Sdim
1539218822Sdim2007-02-05  Bob Wilson  <bob.wilson@acm.org>
1540218822Sdim
1541218822Sdim	* elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
1542218822Sdim	<R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
1543218822Sdim	Set src_mask to zero.
1544218822Sdim	<R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise.  Also fix dst_mask.
1545218822Sdim	<R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
1546218822Sdim
1547218822Sdim2007-02-02  Bob Wilson  <bob.wilson@acm.org>
1548218822Sdim
1549218822Sdim	* elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
1550218822Sdim	(elf_xtensa_dynamic_symbol_p): ...this.
1551218822Sdim
1552218822Sdim2007-02-02  Bob Wilson  <bob.wilson@acm.org>
1553218822Sdim
1554218822Sdim	* elf32-xtensa.c (plt_reloc_count): Move into link hash table.
1555218822Sdim	(struct elf_xtensa_link_hash_table): New.
1556218822Sdim	(elf_xtensa_hash_table): New.
1557218822Sdim	(elf_xtensa_link_hash_table_create): New.
1558218822Sdim	(elf_xtensa_check_relocs): Update plt_reloc_count references.
1559218822Sdim	Update arguments to add_extra_plt_sections.
1560218822Sdim	(elf_xtensa_create_dynamic_sections): Record new sections in the hash
1561218822Sdim	table.  Update for plt_reloc_count and add_extra_plt_sections.
1562218822Sdim	(add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
1563218822Sdim	argument with link info.  Update calls to elf_xtensa_get_plt_section
1564218822Sdim	and elf_xtensa_get_gotplt_section.
1565218822Sdim	(elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
1566218822Sdim	(elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
1567218822Sdim	(elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
1568218822Sdim	(relax_property_section): Get sections from the hash table and update
1569218822Sdim	function calls.
1570218822Sdim	(elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
1571218822Sdim	dynobj argument with link info.  Get sections for first plt chunk from
1572218822Sdim	the hash table.
1573130561Sobrien	(bfd_elf32_bfd_link_hash_table_create): Define.
157491041Sobrien
1575218822Sdim2007-02-02  Jakub Jelinek  <jakub@redhat.com>
157691041Sobrien
1577218822Sdim	* elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
1578218822Sdim	* elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
1579218822Sdim	(struct elf_symbol): Change first member into union.
1580218822Sdim	(elf_sort_elf_symbol): Compare pointers to internal syms rather than
1581218822Sdim	internal syms.  Only compare st_shndx fields.
1582218822Sdim	(elf_create_symbuf): New function.
1583218822Sdim	(bfd_elf_match_symbols_in_sections): Use it.  If symbufs are available
1584218822Sdim	for bfds, use a binary search, otherwise don't qsort symbols
1585218822Sdim	unnecessarily only to select which symbols are for the particular
1586218822Sdim	shndx.
158791041Sobrien
1588218822Sdim2007-02-01  Nick Clifton  <nickc@redhat.com>
158991041Sobrien
1590218822Sdim	PR ld/3852
1591218822Sdim	* elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
1592218822Sdim	in the elf_link_hash_table structure.
159391041Sobrien
1594218822Sdim2007-02-01  Alan Modra  <amodra@bigpond.net.au>
159591041Sobrien
1596218822Sdim	* elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
1597218822Sdim	* elfxx-target.h (elf_backend_write_core_note): Define and use.
1598218822Sdim	* elf.c (elfcore_write_prpsinfo): Call the above.  Add support for
1599218822Sdim	32-bit core note on 64-bit target.
1600218822Sdim	(elfcore_write_prstatus): Likewise.
1601218822Sdim	(elfcore_write_lwpstatus): Make note_name const.
1602218822Sdim	(elfcore_write_prfpreg): Likewise.
1603218822Sdim	(elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
1604218822Sdim	target.
1605218822Sdim	* elf32-ppc.c (ppc_elf_write_core_note): New function.
1606218822Sdim	(elf_backend_write_core_note): Define.
1607218822Sdim	* elf64-ppc.c (ppc64_elf_write_core_note): New function.
1608218822Sdim	(elf_backend_write_core_note): Define.
160991041Sobrien
1610218822Sdim2007-01-31  H.J. Lu  <hongjiu.lu@intel.com>
161191041Sobrien
1612218822Sdim	* elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
1613218822Sdim	(elf32_bed): Defined for elf32-us-cris.
161491041Sobrien
1615218822Sdim	* elf64-sh64.c (elf64_bed): Defined for Linux.
1616218822Sdim	(INCLUDED_TARGET_FILE): Removed.
161791041Sobrien
1618218822Sdim	* elfxx-target.h (elfNN_bed): Always define. Don't check
1619218822Sdim	INCLUDED_TARGET_FILE.
162091041Sobrien
1621218822Sdim2007-01-31  DJ Delorie  <dj@redhat.com>
1622218822Sdim
1623218822Sdim	* elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
1624218822Sdim	message for dangerous relocs, special case the common user error.
1625218822Sdim
1626218822Sdim2007-01-30  H.J. Lu  <hongjiu.lu@intel.com>
1627218822Sdim
1628218822Sdim	* elf.c (copy_elf_program_header): Start from the first section
1629218822Sdim	in a segment and stop when all sections in a segment are
1630218822Sdim	accounted for.
1631218822Sdim
1632218822Sdim2007-01-29  Julian Brown  <julian@codesourcery.com>
1633218822Sdim
1634218822Sdim	* bfd-in2.h: Regenerate.
1635218822Sdim	* bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
1636218822Sdim	instruction scanning should be done.
1637218822Sdim	(bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
1638218822Sdim	(bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
1639218822Sdim	(bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
1640218822Sdim	prototype.
1641218822Sdim	* elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
1642218822Sdim	argument.
1643218822Sdim	* elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
1644218822Sdim	(VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
1645218822Sdim	(elf32_vfp11_erratum_type): New enum.
1646218822Sdim	(elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
1647218822Sdim	veneers.
1648218822Sdim	(_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
1649218822Sdim	(elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
1650218822Sdim	vfp11_fix and num_vfp11_fixes fields.
1651218822Sdim	(elf32_arm_link_hash_table_create): Initialise vfp11_fix,
1652218822Sdim	vfp11_erratum_glue_size, num_vfp11_fixes fields.
1653218822Sdim	(VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
1654218822Sdim	(bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
1655218822Sdim	glue section.
1656218822Sdim	(elf32_arm_section_map_add): Add an code/data mapping symbol entry
1657218822Sdim	to a section's map.
1658218822Sdim	(record_vfp11_erratum_veneer): Create a single veneer, and its
1659218822Sdim	associated symbols.
1660218822Sdim	(bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
1661218822Sdim	(bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
1662218822Sdim	BFDs.
1663218822Sdim	(bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
1664218822Sdim	required.
1665218822Sdim	(bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
1666218822Sdim	(bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
1667218822Sdim	(bfd_arm_vfp11_write_mask): Update write mask according to coded
1668218822Sdim	register number.
1669218822Sdim	(bfd_arm_vfp11_antidependency): New function.
1670218822Sdim	(bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
1671218822Sdim	(elf32_arm_compare_mapping): Declare.
1672218822Sdim	(bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
1673218822Sdim	BFD for potential erratum-triggering insns. Record results.
1674218822Sdim	(bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
1675218822Sdim	and branches to veneers have been placed in virtual memory after
1676218822Sdim	layout.
1677218822Sdim	(bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
1678218822Sdim	hash table.
1679218822Sdim	(elf32_arm_output_symbol_hook): Remove.
1680218822Sdim	(elf32_arm_write_section): Output veneers, and branches to veneers.
1681218822Sdim	Use maps from input sections, not output sections, for code
1682218822Sdim	byte-swapping.
1683218822Sdim	* elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
1684218822Sdim	* elf32-score.c (_bfd_score_elf_write_section): Likewise.
1685218822Sdim	* elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
1686218822Sdim	* elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
1687218822Sdim
1688218822Sdim2007-01-27  H.J. Lu  <hongjiu.lu@intel.com>
1689218822Sdim
1690218822Sdim	* elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
1691218822Sdim	(INCLUDED_TARGET_FILE): Removed.
1692218822Sdim
1693218822Sdim2007-01-27  Mike Frysinger  <vapier@gentoo.org>
1694218822Sdim
1695218822Sdim	* elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
1696218822Sdim	(INCLUDED_TARGET_FILE): Remove.
1697218822Sdim
1698218822Sdim2007-01-25  DJ Delorie  <dj@redhat.com>
1699218822Sdim
1700218822Sdim	* elf32-m32c.c (m32c_elf_howto_table): Don't complain about
1701218822Sdim	R_M32C_16 or R_M32C_24 relocs.
1702218822Sdim
1703218822Sdim2007-01-25  Nick Clifton  <nickc@redhat.com>
1704218822Sdim
1705218822Sdim	PR binutils/3874
1706218822Sdim	* elf32-avr.c (avr_link_hash_table): Check to make sure that the
1707218822Sdim	hash table was created by elf32_avr_link_hash_table_create before
1708218822Sdim	using it.
1709218822Sdim	(elf32_avr_link_hash_newfunc): New function.  Just pass the call
1710218822Sdim	through to _bfd_elf_link_hash_newfunc.
1711218822Sdim	(elf32_avr_link_hash_table_create): Use
1712218822Sdim	elf32_avr_link_hash_newfunc instead of
1713218822Sdim	_bfd_elf_link_hash_newfunc.
1714218822Sdim	(elf32_avr_relocate_section): Check for the hash table pointer
1715218822Sdim	being NULL.
1716218822Sdim	(elf32_avr_relax_section, avr_build_one_stub,
1717218822Sdim	elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
1718218822Sdim	elf32_avr_build_stubs): Likewise.
1719218822Sdim
1720218822Sdim2007-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1721218822Sdim
1722218822Sdim	PR ld/3831
1723218822Sdim	* elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
1724218822Sdim	argument, Elf_Internal_Sym *.
1725218822Sdim
1726218822Sdim	* elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
1727218822Sdim	symbol dynamic if info->dynamic_data is TRUE.
1728218822Sdim	(bfd_elf_record_link_assignment): Updated call to
1729218822Sdim	bfd_elf_record_link_assignment.
1730218822Sdim	(_bfd_elf_merge_symbol): Likewise.  Always call
1731218822Sdim	bfd_elf_link_mark_dynamic_symbol.
1732218822Sdim
1733218822Sdim2007-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1734218822Sdim
1735218822Sdim	* Makefile.am (BFD_LIBS): Removed.
1736218822Sdim	* Makefile.in: Regenerated.
1737218822Sdim
1738218822Sdim2007-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1739218822Sdim
1740218822Sdim	PR binutils/3631
1741218822Sdim	* Makefile.am (OFILES): Add @bfd64_libs@.
1742218822Sdim	(libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
1743218822Sdim	* Makefile.in: Regenerated.
1744218822Sdim
1745218822Sdim	* configure.in (bfd_libs): Replaced by ...
1746218822Sdim	(bfd64_libs): This.
1747218822Sdim	* configure: Regenerated.
1748218822Sdim
1749218822Sdim2007-01-11  Nathan Sidwell  <nathan@codesourcery.com>
1750218822Sdim
1751218822Sdim	* elf.c (assign_file_positions_for_load_sections): We can
1752218822Sdim	require fewer phdrs than expected.
1753218822Sdim
1754218822Sdim2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
1755218822Sdim
1756218822Sdim	* archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
1757218822Sdim	* bfd-in2.h: Regenerate.
1758218822Sdim	* cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
1759218822Sdim	bfd_mach_cpu32_fido.
1760218822Sdim	(m68k_arch_features): Use fido_a instead of cpu32.
1761218822Sdim	(bfd_m68k_compatible): Reject the combination of Fido and
1762218822Sdim	ColdFire.  Accept the combination of CPU32 and Fido with a
1763218822Sdim	warning.
1764218822Sdim	* elf32-m68k.c (elf32_m68k_object_p,
1765218822Sdim	elf32_m68k_merge_private_bfd_data,
1766218822Sdim	elf32_m68k_print_private_bfd_data): Treat Fido as an
1767218822Sdim	architecture by itself.
1768218822Sdim
1769218822Sdim2007-01-08  Kai Tietz	<kai.tietz@onevision.com>
1770218822Sdim
1771218822Sdim	* config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
1772218822Sdim
1773218822Sdim2007-01-05  Jakub Jelinek  <jakub@redhat.com>
1774218822Sdim
1775218822Sdim	* texhex.c (first_phase): Don't fall through into the default
1776218822Sdim	case.
1777218822Sdim	(pass_over): Replace abort () calls with return FALSE.  Fix
1778218822Sdim	buffer overflow.
1779218822Sdim
1780218822Sdim2007-01-04  Jie Zhang  <jie.zhang@analog.com>
1781218822Sdim
1782218822Sdim	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
1783218822Sdim	SEC_EXCLUDE on zero size .eh_frame.
1784218822Sdim
1785218822SdimFor older changes see ChangeLog-2006
178633965Sjdp
178733965SjdpLocal Variables:
178833965Sjdpmode: change-log
178933965Sjdpleft-margin: 8
179033965Sjdpfill-column: 74
179133965Sjdpversion-control: never
179233965SjdpEnd:
1793