daily update
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
6b33789f
NC
12007-07-19 Doug Kwan <dougkwan@google.com>
2
3 PR binutils/4797
4 * dwarf2.c: (find_line) Do not dereference functionname_ptr if
5 do_line is true.
6
13161072
BW
72007-07-18 Bob Wilson <bob.wilson@acm.org>
8
9 * elf32-xtensa.c (xtensa_callback_required_dependence): Ignore
10 non-ELF sections.
11
e29297b7
BW
122007-07-18 Bob Wilson <bob.wilson@acm.org>
13
14 * elf32-xtensa.c (elf_xtensa_finish_dynamic_sections): Get section
15 vma and size for dynamic tags from the output sections.
16
a5d1b3b5
AM
172007-07-18 Alan Modra <amodra@bigpond.net.au>
18
19 * elf-bfd.h (struct sym_sec_cache): Delete "sec". Add "shndx".
20 * elf.c (bfd_section_from_r_symndx): Don't cache bfd section of
21 symbol. Instead cache ELF section index. Remove redundant
22 checks of st_shndx.
23
d955dada
MF
242007-07-15 Mike Frysinger <vapier@gentoo.org>
25
26 * trad-core.c (NBPG): If not defined, set to getpagesize().
27
979dc3bc
RM
282007-07-13 Roland McGrath <roland@redhat.com>
29
30 * elf-bfd.h (struct elf_obj_tdata): Revert last change.
31 Add after_write_object_contents, after_write_object_contents_info.
32 * elf.c (_bfd_elf_write_object_contents): Revert last change.
33 Instead, call after_write_object_contents if set.
34
d2df793a
NC
352007-07-12 Kai Tietz <kai.tietz@onevision.com>
36
37 * bfd-in.h: (BFD_HOST_64BIT_LONG_LONG): New.
38 (BFD_HOSTPTR_T): Host pointer type for casting a
39 pointer to an integer type.
40 (bfd_hostptr_t): The typedef of BFD_HOSTPTR_T.
41 (sprintf_vma, fprintf_vma): Add support for long long prints.
42 * bfd-in2.h: Regenerate.
43 * configure.in: (BFD_HOST_64BIT_LONG_LONG): New.
44 (BFD_HOSTPTR_T): Host pointer type for casting a
45 pointer to an integer type. Default is "unsigned long".
46 (AC_CHECK_SIZEOF(void *)): New.
47 (host64): Set it if the pointer size is 8.
48 * configure: Regenerate.
49 * config.in: Add macro SIZEOF_VOID_P.
50 * coffcode.h: Replace host ptr type assuming "long" with
51 bfd_hostptr_t type.
52 * coffgen.c: Likewise.
53 * elf-eh-frame.c: Likewise.
54 * peicode.h: Likewise.
55
a3a4ddad
L
562007-07-10 H.J. Lu <hongjiu.lu@intel.com>
57
58 * Makefile.in: Regenerated.
59
329b43c4
L
602007-07-10 H.J. Lu <hongjiu.lu@intel.com>
61
62 PR binutils/4756
63 * simple.c (bfd_simple_get_relocated_section_content): Don't
64 apply relocation on executable and shared library.
65
cfd2c773
NS
662007-07-10 Nathan Sidwell <nathan@codesourcery.com>
67
68 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Don't eliminate
69 copy relocs on vxworks.
70
1489a3a0
AM
712007-07-10 Alan Modra <amodra@bigpond.net.au>
72
73 * elf32-arm.c (elf32_arm_size_info): Init checksum_contents field.
74 * elf64-alpha.c (alpha_elf_size_info): Likewise.
75 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
76 * elf64-mips.c (mips_elf64_size_info): Likewise.
77 * elf64-s390.c (s390_elf64_size_info): Likewise.
78 * elf64-sparc.c (elf64_sparc_size_info): Likewise.
79
00cbee0a
L
802007-07-09 H.J. Lu <hongjiu.lu@intel.com>
81
82 * elflink.c (bfd_elf_record_link_assignment): Handle indirect
83 symbol.
84 (_bfd_elf_merge_symbol): Properly update normal symbol when
85 overriding the versioned symbol from a dynamic library.
86
fd2f25da
RM
872007-07-09 Roland McGrath <roland@redhat.com>
88
89 * elf-bfd.h (struct elf_obj_tdata): Add members
90 emit_note_gnu_build_id and note_gnu_build_id_sec.
91 * elf.c (_bfd_id_note_section_size): New global function.
92 (read_hex, _bfd_elf_write_build_id_section): New static functions.
93 (_bfd_elf_write_object_contents): Call _bfd_elf_write_build_id_section
94 if emit_note_gnu_build_id is set.
95 * Makefile.am (elf.lo): Update dependencies.
96
97 * elf-bfd.h (struct elf_size_info): Add checksum_contents hook.
98 (bfd_elf32_checksum_contents, bfd_elf64_checksum_contents): Declare.
99 * elfcode.h (elf_checksum_contents): New macro and function.
100 (NAME(_bfd_elf,size_info)): Initialize checksum_contents hook.
101
9af2a943
AM
1022007-07-06 Michael Snyder <msnyder@access-company.com>
103
104 * elflink.c (elf_link_add_object_symbols): Return via
105 error_free_vers on "notice" failure.
106
a93221e5
L
1072007-07-04 H.J. Lu <hongjiu.lu@intel.com>
108
109 * peicode.h (pe_bfd_object_p): Don't check PE vs. EFI target
110 if arch is unknown.
111
b4928193
NC
1122007-07-04 Nick Clifton <nickc@redhat.com>
113
114 Import this patch from an internal tree:
9af2a943 115
b4928193
NC
116 2001-07-17 Richard Henderson <rth@redhat.com>
117
118 * elf32-mep.c (mep_final_link_relocate) [R_MEP_HI16S]: Correctly
119 compensate for high bit set in R_MEP_LOW16.
120
3cfad14c
JM
1212007-07-03 Joseph Myers <joseph@codesourcery.com>
122
123 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Copy type from
124 input attributes if value has been copied.
125
cd123cb7
NC
1262007-07-03 Nick Clifton <nickc@redhat.com>
127
128 * COPYING: Replace with GPLv3 text.
129 * aix386-core.c: Update copyright notice to refer to GPLv3.
130 * aix5ppc-core.c, aout0.c, aout32.c, aout64.c, aout-adobe.c,
131 aout-arm.c, aout-cris.c, aoutf1.h, aout-ns32k.c, aout-sparcle.c,
132 aout-target.h, aout-tic30.c, aoutx.h, archive64.c, archive.c,
133 archures.c, armnetbsd.c, bfd.c, bfd-in.h, bfdio.c, bfdwin.c,
134 binary.c, bout.c, cache.c, cf-i386lynx.c, cf-sparclynx.c,
135 cisco-core.c, coff64-rs6000.c, coff-alpha.c, coff-apollo.c,
136 coff-arm.c, coff-aux.c, coffcode.h, coffgen.c, coff-go32.c,
137 coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c, coff-i960.c,
138 coff-ia64.c, cofflink.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
139 coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
140 coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
141 coff-svm68k.c, coffswap.h, coff-tic30.c, coff-tic4x.c,
142 coff-tic54x.c, coff-tic80.c, coff-u68k.c, coff-w65.c,
143 coff-we32k.c, coff-x86_64.c, coff-z80.c, coff-z8k.c, corefile.c,
144 cpu-alpha.c, cpu-arc.c, cpu-arm.c, cpu-avr.c, cpu-bfin.c,
145 cpu-cr16.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
146 cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
147 cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
148 cpu-i960.c, cpu-ia64.c, cpu-ia64-opc.c, cpu-ip2k.c, cpu-iq2000.c,
149 cpu-m10200.c, cpu-m10300.c, cpu-m32c.c, cpu-m32r.c, cpu-m68hc11.c,
150 cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
151 cpu-mep.c, cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-mt.c,
152 cpu-ns32k.c, cpu-openrisc.c, cpu-or32.c, cpu-pdp11.c, cpu-pj.c,
153 cpu-powerpc.c, cpu-rs6000.c, cpu-s390.c, cpu-score.c, cpu-sh.c,
154 cpu-sparc.c, cpu-spu.c, cpu-tic30.c, cpu-tic4x.c, cpu-tic54x.c,
155 cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c, cpu-we32k.c,
156 cpu-xc16x.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z80.c, cpu-z8k.c,
157 demo64.c, doc/chew.c, dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c,
158 ecoffswap.h, efi-app-ia32.c, efi-app-ia64.c, efi-app-x86_64.c,
159 elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
160 elf32-avr.h, elf32-bfin.c, elf32.c, elf32-cr16.c, elf32-cr16c.c,
161 elf32-cris.c, elf32-crx.c, elf32-d10v.c, elf32-d30v.c,
162 elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
163 elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
164 elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
165 elf32-iq2000.c, elf32-m32c.c, elf32-m32r.c, elf32-m68hc11.c,
166 elf32-m68hc12.c, elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c,
167 elf32-m88k.c, elf32-mcore.c, elf32-mep.c, elf32-mips.c,
168 elf32-msp430.c, elf32-mt.c, elf32-openrisc.c, elf32-or32.c,
169 elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c, elf32-score.c,
170 elf32-sh64.c, elf32-sh64-com.c, elf32-sh64.h, elf32-sh.c,
171 elf32-sh-symbian.c, elf32-sparc.c, elf32-spu.c, elf32-spu.h,
172 elf32-v850.c, elf32-vax.c, elf32-xc16x.c, elf32-xstormy16.c,
173 elf32-xtensa.c, elf64-alpha.c, elf64.c, elf64-gen.c, elf64-hppa.c,
174 elf64-hppa.h, elf64-mips.c, elf64-mmix.c, elf64-ppc.c,
175 elf64-ppc.h, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
176 elf64-x86-64.c, elf-attrs.c, elf-bfd.h, elf.c, elfcode.h,
177 elfcore.h, elf-eh-frame.c, elf-hppa.h, elflink.c, elf-m10200.c,
178 elf-m10300.c, elfn32-mips.c, elf-strtab.c, elf-vxworks.c,
179 elf-vxworks.h, elfxx-ia64.c, elfxx-mips.c, elfxx-mips.h,
180 elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h, epoc-pe-arm.c,
181 epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c, genlink.h,
182 hash.c, host-aout.c, hosts/alphavms.h, hp300bsd.c, hp300hpux.c,
183 hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
184 i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
185 i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
186 libaout.h, libbfd.c, libbfd-in.h, libcoff-in.h, libecoff.h,
187 libhppa.h, libieee.h, libnlm.h, liboasys.h, libpei.h, libxcoff.h,
188 linker.c, lynx-core.c, m68k4knetbsd.c, m68klinux.c, m68knetbsd.c,
189 m88kmach3.c, m88kopenbsd.c, mach-o.c, mach-o.h, mach-o-target.c,
190 mep-relocs.pl, merge.c, mipsbsd.c, mmo.c, netbsd-core.c, netbsd.h,
191 newsos3.c, nlm32-alpha.c, nlm32.c, nlm32-i386.c, nlm32-ppc.c,
192 nlm32-sparc.c, nlm64.c, nlm.c, nlmcode.h, nlmswap.h, nlm-target.h,
193 ns32k.h, ns32knetbsd.c, oasys.c, opncls.c, osf-core.c,
194 pc532-mach.c, pdp11.c, pe-arm.c, pe-arm-wince.c, pef.c, pef.h,
195 pef-traceback.h, pe-i386.c, pei-arm.c, pei-arm-wince.c, peicode.h,
196 pei-i386.c, pei-mcore.c, pei-mips.c, pei-ppc.c, pei-sh.c,
197 pei-x86_64.c, pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c,
198 pe-x86_64.c, peXXigen.c, ppcboot.c, ptrace-core.c, reloc16.c,
199 reloc.c, riscix.c, rs6000-core.c, sco5-core.c, section.c,
200 simple.c, som.c, som.h, sparclinux.c, sparclynx.c, sparcnetbsd.c,
201 srec.c, stabs.c, stab-syms.c, stamp-h.in, sunos.c, syms.c,
202 sysdep.h, targets.c, targmatch.sed, tekhex.c, ticoff.h,
203 trad-core.c, vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c,
204 vms.c, vms-gsd.c, vms.h, vms-hdr.c, vms-misc.c, vms-tir.c,
205 xcofflink.c, xcoff-target.h, xsym.c, xsym.h, xtensa-isa.c,
206 xtensa-modules.c: Likewise.
207 * elf32-sh-relocs.h: Add copyright notice.
208 * hosts/alphalinux.h, hosts/decstation.h, hosts/delta68.h,
209 hosts/dpx2.h, hosts/hp300bsd.h, hosts/i386bsd.h,
210 hosts/i386linux.h, hosts/i386mach3.h, hosts/i386sco.h,
211 hosts/i860mach3.h, hosts/m68kaux.h, hosts/m68klinux.h,
212 hosts/m88kmach3.h, hosts/mipsbsd.h, hosts/mipsmach3.h,
213 hosts/news.h, hosts/news-mips.h, hosts/pc532mach.h,
214 hosts/riscos.h, hosts/symmetry.h, hosts/tahoe.h, hosts/vaxbsd.h,
215 hosts/vaxlinux.h, hosts/vaxult2.h, hosts/vaxult.h: Likewise.
216 * bfd-in2.h, libbfd.h, libcoff.h: Regenerate.
217
741d6ea8
JM
2182007-07-02 Joseph Myers <joseph@codesourcery.com>
219
220 * elfxx-mips.c (mips_elf_calculate_relocation): Handle
221 R_MIPS_TLS_DTPREL32 and R_MIPS_TLS_DTPREL64.
222 * elf64-mips.c (mips_elf64_howto_table_rela): Support
223 R_MIPS_TLS_DTPREL64.
224
ae351704
AM
2252007-07-02 Alan Modra <amodra@bigpond.net.au>
226
227 * Makefile.am: Run "make dep-am".
228 * Makefile.in: Regenerate.
229 * aclocal.m4: Regenerate.
230 * config.in: Regenerate.
231 * po/SRC-POTFILES.in: Regenerate.
232 * po/bfd.pot: Regenerate.
233
3e5484db
AM
2342007-07-02 Alan Modra <amodra@bigpond.net.au>
235
236 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Tidy
237 symsec != NULL tests.
238
08a40648
AM
2392007-07-02 Alan Modra <amodra@bigpond.net.au>
240
241 PR 4712
242 * elf.c (assign_file_positions_for_load_sections): Adjust lma
243 by p_vaddr_offset.
244
86b57e31
L
2452007-06-30 H.J. Lu <hongjiu.lu@intel.com>
246
247 * aclocal.m4: Regenerated.
248 * Makefile.in: Likewise.
249
34c8bcba
JM
2502007-06-29 Joseph Myers <joseph@codesourcery.com>
251
252 * elf32-ppc.c (ppc_elf_merge_obj_attributes): New.
253 (ppc_elf_merge_private_bfd_data): Call it.
254
2cf19d5c
JM
2552007-06-29 Joseph Myers <joseph@codesourcery.com>
256
257 * elfxx-mips.c (mips_elf_merge_obj_attributes): New.
258 (_bfd_mips_elf_merge_private_bfd_data): Call it.
259
104d59d1
JM
2602007-06-29 Joseph Myers <joseph@codesourcery.com>
261
262 * elf-attrs.c: New.
263 * Makefile.am (BFD32_BACKENDS): Add elf-attrs.lo.
264 (BFD32_BACKENDS_CFILES): Add elf-attrs.c.
265 (elf-attrs.lo): Generate dependencies.
266 * Makefile.in: Regenerate.
267 * configure.in (elf): Add elf-attrs.lo.
268 * configure: Regenerate.
269 * elf-bfd.h (struct elf_backend_data): Add entries for object
270 attributes.
271 (NUM_KNOWN_OBJ_ATTRIBUTES, obj_attribute, obj_attribute_list,
272 OBJ_ATTR_PROC, OBJ_ATTR_GNU, OBJ_ATTR_FIRST, OBJ_ATTR_LAST,
273 Tag_NULL, Tag_File, Tag_Section, Tag_Symbol, Tag_compatibility):
274 New.
275 (struct elf_obj_tdata): Add entries for object attributes.
276 (elf_known_obj_attributes, elf_other_obj_attributes,
277 elf_known_obj_attributes_proc, elf_other_obj_attributes_proc):
278 New.
279 (bfd_elf_obj_attr_size, bfd_elf_set_obj_attr_contents,
280 bfd_elf_get_obj_attr_int, bfd_elf_add_obj_attr_int,
281 bfd_elf_add_proc_attr_int, bfd_elf_add_obj_attr_string,
282 bfd_elf_add_proc_attr_string, bfd_elf_add_obj_attr_compat,
283 bfd_elf_add_proc_attr_compat, _bfd_elf_attr_strdup,
284 _bfd_elf_copy_obj_attributes, _bfd_elf_obj_attrs_arg_type,
285 _bfd_elf_parse_attributes, _bfd_elf_merge_object_attributes): New.
286 * elf.c (_bfd_elf_copy_private_bfd_data): Copy object attributes.
287 (bfd_section_from_shdr): Handle attributes sections.
288 * elflink.c (bfd_elf_final_link): Handle attributes sections.
289 * elfxx-target.h (elf_backend_obj_attrs_vendor,
290 elf_backend_obj_attrs_section, elf_backend_obj_attrs_arg_type,
291 elf_backend_obj_attrs_section_type): New.
292 (elfNN_bed): Update.
293 * elf32-arm.c (NUM_KNOWN_ATTRIBUTES, aeabi_attribute,
294 aeabi_attribute_list): Remove.
295 (struct elf32_arm_obj_tdata): Remove object attributes fields.
296 (check_use_blx, bfd_elf32_arm_set_vfp11_fix, using_thumb2,
297 elf32_arm_copy_private_bfd_data, elf32_arm_merge_eabi_attributes):
298 Update for new object attributes interfaces.
299 (uleb128_size, is_default_attr, eabi_attr_size,
300 elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
301 elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
302 elf32_arm_new_eabi_attr, elf32_arm_get_eabi_attr_int,
303 elf32_arm_add_eabi_attr_int, attr_strdup,
304 elf32_arm_add_eabi_attr_string, elf32_arm_add_eabi_attr_compat,
305 copy_eabi_attributes, elf32_arm_parse_attributes): Remove. Moved
306 to generic code in elf-attrs.c.
307 (elf32_arm_obj_attrs_arg_type): New.
308 (elf32_arm_fake_sections): Do not handle .ARM.attributes.
309 (elf32_arm_section_from_shdr): Do not handle SHT_ARM_ATTRIBUTES.
310 (bfd_elf32_bfd_final_link): Remove.
311 (elf_backend_obj_attrs_vendor, elf_backend_obj_attrs_section,
312 elf_backend_obj_attrs_arg_type,
313 elf_backend_obj_attrs_section_type): New.
314 * elf32-bfin.c (bfin_elf_copy_private_bfd_data): Copy object
315 attributes.
316 * elf32-frv.c (frv_elf_copy_private_bfd_data): Likewise.
317 * elf32-iq2000.c (iq2000_elf_copy_private_bfd_data): Likewise.
318 * elf32-mep.c (mep_elf_copy_private_bfd_data): Likewise.
319 * elf32-mt.c (mt_elf_copy_private_bfd_data): Likewise.
320 * elf32-sh.c (sh_elf_copy_private_data): Likewise.
321 * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
322
5ab79981
PB
3232007-06-29 Paul Brook <paul@codesourcery.com>
324
325 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Suppress
326 call veneers for call relocations against undefined symbols.
327 (elf32_arm_final_link_relocate): Turn call to undefined symbol
328 into a jump to the next instruction.
329
32e8a950
NC
3302007-06-29 Michael Snyder <msnyder@svkmacdonelllnx>
331
332 * bfd.c (bfd_demangle): Plug memory leak (Coverity).
333
3d3d428f
NC
3342007-06-29 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
335
336 * Makefile.am: Add cr16 related entry
337 * Makefile.in: Regenerate
338 * archures.c: Add bfd_cr16_arch
339 * bfd-in2.h: Regenerate
340 * config.bfd: Add cr16-elf
341 * configure.in: Add bfd_elf32_cr16_vec
342 * configure: Regenerate.
343 * targets.c: Added cr16 related information
344 * cpu-cr16.c: New file.
345 * elf32-cr16.c: New file.
346 * reloc.c: Added cr16 relocs.
347
c55fe096
AM
3482007-06-29 Alan Modra <amodra@bigpond.net.au>
349
350 * elflink.c (_bfd_elf_link_assign_sym_version): Improve error
351 message for undefined version nodes.
352 (elf_gc_sweep): Don't warn when zero size sections are
353 removed.
354
375de94a
AM
3552007-06-29 Nathan Froyd <froydnj@codesourcery.com>
356
357 * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation
358 types.
359
7d3287cb
AM
3602007-06-29 Alan Modra <amodra@bigpond.net.au>
361
362 * elf32-spu.c (spu_elf_fake_sections): New function.
363 (elf_backend_fake_sections): Define.
364
6a3cd2b4
AM
3652007-06-29 Alan Modra <amodra@bigpond.net.au>
366
367 * elf.c (assign_file_positions_for_load_sections): Use elf
368 section header sh_size rather than bfd section size, simplifying
369 .tbss handling.
370
bf988460
AM
3712007-06-29 Alan Modra <amodra@bigpond.net.au>
372
36fc76ae 373 PR ld/4701
bf988460
AM
374 * elf.c (assign_file_positions_for_load_sections): Ensure bss
375 segments meet gABI alignment requirements. Don't allocate
376 file space for bss sections in a segment also containing file
377 or program headers.
378
60b31e8d
AM
3792007-06-27 Alan Modra <amodra@bigpond.net.au>
380
cc481421
AM
381 * bfd.c (struct bfd): Rename "next" to "archive_next".
382 * archive.c: Rename uses throughout file.
383 * archive64.c: Likewise.
384 * coff-rs6000.c: Likewise.
385 * ecoff.c: Likewise.
386 * som.c: Likewise.
387 * bfd-in2.h: Regenerate.
388
60b31e8d
AM
389 * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
390 input bfds.
58eb693e 391 * elf32-spu.c (spu_elf_create_sections): Likewise.
60b31e8d 392
bec42b15
NC
3932007-06-26 H.J. Lu <hongjiu.lu@intel.com>
394
395 * dwarf2.c (find_line): New. Contains the duplicated code from:
396 (_bfd_dwarf2_find_nearest_line): Use it.
397 (_bfd_dwarf2_find_line): Use it.
398
3d3e6f9a
JM
3992007-06-26 Joseph Myers <joseph@codesourcery.com>
400
401 * elf32-arm.c (copy_eabi_attributes): Copy type of attributes.
402
b314ec0e
RS
4032007-06-25 Richard Sandiford <richard@codesourcery.com>
404
405 * elfxx-mips.c (mips_elf_calculate_relocation): Allow local stubs
406 to be used for calls from MIPS16 code.
407
0d4a1476
AS
4082007-06-23 Andreas Schwab <schwab@suse.de>
409
410 * configure.in (--with-separate-debug-dir): New option.
411 * configure: Regenerate.
412 * Makefile.am (dwarf2.lo): Add rule to pass DEBUGDIR.
413 * Makefile.in: Regenerate.
414 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Pass DEBUGDIR to
415 bfd_follow_gnu_debuglink.
416 (_bfd_dwarf2_find_line): Likewise.
417
0d161102
NC
4182007-06-22 Nick Clifton <nickc@redhat.com>
419
420 * dwarf2.c: Add support for reading in debug information via a
421 .gnu_debuglink section:
422 (struct dwarf2_debug): Add bfd field to record the bfd containing
423 the debug info.
424 (parse_comp_unit): Remove ABFD parameter. Instead use the bfd
425 field in the dwarf2_debug structure.
426 (_bfd_dwarf2_find_nearest_line): If a debug info section could not
427 be found in the current bfd call bfd_follow_gnu_debuglink to see
428 if another file contains the debug information. If it does, open
429 it and continue.
430 (_bfd_dwarf2_find_line): Likewise.
431
293a0124
L
4322007-06-19 H.J. Lu <hongjiu.lu@intel.com>
433
434 PR ld/4590
435 * elfxx-ia64.c (sort_dyn_sym_info): Keep the valid got_offset
436 when removing duplicated entries.
437 (get_dyn_sym_info): Initialize the got_offset field to -1.
438 Update call to sort_dyn_sym_info.
439 (elfNN_ia64_relocate_section): Call sort_dyn_sym_info to sort
440 array of addend and remove duplicates.
441
dc1f3d8a
L
4422007-06-18 H.J. Lu <hongjiu.lu@intel.com>
443
444 * libpei.h (_bfd_XXi_final_link_postscript): Remove
445 duplication.
446 (bfd_target_pei_p): New.
447 (bfd_target_pei_arch): New
448 (bfd_target_efi_p): Likewise.
449 (bfd_target_efi_arch): New
450 (bfd_pe_executable_p): Use bfd_target_pei_p and
451 bfd_target_efi_p.
452
453 * peicode.h (arch_type): New enum.
454 (pe_arch): New function.
455 (pe_bfd_object_p): Don't match PE/EFI target with EFI/PE file
456 if there is an EFI/PE target.
457
79887925
L
4582007-06-14 H.J. Lu <hongjiu.lu@intel.com>
459
460 * Makefile.am (ACLOCAL_AMFLAGS): Add -I . -I ../config.
461
462 * acinclude.m4: Don't include m4 files. Remove libtool
463 kludge.
464
465 * Makefile.in: Regenerated.
79887925
L
466 * aclocal.m4: Likewise.
467 * configure: Likewise.
468
99ded152
BW
4692007-06-11 Sterling Augustine <sterling@tensilica.com>
470 Bob Wilson <bob.wilson@acm.org>
bf988460 471
99ded152
BW
472 * elf32-xtensa.c (extend_ebb_bounds_forward): Use renamed
473 XTENSA_PROP_NO_TRANSFORM flag instead of XTENSA_PROP_INSN_NO_TRANSFORM.
474 (extend_ebb_bounds_backward, compute_text_actions): Likewise.
475 (compute_ebb_proposed_actions, coalesce_shared_literal): Likewise.
476 (xtensa_get_property_predef_flags): Likewise.
477 (compute_removed_literals): Pass new arguments to is_removable_literal.
478 (is_removable_literal): Add sec, prop_table and ptblsize arguments.
479 Do not remove literal if the NO_TRANSFORM property flag is set.
bf988460 480
cbf2cba4
RS
4812007-05-31 Richard Sandiford <rsandifo@nildram.co.uk>
482
483 * elfxx-mips.c (mips_elf_initialize_tls_index): When processing a
484 type (3) single-GOT entry, read tls_type from the hash table entry
485 rather than the GOT entry.
486
a9a4c53e
AM
4872007-06-01 Alan Modra <amodra@bigpond.net.au>
488
489 * simple.c (bfd_simple_get_relocated_section_contents): Init
490 input_bfds_tail.
491
02bf8d82
AM
4922007-05-30 Alan Modra <amodra@bigpond.net.au>
493
42bb2e33
AM
494 * elf.c (elf_fake_sections): Adjust test for SHT_NOBITS sections
495 created by objcopy --only-keep-debug.
496 (_bfd_elf_init_private_section_data): Only change elf_section_type
497 if it is SHT_NULL.
498
02bf8d82
AM
499 * elf.c (assign_file_positions_for_load_sections): Correct sh_type
500 to SHT_NOBITS earlier. Base actions in rest of function on sh_type
501 and sh_flags instead of bfd section flags. Delete voff and code
502 keeping nobits segments aligned.
503
4e591bc1
EC
5042007-05-25 Eric Christopher <echristo@apple.com>
505
506 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame):
507 Check that sym_sec isn't NULL before accessing.
508
37ad9514
SE
5092007-05-24 Steve Ellcey <sje@cup.hp.com>
510
511 * Makefile.in: Regnerate.
512 * configure: Regenerate.
513 * aclocal.m4: Regenerate.
514 * doc/Makefile.in: Regenerate.
515
91a5743d
PB
5162007-05-22 Paul Brook <paul@codesourcery.com>
517
518 * elf32-arm.c (output_arch_syminfo): Replace plt_shndx and plt_offset
519 with sec and sec_shndx.
520 (elf32_arm_ouput_plt_map_sym): Use them.
521 (elf32_arm_output_arch_local_syms): Output mapping symbols for
522 interworking glue.
523
26079076
PB
5242007-05-18 Paul Brook <paul@codesourcery.com>
525
526 * elf32-arm.c (ARM2THUMB_V5_STATIC_GLUE_SIZE): Define.
527 (a2t1v5_ldr_insn, a2t1v5_ldr_insn): New.
528 (record_arm_to_thumb_glue): Add v5t non-pic glue.
529 (elf32_arm_create_thumb_stub): Ditto.
530
91ac5911
L
5312007-05-16 H.J. Lu <hongjiu.lu@intel.com>
532 Alan Modra <amodra@bigpond.net.au>
533
534 * elflink.c (_bfd_elf_adjust_dynamic_copy): Align dynamic bss
535 section to the minimum alignment.
536
027297b7
L
5372007-05-15 H.J. Lu <hongjiu.lu@intel.com>
538 Alan Modra <amodra@bigpond.net.au>
539
540 PR ld/4504
541 * elf-bfd.h (_bfd_elf_adjust_dynamic_copy): New.
542 * elflink.c (_bfd_elf_adjust_dynamic_copy): New.
543
544 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Call
545 _bfd_elf_adjust_dynamic_copy to adjust for the copy in dynamic
546 bss section.
547 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
548 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
549 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
550 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
551 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
552 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
553 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
554 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
555 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
556 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
557 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
558 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
559 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
560 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
561 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
562 * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Likewise.
563 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
564
5c18022e
RS
5652007-05-15 Richard Sandiford <richard@codesourcery.com>
566
567 * elfxx-mips.c (mips_elf_create_local_got_entry): Remove
568 input_section argument. Create .rela.dyn relocations against
569 symbol 0 rather than the section symbol.
570 (mips_elf_local_got_index): Remove input_section argument.
571 Update call to mips_elf_create_local_got_entry.
572 (mips_elf_got_page, mips_elf_got16_entry): Likewise.
573 (mips_elf_calculate_relocation): Update calls to
574 mips_elf_local_got_index, mips_elf_got16_entry and mips_elf_got_page.
575
a00a1f35
MS
5762007-05-15 Mark Shinwell <shinwell@codesourcery.com>
577
578 * elf32-arm.c (elf32_arm_final_link_relocate): Correctly
579 handle the Thumb-2 JUMP19 relocation.
580
0414f35b
AM
5812007-05-15 Alan Modra <amodra@bigpond.net.au>
582
583 PR 4479
584 * elf.c (elf_fake_sections): Don't allow backend to change
585 SHT_NOBITS if called for strip/objcopy --only-keep-debug.
586 * elfxx-mips.c (_bfd_mips_elf_fake_sections): Remove similar
587 fix from here.
588
74f2e02b
AM
5892007-05-14 Alan Modra <amodra@bigpond.net.au>
590
591 * elf.c (bfd_elf_string_from_elf_section): Return NULL on
592 invalid shstrndx.
593 (bfd_elf_get_str_section): Likewise.
594
f137a54e
AM
5952007-05-12 Alan Modra <amodra@bigpond.net.au>
596
597 PR 4497
598 * elf-eh-frame.c (struct cie): Add "local_personality". Make
599 "personality" a union.
600 (cie_eq): Compare local_personality too. Adjust personality
601 comparison.
602 (_bfd_elf_discard_section_eh_frame): Check binding on personality
603 reloc sym to allow for bad symtab. Use stashed local syms rather
604 than reading personality local sym. Handle discarded sections.
605
4f4416b5
AM
6062007-05-12 Alan Modra <amodra@bigpond.net.au>
607
608 * elf32-spu.c (elf_howto_table): Add howto for R_SPU_ADDR16X.
609
016687f8
AM
6102007-05-11 Alan Modra <amodra@bigpond.net.au>
611
612 * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
613 (enum ppc_elf_plt_type): Move from..
614 * elf32-ppc.c: ..here.
615 (struct ppc_elf_obj_tdata): Add makes_plt_call and has_rel16.
616 (struct ppc_elf_link_hash_table): Reorder. Add old_bfd. Delete
617 can_use_new_plt. Make is_vxworks a bitfield.
618 (ppc_elf_link_hash_table_create): Don't clear is_vxworks (again).
619 (ppc_elf_check_relocs): Update setting of reloc flags. Set old_bfd.
620 (ppc_elf_select_plt_layout): Modify parameters. Use bfd reloc
621 flags to better detect object files needing old bss-style plt.
622 Allow secure plt to be used without rel16 relocs being detected.
623 Warn if secure plt request cannot be allowed.
624
ece5ef60
AM
6252007-05-11 Alan Modra <amodra@bigpond.net.au>
626
627 * reloc.c (BFD_RELOC_SPU_PPU32, BFD_RELOC_SPU_PPU64): Define.
628 * elf-bfd.h (struct elf_backend_data): Change return type of
629 elf_backend_relocate_section to int.
630 * elf32-spu.c (elf_howto_table): Add howtos for R_SPU_PPU32 and
631 R_SPU_PPU64.
632 (spu_elf_bfd_to_reloc_type): Convert new relocs.
633 (spu_elf_count_relocs): New function.
634 (elf_backend_count_relocs): Define.
635 (spu_elf_relocate_section): Arrange to emit R_SPU_PPU32 and
636 R_SPU_PPU64 relocs.
637 * elflink.c (elf_link_input_bfd): Emit relocs if relocate_section
638 returns 2.
639 * bfd-in2.h: Regenerate.
640 * libbfd.h: Regenerate.
641
d3753b85
RS
6422007-05-10 Richard Sandiford <richard@codesourcery.com>
643
644 * elf32-arm.c (elf32_arm_check_relocs): Don't create PLT entries
645 for R_ARM_ABS12 relocs.
646 (elf32_arm_finish_dynamic_symbol): Fix the loop that creates
647 non-shared VxWorks PLT entries.
648
ef8c95ad
AM
6492007-05-11 Alan Modra <amodra@bigpond.net.au>
650
651 PR 4454
652 * elf-eh-frame.c (struct cie): Make "personality" a bfd_vma.
653 (_bfd_elf_discard_section_eh_frame): Handle local syms on
654 personality relocation.
655
8c252fd9
RS
6562007-05-10 Richard Sandiford <richard@codesourcery.com>
657
658 * elf.c (assign_file_positions_for_load_sections): Use p_memsz
659 rather than p_filesz to calculate the LMA of the end of a segment.
660
b186458a
JJ
6612007-05-10 Jakub Jelinek <jakub@redhat.com>
662
663 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Don't do copyreloc
664 processing if symbol is defined in the executable.
665
88571279
AO
6662007-05-10 Alexandre Oliva <aoliva@redhat.com>
667
668 * elf32-frv.c (_frvfdpic_check_discarded_relocs): New.
669 (frvfdpic_elf_discard_info): New.
670 (elf_backend_discard_info): Define for FDPIC.
671
2e6030b9
MS
6722007-05-09 Mark Shinwell <shinwell@codesourcery.com>
673
674 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Don't
675 attempt to scan if the bfd doesn't correspond to an ELF image.
676 (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
677
0d4cc892
AO
6782007-05-08 Alexandre Oliva <aoliva@redhat.com>
679
680 * elf32-frv.c (elf32_frv_relocate_section): Discard dynamic relocs
681 for which _bfd_elf_section_offset returns -1.
682
d0249648
AM
6832007-05-08 Alan Modra <amodra@bigpond.net.au>
684
685 * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
686 (mark_functions_via_relocs): Likewise.
687
1182cb93
AM
6882007-05-07 Alan Modra <amodra@bigpond.net.au>
689
690 * elflink.c (bfd_elf_final_link): Correct reloc handling for
691 elf_backend_count_relocs.
692 (bfd_elf_discard_info): Print an error if we can't read syms.
693
b16f296e
AM
6942007-05-07 Alan Modra <amodra@bigpond.net.au>
695
696 * elf32-spu.c (spu_elf_reloc_type_lookup): Return NULL on
697 invalid reloc code.
698 (spu_elf_gc_mark_hook, spu_elf_section_processing): Delete functions.
699 (elf_backend_gc_mark_hook, elf_backend_section_processing): Don't
700 define.
701
7c928300
AM
7022007-05-07 Alan Modra <amodra@bigpond.net.au>
703
704 * elf.c (assign_file_positions_for_load_sections): Don't check
705 core segment.
706
fc66a176
L
7072007-05-04 H.J. Lu <hongjiu.lu@intel.com>
708
709 * elflink.c (elf_link_sort_relocs): Return if both .rela.dyn
710 and .rel.dyn aren't present.
711
3410fea8
NC
7122007-05-04 Nick Clifton <nickc@redhat.com>
713
714 * elflink.c (elf_link_sort_relocs): If both .rela.dyn and .rel.dyn
715 sections are present examine the indirect sections in an attempt
716 to compute the correct relocation size. If there is any
717 ambiguity, produce an error and refuse to sort.
718
7bdca076
SL
7192007-05-03 Sandra Loosemore <sandra@codesourcery.com>
720
721 * elf32-arm.c (allocate_dynrelocs): Fix typo in comment.
722
22184a77
NC
7232007-05-03 Vincent Riviere <vincent.riviere@freesbee.fr>
724 Nick Clifton <nickc@redhat.com>
725
726 PR gas/3041
727 * aoutx.h (swap_std_reloc_out): Treat relocs against weak symbols
728 in the same way as relocs against external symbols.
729
627b32bc
AM
7302007-05-02 Alan Modra <amodra@bigpond.net.au>
731
732 * elf.c (assign_file_positions_for_load_sections): Set sh_offset
733 here. Set sh_type to SHT_NOBITS if we won't be allocating
734 file space. Don't bump p_memsz for non-alloc sections. Adjust
735 section-in-segment check.
736 (assign_file_positions_for_non_load_sections): Don't set sh_offset
737 here for sections that have already been handled above.
738
49fa1e15
AM
7392007-04-30 Alan Modra <amodra@bigpond.net.au>
740
741 * elf32-spu.c (struct spu_link_hash_table): Add stack_analysis
742 and emit_stack_syms bitfields.
743 (get_sym_h): Read all symbols if stack analysis will be done.
744 (spu_elf_create_sections): Add stack_analysis and emit_stack_syms
745 params, and stash in hash table.
746 (is_hint): Split off from..
747 (is_branch): ..here. Adjust callers.
748 (spu_elf_size_stubs): Add stack_analysis param. Arrange to read
749 and keep all syms.
750 (write_one_stub): Fix mem leak.
751 (find_function_stack_adjust): New function.
752 (sort_syms_syms, sort_syms_psecs): New vars.
753 (sort_syms): New function.
754 (struct call_info, struct function_info): New.
755 (struct spu_elf_stack_info): New.
756 (alloc_stack_info, maybe_insert_function, func_name): New functions.
757 (is_nop, insns_at_end, check_function_ranges): Likewise.
758 (find_function, insert_callee, mark_functions_via_relocs): Likewise.
759 (pasted_function, interesting_section, discover_functions): Likewise.
760 (mark_non_root, call_graph_traverse, build_call_tree): Likewise.
761 (sum_stack, spu_elf_stack_analysis, spu_elf_final_link): Likewise.
762 (bfd_elf32_bfd_final_link): Define.
763 * elf32-spu.h (struct _spu_elf_section_data): Add stack_info field.
764 (spu_elf_create_sections, spu_elf_size_stubs): Update prototypes.
765
9ddf8309
TS
7662007-04-28 Sergey Rogozhkin <rogozhkin@niisi.msk.ru>
767
768 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Don't access
769 memory which we might not own.
770
95147441
BW
7712007-04-27 Bob Wilson <bob.wilson@acm.org>
772
773 * elf32-xtensa.c (elf_xtensa_make_sym_local): Restore deleted function.
774 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Likewise.
775 (elf_xtensa_allocate_dynrelocs): Use elf_xtensa_make_sym_local.
776
bcc2cc8e
BW
7772007-04-27 Bob Wilson <bob.wilson@acm.org>
778
779 * elf32-xtensa.c (xtensa_read_table_entries): Step through table
780 contents and relocs in parallel.
4e591bc1 781
f29f96b6
BW
7822007-04-27 Bob Wilson <bob.wilson@acm.org>
783
784 * elf32-xtensa.c (relax_property_section): Remove extra irel increment.
785
2ce18a16
AM
7862007-04-27 Alan Modra <amodra@bigpond.net.au>
787
788 * cpu-rs6000.c: Write Mimi's name in ASCII.
789 * coff-rs6000.c: Likewise.
790 * rs6000-core.c: Likewise.
791
eddc20ad
AM
7922007-04-27 Alan Modra <amodra@bigpond.net.au>
793
794 * sysdep.h: Include config.h first.
795 Many files: Include sysdep.h before bfd.h.
796 * Makefile.am: Run "make dep-am".
797 * Makefile.in: Regenerate.
798
495443d4
AM
7992007-04-25 Alan Modra <amodra@bigpond.net.au>
800
801 * sysdep.h: Revert last change.
802
40b1c6c5
NC
8032007-04-24 Nick Clifton <nickc@redhat.com>
804
805 * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset.
806 * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto.
807
64be1553
AM
8082007-04-24 Alan Modra <amodra@bigpond.net.au>
809
810 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
811 eh_frame_hdr table won't be created.
812
d5efd9fc
AM
8132007-04-24 Alan Modra <amodra@bigpond.net.au>
814
815 * acinclude.m4: Include config/stdint.m4.
816 * configure.in: Invoke GCC_HEADER_STDINT.
817 * sysdep.h: Don't include ansidecl.h here.
818 * configure: Regenerate.
819 * config.in: Regenerate.
820 * Makefile.in: Regenerate.
821
9a2e615a
NS
8222007-04-23 Nathan Sidwell <nathan@codesourcery.com>
823
824 * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
825 bfd_mach_mcf_isa_c_emac): New.
826 * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
827 elf_isac_plt_entry, elf_isac_plt_info): New.
828 (elf32_m68k_object_p): Add ISA_C.
829 (elf32_m68k_print_private_bfd_data): Print ISA_C.
830 (elf32_m68k_get_plt_info): Detect ISA_C.
831 * cpu-m68k.c (arch_info): Add ISAC.
832 (m68k_arch_features): Likewise,
833 (bfd_m68k_compatible): ISAs B & C are not compatible.
834
1b0b5b1b
NC
8352007-04-21 Nick Clifton <nickc@redhat.com>
836
837 * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
838 (ecoff_link_add_archive_symbols): Likewise.
839 * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
840 relent.howto.
841 * ieee.c (parse_int): Initialise x.
842 (must_parse_int): Initialise result.
843 (ieee_slurp_external_symbols): Initialise value.
844
bd7803a9
AM
8452007-04-21 Alan Modra <amodra@bigpond.net.au>
846
847 * config.bfd (spu-*-elf): Delete targ_selvecs.
848
964597d0
NC
8492007-04-19 Nick Clifton <nickc@redhat.com>
850
851 * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto.
852
01e76792
AM
8532007-04-19 Alan Modra <amodra@bigpond.net.au>
854
855 * bfd.c (bfd_demangle): New function.
856 * Makefile.am: Run "make dep-am".
857 * Makefile.in: Regenerate.
858 * bfd-in2.h: Regenerate.
859
ee5c21a0
DJ
8602007-04-18 Matthias Klose <doko@ubuntu.com>
861
862 * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
863 (bfdver.h): Use the date in non-release builds for the soversion.
864 * Makefile.in: Regenerate.
865
fcb93ecf
PB
8662007-04-17 Paul Brook <paul@codesourcery.com>
867
868 * elf.c (_bfd_elf_is_function_type): New function.
869 * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
870 (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
871 is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
872 * elf-bfd.h (elf_backend_data): Add is_function_type.
873 (_bfd_elf_is_function_type): Add prototype.
874 * elfxx-target.h (elf_backend_is_function_type): Add default
875 definition.
876 (elfNN_bed): Add elf_backend_is_function_type.
877 * elf32-arm.c (elf32_arm_is_function_type): New function.
878 (elf_backend_is_function_type): Define.
879
5750dcec
DJ
8802007-04-17 Daniel Jacobowitz <dan@codesourcery.com>
881
882 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
883 DT_MIPS_RLD_MAP before DT_DEBUG again.
884
cfbc9945
SE
8852007-04-14 Steve Ellcey <sje@cup.hp.com>
886
887 * Makefile.am: Add ACLOCAL_AMFLAGS.
888 * configure.in: Change macro call order.
889 * Makefile.in: Regnerate.
890 * doc/Makefile.in: Regenerate.
891 * configure: Regenerate.
892
3fcd97f1
JJ
8932007-04-14 Jakub Jelinek <jakub@redhat.com>
894
895 * elflink.c (bfd_elf_final_link): Don't free symbuf for
896 non-elf input bfds.
897 (bfd_elf_size_dynamic_sections): Don't access elf_section_data
898 for non-elf input bfds.
899
af5978fb
RS
9002007-04-12 Richard Sandiford <richard@codesourcery.com>
901
902 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
903 DT_MIPS_RTLD_MAP for PIEs.
904
9e3313ae
RS
9052007-04-12 Richard Sandiford <richard@codesourcery.com>
906
907 * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
908 when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
909 in a read-only section.
910 (_bfd_mips_elf_check_relocs): Likewise.
911
1d25768e
BW
9122007-04-12 Bob Wilson <bob.wilson@acm.org>
913
914 * elf32-xtensa.c (xtensa_is_insntable_section): New.
915 (xtensa_is_proptable_section): New.
916 (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
917 tables with 12-byte entries, as well as tables with 8-byte entries.
918 Sort the relocations before examining them.
919 (relax_property_section): Use xtensa_is_proptable_section and
920 xtensa_is_littable_section. Rewrite code for combining table entries
921 to be more robust in case of unexpected relocations. Do not set offset
922 of unused relocations to less than zero.
923 (xtensa_is_property_section): Use other functions instead of
924 duplicating section name comparisons.
925 (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
926 (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
4e591bc1 927
e1e5c0b5 9282007-04-12 Bob Wilson <bob.wilson@acm.org>
4e591bc1 929
e1e5c0b5
BW
930 * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
931 from Xtensa property sections.
4e591bc1 932
2c67c5f3
AM
9332007-04-12 Alan Modra <amodra@bigpond.net.au>
934
935 * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
936 is non-NULL before dereferencing.
937
8776bb8a
NS
9382007-04-11 Nathan Sidwell <nathan@codesourcery.com>
939
940 * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
941 relocs too.
942
4a828aab
RH
9432007-04-10 Richard Henderson <rth@redhat.com>
944
945 * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
946 (elf64_alpha_size_got_sections): Remove unused something_changed local.
947 (elf64_alpha_size_plt_section): Return void.
948 (elf64_alpha_size_rela_got_section): Likewise.
4e591bc1 949 (elf64_alpha_relax_section): Only regenerate got+plt if the
4a828aab
RH
950 relax_trip counter has changed.
951
91506736
DJ
9522007-04-09 Daniel Jacobowitz <dan@codesourcery.com>
953
954 * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
955 * doc/Makefile.am (DOCFILES): Add bfdver.texi.
956 (bfdver.texi): New rule.
957 * Makefile.in, doc/Makefile.in: Regenerated.
958
da6bcfca
MT
9592007-04-03 Matt Thomas <matt@netbsd.org>
960
4e591bc1 961 * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
da6bcfca
MT
962 in a shared object if it is not in a CODE section or if it is against
963 a section symbol. This allows DWARF2 to use pcrel format.
964
9267588c
L
9652007-04-05 H.J. Lu <hongjiu.lu@intel.com>
966
967 PR ld/4304
968 * elflink.c (bfd_elf_final_link): Call einfo callback in
969 bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
970 warning.
971
c1b2796f
AM
9722007-04-05 Alan Modra <amodra@bigpond.net.au>
973
974 * elf32-spu.c (spu_elf_output_symbol_hook): New function.
975 (elf_backend_link_output_symbol_hook): Define.
976
970ccc77
NC
9772007-04-02 Nick Clifton <nickc@redhat.com>
978
979 PR binutils/4292
980 * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
981 targets as 64-bit values, even if running on a 64-bit host.
982 * coffgen.c (coff_print_symbol): Likewise.
983
1783205a
NC
9842007-03-29 Nick Clifton <nickc@redhat.com>
985
986 PR binutils/4110
987 * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
988 (setup_group): Use it. Report corrupt group section headers.
989 (bfd_section_from_shdr): Use new macro. Replace constant 4 with
990 GRP_ENTRY_SIZE. Cope with NULLs in the group section table.
991 (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
992
2ce859a1
AM
9932007-03-29 Alan Modra <amodra@bigpond.net.au>
994
995 PR ld/4267
947844a3
AM
996 * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
997 for rel->r_info values.
998 (bfd_elf_perform_complex_relocation): Likewise.
2ce859a1
AM
999 * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
1000 unused entries. Don't clear plt.plist in loop.
1001
39817122
RS
10022007-03-28 Richard Sandiford <richard@codesourcery.com>
1003
1004 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
1005 * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
1006 Merge into...
1007 (sparc_elf_append_rela): ...this new function.
1008 (SPARC_ELF_APPEND_RELA): Delete.
1009 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
1010 the deleted append_rela field.
1011 (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
1012 instead of SPARC_ELF_APPEND_RELA.
1013 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
1014 elf_size_info structure to find the size of a RELA entry and
1015 the associated swap-out function.
1016 (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
1017 (sparc_finish_dyn): ...this new function.
1018 (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
1019
4ecceb71
RS
10202007-03-28 Richard Sandiford <richard@codesourcery.com>
1021 Phil Edwards <phil@codesourcery.com>
1022
1023 * doc/bfd.texinfo: Put the contents after the title page rather
1024 than at the end of the document.
1025
d4d2b80b
AS
10262007-03-27 Andreas Schwab <schwab@suse.de>
1027
1028 * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
1029
831480e9 10302007-03-26 H.J. Lu <hongjiu.lu@intel.com>
5bd8253d
L
1031
1032 * configure: Regenerated.
1033
f4b39977
AM
10342007-03-26 Alan Modra <amodra@bigpond.net.au>
1035
1036 * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
1037 (allocate_spuear_stubs): New function.
1038 (spu_elf_size_stubs): Call allocate_spuear_stubs.
1039
157090f7
AM
10402007-03-26 Alan Modra <amodra@bigpond.net.au>
1041
1042 * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
1043 * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
1044 (MY (bfd_reloc_name_lookup)): New function.
1045 * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
1046 * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
1047 (MY_bfd_reloc_name_lookup): Define.
1048 * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
1049 (MY_bfd_reloc_name_lookup): Define.
1050 * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
1051 (NAME (aout, reloc_name_lookup)): New function.
1052 * bout.c (b_out_bfd_reloc_name_lookup): New function.
1053 * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
1054 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
1055 * coff-arm.c (coff_arm_reloc_name_lookup): New function.
1056 (coff_bfd_reloc_name_lookup): Define.
1057 * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
1058 (coff_i386_reloc_name_lookup): New function.
1059 * coff-i860.c (coff_i860_reloc_name_lookup): New function.
1060 (coff_bfd_reloc_name_lookup): Define.
1061 * coff-i960.c (coff_i960_reloc_name_lookup): New function.
1062 (coff_bfd_reloc_name_lookup): Define.
1063 * coff-m68k.c (m68k_reloc_name_lookup): New function.
1064 (coff_bfd_reloc_name_lookup): Define.
1065 * coff-maxq.c (maxq_reloc_name_lookup): New function.
1066 (coff_bfd_reloc_name_lookup): Define.
1067 * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
1068 (coff_bfd_reloc_name_lookup): Define.
1069 * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
1070 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
1071 * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
1072 (coff_bfd_reloc_name_lookup): Define.
1073 * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
1074 (_bfd_xcoff_reloc_name_lookup): New function.
1075 (rs6000coff_vec, pmac_xcoff_vec): Init new field.
1076 * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
1077 (sh_coff_reloc_name_lookup): New function.
1078 * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
1079 (coff_bfd_reloc_name_lookup): Define.
1080 * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
1081 (tic30_coff_reloc_name_lookup): New function.
1082 * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
1083 (tic4x_coff_reloc_name_lookup): New function.
1084 * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
1085 (tic54x_coff_reloc_name_lookup): New function.
1086 * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
1087 (coff_amd64_reloc_name_lookup): New function.
1088 * coff-z80.c (coff_z80_reloc_name_lookup): New function.
1089 (coff_bfd_reloc_name_lookup): Define.
1090 * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
1091 (coff_bfd_reloc_name_lookup): Define.
1092 * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
1093 (xcoff64_reloc_name_lookup): New function.
1094 (rs6000coff64_vec, aix5coff64_vec): Init new field.
1095 * coffcode.h (coff_bfd_reloc_name_lookup): Define.
1096 * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
1097 * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1098 * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1099 * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1100 * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
1101 (bfd_elf32_bfd_reloc_name_lookup): Define.
1102 * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1103 * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
1104 (bfd_elf32_bfd_reloc_name_lookup): Define.
1105 * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
1106 (bfd_elf32_bfd_reloc_name_lookup): Define.
1107 * elf32-cris.c (cris_reloc_name_lookup): New function.
1108 (bfd_elf32_bfd_reloc_name_lookup): Define.
1109 * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
1110 (bfd_elf32_bfd_reloc_name_lookup): Define.
1111 * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1112 * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1113 * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
1114 (bfd_elf32_bfd_reloc_name_lookup): Define.
1115 * elf32-fr30.c (fr30_reloc_name_lookup): New function.
1116 (bfd_elf32_bfd_reloc_name_lookup): Define.
1117 * elf32-frv.c (frv_reloc_name_lookup): New function.
1118 (bfd_elf32_bfd_reloc_name_lookup): Define.
1119 * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
1120 * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
1121 (bfd_elf32_bfd_reloc_name_lookup): Define.
1122 * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
1123 * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
1124 (bfd_elf32_bfd_reloc_name_lookup): Define.
1125 * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
1126 (bfd_elf32_bfd_reloc_name_lookup): Define.
1127 * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
1128 (bfd_elf32_bfd_reloc_name_lookup): Define.
1129 * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
1130 (bfd_elf32_bfd_reloc_name_lookup): Define.
1131 * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
1132 (bfd_elf32_bfd_reloc_name_lookup): Define.
1133 * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
1134 (bfd_elf32_bfd_reloc_name_lookup): Define.
1135 * elf32-m32c.c (m32c_reloc_name_lookup): New function.
1136 (bfd_elf32_bfd_reloc_name_lookup): Define.
1137 * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1138 * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1139 * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1140 * elf32-m68k.c (reloc_name_lookup): New function.
1141 (bfd_elf32_bfd_reloc_name_lookup): Define.
1142 * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
1143 * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
1144 (bfd_elf32_bfd_reloc_name_lookup): Define.
1145 * elf32-mep.c (mep_reloc_name_lookup): New function.
1146 (bfd_elf32_bfd_reloc_name_lookup): Define.
1147 * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1148 (mips_vxworks_bfd_reloc_name_lookup): Likewise.
1149 (bfd_elf32_bfd_reloc_name_lookup): Define.
1150 * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1151 * elf32-mt.c (mt_reloc_name_lookup): New function.
1152 (bfd_elf32_bfd_reloc_name_lookup): Define.
1153 * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
1154 (bfd_elf32_bfd_reloc_name_lookup): Define.
1155 * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1156 * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
1157 (bfd_elf32_bfd_reloc_name_lookup): Define.
1158 * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
1159 (bfd_elf32_bfd_reloc_name_lookup): Define.
1160 * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
1161 (bfd_elf32_bfd_reloc_name_lookup): Define.
1162 * elf32-score.c (elf32_score_reloc_name_lookup): New function.
1163 (bfd_elf32_bfd_reloc_name_lookup): Define.
1164 * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
1165 (bfd_elf32_bfd_reloc_name_lookup): Define.
1166 * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
1167 * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
1168 (bfd_elf32_bfd_reloc_name_lookup): Define.
1169 * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
1170 (bfd_elf32_bfd_reloc_name_lookup): Define.
1171 * elf32-vax.c (reloc_name_lookup): New function.
1172 (bfd_elf32_bfd_reloc_name_lookup): Define.
1173 * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
1174 (bfd_elf32_bfd_reloc_name_lookup): Define.
1175 * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
1176 (bfd_elf32_bfd_reloc_name_lookup): Define.
1177 * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
1178 (bfd_elf32_bfd_reloc_name_lookup): Define.
1179 * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
1180 (bfd_elf64_bfd_reloc_name_lookup): Define.
1181 * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
1182 * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
1183 * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
1184 * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
1185 * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
1186 (bfd_elf64_bfd_reloc_name_lookup): Define.
1187 * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
1188 (bfd_elf64_bfd_reloc_name_lookup): Define.
1189 * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
1190 (bfd_elf64_bfd_reloc_name_lookup): Define.
1191 * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
1192 * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
1193 (bfd_elf64_bfd_reloc_name_lookup): Define.
1194 * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
1195 * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
1196 (bfd_elfNN_bfd_reloc_name_lookup): Define.
1197 * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
1198 * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
1199 * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
1200 * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
1201 * ieee.c (ieee_bfd_reloc_name_lookup): Define.
1202 * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
1203 * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
1204 * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
1205 (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
1206 (MY(reloc_name_lookup)): New function.
1207 * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
1208 * oasys.c (oasys_bfd_reloc_name_lookup): Define.
1209 * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
1210 * pe-mips.c (coff_mips_reloc_name_lookup): New function.
1211 (coff_bfd_reloc_name_lookup): Define.
1212 * reloc.c (bfd_reloc_name_lookup): New function.
1213 * riscix.c (riscix_reloc_name_lookup): New function.
1214 (MY_bfd_reloc_name_lookup): Define.
1215 * som.c (som_bfd_reloc_name_lookup): New function.
1216 * targets.c (struct bfd_target): Add reloc_name_lookup.
1217 (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
1218 * versados.c (versados_bfd_reloc_name_lookup): Define.
1219 * vms.c (vms_bfd_reloc_name_lookup): New function.
1220 * bfd-in2.h: Regenerate.
1221 * libbfd.h: Regenerate.
1222
2d82d84d
TS
12232007-03-26 Thiemo Seufer <ths@mips.com>
1224
a5cb1fd7 1225 PR ld/4208
2d82d84d
TS
1226 * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
1227 matching relocation is found.
1228 (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
1229
831480e9 12302007-03-23 H.J. Lu <hongjiu.lu@intel.com>
1a27db7d
L
1231
1232 * configure: Regenerated.
1233
a1ac8190
JM
12342007-03-23 Joseph Myers <joseph@codesourcery.com>
1235
1236 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
1237 * configure: Regenerate.
1238
aa7a0635
AM
12392007-03-23 Alan Modra <amodra@bigpond.net.au>
1240
1241 * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
1242 Remove input_sec param. Adjust all calls.
1243 (write_one_stub): Adjust stub symbol.
1244 (needs_ovl_stub): New function, extracted from..
1245 (spu_elf_size_stubs): ..here.
1246 (spu_elf_relocate_section): Use needs_ovl_stub.
1247
e49e529d
JM
12482007-03-22 Joseph Myers <joseph@codesourcery.com>
1249
1250 * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
1251 if nonempty.
1252 * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
1253 * Makefile.in, configure, doc/Makefile.in: Regenerate.
1254
831480e9 12552007-03-22 H.J. Lu <hongjiu.lu@intel.com>
50572669
L
1256
1257 PR ld/4210
1258 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
1259 address and virtual size of the last section for the image
1260 size.
1261
0920dee7
L
12622007-03-22 H.J. Lu <hongjiu.lu@intel.com>
1263
1264 PR ld/4007
1265 * elf.c (assign_file_positions_for_load_sections): Check if
1266 all sections are in the segment.
1267
831480e9 12682007-03-20 H.J. Lu <hongjiu.lu@intel.com>
749b8d9d
L
1269
1270 PR ld/4208
1271 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
1272 matching LO16 relocation for HI16 relocation.
1273
27e55c4d
PB
12742007-03-20 Paul Brook <paul@codesourcery.com>
1275
1276 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
1277 * bfd-in2.h: Regenerate.
1278 * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
1279 (record_arm_to_thumb_glue): Use globals->pic_veneer.
1280 (elf32_arm_create_thumb_stub): Ditto.
1281 (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
1282
bf21ed78
MS
12832007-03-18 Mark Shinwell <shinwell@codesourcery.com>
1284
1285 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
1286 argument and extra last argument.
1287 * bfd-in2.h: Regenerate.
1288 * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
1289 member.
1290 (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
1291 extra last argument. Set no_enum_size_warning appropriately.
1292 (elf32_arm_merge_eabi_attributes): Improve enum sizes
1293 diagnostic, suppressing it when no_enum_size_warning dictates.
1294
5f6999aa
NC
12952007-03-20 Nick Clifton <nickc@redhat.com>
1296
1297 PR binutils/3535
1298 * elf.c (copy_private_bfd_data): Widen the scope of Solaris
1299 specific conditions that need the program headers to be
1300 rewritten.
1301
831480e9 13022007-03-19 H.J. Lu <hongjiu.lu@intel.com>
d13c9dc6
L
1303
1304 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
1305 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
1306 SizeOfInitializedData, SizeOfUninitializedData,
1307 AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
1308 extra PE a.out header.
1309 (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
1310 (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
1311 defined.
1312 (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
1313 defined.
1314 (_bfd_XX_print_private_bfd_data_common): Also print Magic,
1315 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
1316 SizeOfInitializedData, SizeOfUninitializedData,
1317 AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
1318 extra PE a.out header.
1319
831480e9 13202007-03-18 H.J. Lu <hongjiu.lu@intel.com>
739bb57e
L
1321
1322 * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
1323 only if BFD64 is defined.
1324
5384511f
AM
13252007-03-17 Alan Modra <amodra@bigpond.net.au>
1326
1327 * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
1328 on setjmp calls.
1329
187b3d5d
L
13302007-03-15 H.J. Lu <hongjiu.lu@intel.com>
1331
1332 * doc/Makefile.in: Regenerated.
1333
c428fa83
L
13342007-03-15 H.J. Lu <hongjiu.lu@intel.com>
1335
1336 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
1337 create doc/bfdver.texi.
1338 * Makefile.in: Regenerated.
1339
1340 * configure.in (--with-bugurl): New option.
1341 * configure: Regenerated.
1342
1343 * version.h (REPORT_BUGS_TO): New.
1344
d1036acb
L
13452007-03-13 H.J. Lu <hongjiu.lu@intel.com>
1346
1347 PR binutils/3826
1348 * elf-bfd.h (elf_backend_data): Add elf_osabi.
1349 (_bfd_elf_set_osabi): New.
1350
1351 * elf.c (_bfd_elf_set_osabi): New.
1352
1353 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
1354 (elf_backend_post_process_headers): Defined with
1355 _bfd_elf_set_osabi.
1356 (ELF_OSABI): Properly defined for each target.
1357
1358 * elf32-i370.c (i370_elf_post_process_headers): Removed.
1359 (ELF_OSABI): Defined.
1360 (elf_backend_post_process_headers): Defined with
1361 _bfd_elf_set_osabi.
1362
1363 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
1364 freebsd.
1365 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
1366
1367 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
1368 (ELF_OSABI): Defined.
1369 (elf_backend_post_process_headers): Defined with
1370 _bfd_elf_set_osabi.
1371
1372 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
1373 freebsd.
1374 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
1375 elf_osabi.
1376
1377 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
1378 with elf_osabi.
1379 (ELF_OSABI): Properly defined for each target.
1380 (elf_backend_post_process_headers): Defined with
1381 _bfd_elf_set_osabi for Linux.
1382
1383 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
1384 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
1385 (elf_backend_post_process_headers): Defined with
1386 _bfd_elf_set_osabi.
1387
1388 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
1389 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
1390 (elf_backend_post_process_headers): Defined with
1391 _bfd_elf_set_osabi.
1392
1393 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
1394 with any ELF target of the compatible machine for which we do not
1395 have a specific backend.
1396
1397 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
1398 with elf_osabi.
1399
1400 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
1401 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
1402
d4c87fc1
AM
14032007-03-08 Alan Modra <amodra@bigpond.net.au>
1404
1405 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
1406 V850_OTHER_* bits.
1407
9c6fc49d
AM
14082007-03-08 Alan Modra <amodra@bigpond.net.au>
1409
1410 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
1411 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
1412 Run "make dep-am".
1413 * Makefile.in: Regenerate.
1414 * po/SRC-POTFILES.in: Regenerate.
1415
faed74d6
L
14162007-03-07 H.J. Lu <hongjiu.lu@intel.com>
1417
1418 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
1419 (x86_64-*-kfreebsd*-gnu): Likewise.
1420 (x86_64-*-netbsd*): Likewise.
1421 (x86_64-*-openbsd*): Likewise.
1422 (x86_64-*-linux-*): Likewise.
1423
1424 * configure.in: Support bfd_efi_app_x86_64_vec.
1425 * configure: Regenerated.
1426
1427 * efi-app-x86_64.c: New file.
1428
1429 * targets.c (bfd_efi_app_x86_64_vec): New.
1430 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
1431
15344ad7
L
14322007-03-07 Kai Tietz <kai.tietz@onevision.com>
1433
1434 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
1435 const for type reloc_howto_type.
1436
ab96bf03
AM
14372007-03-07 Alan Modra <amodra@bigpond.net.au>
1438
1439 PR 3958
1440 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
1441 (elf_discarded_section): Move..
1442 * bfd-in.h: ..to here.
1443 * bfd-in2.h: Regenerate.
1444 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
1445 from discarded sections before relocate_section has done its job.
1446 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
1447 relocs against symbols from discarded sections.
1448 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
1449 SECREL32.
1450 (elf_hppa_relocate_section): Handle relocatable link after setting
1451 sec, sym, h etc. for final link. Squash error messages for
1452 relocatable link. Clear section contents for relocs against
1453 symbols in discarded sections, and zero reloc. Remove existing
1454 zero r_symndx code.
1455 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
1456 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1457 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1458 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1459 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
1460 (bfin_relocate_section): Likewise.
1461 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
1462 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1463 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1464 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1465 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1466 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1467 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1468 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1469 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1470 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1471 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1472 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1473 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1474 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1475 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1476 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1477 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1478 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1479 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1480 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1481 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1482 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1483 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1484 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1485 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
1486 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1487 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1488 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1489 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1490 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1491 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1492 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1493 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1494 (elf64_alpha_relocate_section): Likewise.
1495 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1496 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1497 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1498 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1499 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1500 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1501 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1502 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1503
1504 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
1505 symbols for relocatable link. Don't use always-zero st_value.
1506 (elf_backend_rela_normal): Don't define.
1507 * elf32-bfin.c (bfinfdpic_relocate_section): Use
1508 RELOC_FOR_GLOBAL_SYMBOL.
1509 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1510 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
1511 section symbol adjustments with same for relocatable link.
1512 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1513 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
1514 (elf32_m68hc11_check_relocs): ..to here.
1515 * elf32-score.c (score_elf_final_link_relocate): Remove zero
1516 r_symndx code.
1517 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
1518
0e922b77
AM
15192007-03-07 Alan Modra <amodra@bigpond.net.au>
1520
1521 PR 4144
1522 * elf.c (assign_file_positions_for_load_sections): Don't
1523 adjust p_memsz for !SEC_LOAD section vma modulo page size.
1524 Instead, use the same lma based adjustment for SEC_LOAD
1525 sections.
1526
25c6282a
BW
15272007-03-01 Bob Wilson <bob.wilson@acm.org>
1528
1529 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
1530 (find_relaxable_sections): Do not increment src_count for unknown
1531 opcodes. Decode only once instead of calling is_l32r_relocation.
1532 (compute_text_actions): Remove unused no_insn_move flag. Assert that
1533 src_next matches src_count in relax_info.
1534
066c2a57
JM
15352007-03-01 Joseph Myers <joseph@codesourcery.com>
1536
1537 * Makefile.am (bfdver.h): Use "." not " " between version number
1538 and date.
1539 * Makefile.in: Regenerate.
1540 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
1541 * configure: Regenerate.
1542
ed6ba298
NS
15432007-02-28 Nathan Sidwell <nathan@codesourcery.com>
1544
1545 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
1546
7a8757b3
AM
15472007-02-27 Alan Modra <amodra@bigpond.net.au>
1548
1549 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
1550 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
1551
024b2372
CD
15522007-02-23 Carlos O'Donell <carlos@codesourcery.com>
1553
1554 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
1555 DWARF even with 64-bit addresses.
1556 (_bfd_dwarf2_find_nearest_line): Likewise.
1557
cb3ff1e5
NC
15582007-02-23 Nick Clifton <nickc@redhat.com>
1559
1560 PR binutils/3535
1561 * elf.c (copy_private_bfd_data): Always rewrite the program
1562 headers when a Solaris interpreter segment is involved.
1563
6a5bb875
PB
15642007-02-22 Paul Brook <paul@codesourcery.com>
1565
1566 * elflink.c (gc_mark_hook_fn): Remove.
1567 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
1568 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
1569 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
1570 (elf_backend_data): Add gc_mark_extra_sections.
1571 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
1572 definition.
1573 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
1574 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
1575 (elf_backend_gc_mark_extra_sections): Define.
1576
2889e75b
NC
15772007-02-21 Nick Clifton <nickc@redhat.com>
1578
1579 * elf.c (_bfd_elf_map_sections_to_segments): If the
1580 override_segment_assignment callback is defined then call it.
1581
78859468
AM
15822007-02-21 Alan Modra <amodra@bigpond.net.au>
1583
1584 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
1585
ae0d2616
TS
15862007-02-19 Thiemo Seufer <ths@mips.com>
1587
1588 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
1589 translation marker from untranslatable strings.
1590
6bfdb61b
AM
15912007-02-19 Alan Modra <amodra@bigpond.net.au>
1592
1593 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
1594 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
1595 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
1596 (elfNN_bed): Init new field.
1597 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
1598
92f01d61
JM
15992007-02-17 Mark Mitchell <mark@codesourcery.com>
1600 Nathan Sidwell <nathan@codesourcery.com>
1601 Vladimir Prus <vladimir@codesourcery.com
1602 Joseph Myers <joseph@codesourcery.com>
1603
1604 * configure.in (--with-pkgversion): New option.
1605 * configure: Regenerate.
1606 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
1607 * Makefile.in: Regenerate.
1608 * version.h (BFD_VERSION_STRING): Define using
1609 @bfd_version_package@.
1610
c0e3f241
CD
16112007-02-16 Carlos O'Donell <carlos@codesourcery.com>
1612
1613 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
1614 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
1615 and EF_MIPS_UCODE.
1616
72f6ea61
AM
16172007-02-15 Alan Modra <amodra@bigpond.net.au>
1618
1619 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
1620 declare.
1621 (_bfd_norelocs_canonicalize_reloc): Likewise.
1622 * libbfd.h: Regenerate.
1623 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
1624 (_bfd_norelocs_canonicalize_reloc): Likewise.
1625 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
1626 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
1627 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
1628 * ihex.c: Similarly.
1629 * mach-o-target.c: Similarly.
1630 * mach-o.c: Similarly.
1631 * mmo.c: Similarly.
1632 * pef.c: Similarly.
1633 * ppcboot.c: Similarly.
1634 * srec.c: Similarly.
1635 * xsym.c: Similarly.
1636
fab4a87f
L
16372007-02-14 H.J. Lu <hongjiu.lu@intel.com>
1638
1639 PR ld/3953
1640 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
1641 when adding default symbol.
1642
e4e0193e
AM
16432007-02-13 Alan Modra <amodra@bigpond.net.au>
1644
1645 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
1646 for branch lookup table.
1647
84f5d08e
AM
16482007-02-12 Alan Modra <amodra@bigpond.net.au>
1649
1650 * elf64-ppc.c (create_linkage_sections): Don't create
1651 .rela.rodata.brlt for --emit-relocs.
1652 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
1653 (ppc_size_one_stub): Count them. Simplify test of stub type
1654 when counting stub relocs. Set SEC_RELOC too.
1655 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
1656 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
1657
4aac632e
AM
16582007-02-12 Alan Modra <amodra@bigpond.net.au>
1659
1660 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
1661 with a zero symbol index.
1662
8da3dbc5
AM
16632007-02-12 Alan Modra <amodra@bigpond.net.au>
1664
1665 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
1666
b31847af
DB
16672007-02-05 Dave Brolley <brolley@redhat.com>
1668 Stan Cox <scox@redhat.com>
1669
1670 PR ld/3972
1671 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
1672
722b0ff7 16732007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
1674 Richard Sandiford <rsandifo@redhat.com>
1675 Stan Cox <scox@redhat.com>
1676 Nick Clifton <nickc@redhat.com>
1677 DJ Delorie <dj@redhat.com>
1678 Frank Ch. Eigler <fche@redhat.com>
1679 Ben Elliston <bje@redhat.com>
1680 Richard Henderson <rth@redhat.com>
1681
1682 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
1683 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
1684 (BFD32_BACKENDS): Add elf32-mep.lo.
1685 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
1686 (cpu-mep.lo,elf32-mep.lo): New targets.
1687 * archures.c (bfd_arch_mep): New enumerator.
1688 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
1689 (bfd_mep_arch): New external variable.
1690 (bfd_archures_list): Add bfd_mep_arch.
1691 * config.bfd: Support mep-*-elf.
1692 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
1693 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
1694 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
1695 declarations.
1696 (_bfd_target_vector): Add bfd_elf32_mep_vec and
1697 bfd_elf32_mep_little_vec.
722b0ff7
DB
1698 * mep-relocs.pl: New file.
1699 * cpu-mep.c: New file.
1700 * elf32-mep.c: New file.
1701 * bfd-in2.h: Regenerate.
e382d174 1702 * po/POTFILES.in: Regenerate.
722b0ff7
DB
1703 * libbfd.h: Regenerate.
1704 * Makefile.in: Regenerate.
1705 * configure: Regenerate.
1706
d9352518
DB
17072007-02-05 Dave Brolley <brolley@redhat.com>
1708
1709 * elflink.c (evaluate_complex_relocation_symbols): Check for
1710 STT_SRELC for global symbols.
1711 (perform_complex_relocations): Renamed to
1712 perform_complex_relocation and now examines only one relocation.
1713 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 1714 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
1715 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
1716 (OD,OS,OU): #undefs corrected to N, S and U repectively.
1717 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
1718 (complex_reloc_installation_howto): Removed.
1719 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
1720 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
1721
d9352518 17222007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
1723 Richard Sandiford <rsandifo@redhat.com>
1724 DJ Delorie <dj@redhat.com>
1725 Graydon Hoare <graydon@redhat.com>
1726 Nick Clifton <nickc@cambridge.redhat.com>
1727 Jeff Holcomb <jeffh@redhat.com>
1728 Frank Ch. Eigler <fche@redhat.com>
1729
1730 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
1731 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
1732 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
1733 * elflink.c (set_symbolValue): New static function.
d9352518
DB
1734 (resolve_symbol): Likewise.
1735 (resolve_section): Likewise.
1736 (undefined_reference): Likewise.
1737 (eval_symbol): Likewise.
1738 (evaluate_complex_relocation_symbols): Likewise.
1739 (put_value): Likewise.
1740 (get_value): Likewise.
e382d174
DB
1741 (decode_complex_addend):
1742 (bfd_elf_perform_complex_relocation): New function.
1743 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
1744 * reloc.c (BFD_RELOC_RELC): New relocation number.
1745 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 1746
f1ab2340 17472007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 1748
f1ab2340
BW
1749 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
1750 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
1751 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
1752 (elf_xtensa_allocate_got_size): Replace these with...
1753 (elf_xtensa_allocate_dynrelocs): ...this new function.
1754 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 1755
e5f131d1 17562007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 1757
e5f131d1
BW
1758 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
1759 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
1760 Set src_mask to zero.
1761 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
1762 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 1763
4608f3d9
BW
17642007-02-02 Bob Wilson <bob.wilson@acm.org>
1765
1766 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
1767 (elf_xtensa_dynamic_symbol_p): ...this.
1768
f0e6fdb2
BW
17692007-02-02 Bob Wilson <bob.wilson@acm.org>
1770
1771 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
1772 (struct elf_xtensa_link_hash_table): New.
1773 (elf_xtensa_hash_table): New.
1774 (elf_xtensa_link_hash_table_create): New.
1775 (elf_xtensa_check_relocs): Update plt_reloc_count references.
1776 Update arguments to add_extra_plt_sections.
1777 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
1778 table. Update for plt_reloc_count and add_extra_plt_sections.
1779 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
1780 argument with link info. Update calls to elf_xtensa_get_plt_section
1781 and elf_xtensa_get_gotplt_section.
1782 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
1783 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
1784 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
1785 (relax_property_section): Get sections from the hash table and update
1786 function calls.
1787 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
1788 dynobj argument with link info. Get sections for first plt chunk from
1789 the hash table.
1790 (bfd_elf32_bfd_link_hash_table_create): Define.
1791
c15f73f9
JJ
17922007-02-02 Jakub Jelinek <jakub@redhat.com>
1793
1794 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
1795 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
1796 (struct elf_symbol): Change first member into union.
1797 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
1798 internal syms. Only compare st_shndx fields.
1799 (elf_create_symbuf): New function.
1800 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
1801 for bfds, use a binary search, otherwise don't qsort symbols
1802 unnecessarily only to select which symbols are for the particular
1803 shndx.
1804
effdf42a
NC
18052007-02-01 Nick Clifton <nickc@redhat.com>
1806
1807 PR ld/3852
1808 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
1809 in the elf_link_hash_table structure.
1810
183e98be
AM
18112007-02-01 Alan Modra <amodra@bigpond.net.au>
1812
1813 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
1814 * elfxx-target.h (elf_backend_write_core_note): Define and use.
1815 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
1816 32-bit core note on 64-bit target.
1817 (elfcore_write_prstatus): Likewise.
1818 (elfcore_write_lwpstatus): Make note_name const.
1819 (elfcore_write_prfpreg): Likewise.
1820 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
1821 target.
1822 * elf32-ppc.c (ppc_elf_write_core_note): New function.
1823 (elf_backend_write_core_note): Define.
1824 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
1825 (elf_backend_write_core_note): Define.
1826
fc523535 18272007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
1828
1829 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
1830 (elf32_bed): Defined for elf32-us-cris.
1831
1832 * elf64-sh64.c (elf64_bed): Defined for Linux.
1833 (INCLUDED_TARGET_FILE): Removed.
1834
1835 * elfxx-target.h (elfNN_bed): Always define. Don't check
1836 INCLUDED_TARGET_FILE.
1837
c9b57b7e
DD
18382007-01-31 DJ Delorie <dj@redhat.com>
1839
1840 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
1841 message for dangerous relocs, special case the common user error.
1842
53020534
L
18432007-01-30 H.J. Lu <hongjiu.lu@intel.com>
1844
1845 * elf.c (copy_elf_program_header): Start from the first section
1846 in a segment and stop when all sections in a segment are
1847 accounted for.
1848
c7b8f16e
JB
18492007-01-29 Julian Brown <julian@codesourcery.com>
1850
1851 * bfd-in2.h: Regenerate.
1852 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
1853 instruction scanning should be done.
1854 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
1855 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
1856 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
1857 prototype.
1858 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
1859 argument.
1860 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
1861 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
1862 (elf32_vfp11_erratum_type): New enum.
1863 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
1864 veneers.
1865 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
1866 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
1867 vfp11_fix and num_vfp11_fixes fields.
1868 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
1869 vfp11_erratum_glue_size, num_vfp11_fixes fields.
1870 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
1871 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
1872 glue section.
1873 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
1874 to a section's map.
1875 (record_vfp11_erratum_veneer): Create a single veneer, and its
1876 associated symbols.
1877 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
1878 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
1879 BFDs.
1880 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
1881 required.
1882 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
1883 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
1884 (bfd_arm_vfp11_write_mask): Update write mask according to coded
1885 register number.
1886 (bfd_arm_vfp11_antidependency): New function.
1887 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
1888 (elf32_arm_compare_mapping): Declare.
1889 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
1890 BFD for potential erratum-triggering insns. Record results.
1891 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
1892 and branches to veneers have been placed in virtual memory after
1893 layout.
1894 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
1895 hash table.
1896 (elf32_arm_output_symbol_hook): Remove.
1897 (elf32_arm_write_section): Output veneers, and branches to veneers.
1898 Use maps from input sections, not output sections, for code
1899 byte-swapping.
1900 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
1901 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
1902 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
1903 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
1904
19052007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
1906
1907 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 1908 (INCLUDED_TARGET_FILE): Removed.
83d1651b 1909
914dfb0f
DA
19102007-01-27 Mike Frysinger <vapier@gentoo.org>
1911
1912 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
1913 (INCLUDED_TARGET_FILE): Remove.
1914
78eba9b6
DD
19152007-01-25 DJ Delorie <dj@redhat.com>
1916
1917 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
1918 R_M32C_16 or R_M32C_24 relocs.
1919
64ee10b6
NC
19202007-01-25 Nick Clifton <nickc@redhat.com>
1921
1922 PR binutils/3874
1923 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
1924 hash table was created by elf32_avr_link_hash_table_create before
1925 using it.
1926 (elf32_avr_link_hash_newfunc): New function. Just pass the call
1927 through to _bfd_elf_link_hash_newfunc.
1928 (elf32_avr_link_hash_table_create): Use
1929 elf32_avr_link_hash_newfunc instead of
1930 _bfd_elf_link_hash_newfunc.
1931 (elf32_avr_relocate_section): Check for the hash table pointer
1932 being NULL.
1933 (elf32_avr_relax_section, avr_build_one_stub,
1934 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
1935 elf32_avr_build_stubs): Likewise.
1936
40b36307
L
19372007-01-16 H.J. Lu <hongjiu.lu@intel.com>
1938
1939 PR ld/3831
1940 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
1941 argument, Elf_Internal_Sym *.
1942
1943 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
1944 symbol dynamic if info->dynamic_data is TRUE.
1945 (bfd_elf_record_link_assignment): Updated call to
1946 bfd_elf_record_link_assignment.
1947 (_bfd_elf_merge_symbol): Likewise. Always call
1948 bfd_elf_link_mark_dynamic_symbol.
1949
fc523535 19502007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
1951
1952 * Makefile.am (BFD_LIBS): Removed.
1953 * Makefile.in: Regenerated.
1954
fc523535 19552007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
1956
1957 PR binutils/3631
1958 * Makefile.am (OFILES): Add @bfd64_libs@.
1959 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
1960 * Makefile.in: Regenerated.
1961
1962 * configure.in (bfd_libs): Replaced by ...
1963 (bfd64_libs): This.
1964 * configure: Regenerated.
1965
59e0647f
NS
19662007-01-11 Nathan Sidwell <nathan@codesourcery.com>
1967
1968 * elf.c (assign_file_positions_for_load_sections): We can
1969 require fewer phdrs than expected.
1970
3bdcfdf4
KH
19712007-01-08 Kazu Hirata <kazu@codesourcery.com>
1972
1973 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
1974 * bfd-in2.h: Regenerate.
1975 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
1976 bfd_mach_cpu32_fido.
1977 (m68k_arch_features): Use fido_a instead of cpu32.
1978 (bfd_m68k_compatible): Reject the combination of Fido and
1979 ColdFire. Accept the combination of CPU32 and Fido with a
1980 warning.
1981 * elf32-m68k.c (elf32_m68k_object_p,
1982 elf32_m68k_merge_private_bfd_data,
1983 elf32_m68k_print_private_bfd_data): Treat Fido as an
1984 architecture by itself.
1985
42037fe5
NC
19862007-01-08 Kai Tietz <kai.tietz@onevision.com>
1987
1988 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
1989
ebe8b991
JJ
19902007-01-05 Jakub Jelinek <jakub@redhat.com>
1991
1992 * texhex.c (first_phase): Don't fall through into the default
1993 case.
1994 (pass_over): Replace abort () calls with return FALSE. Fix
1995 buffer overflow.
1996
b327f31f
AM
19972007-01-04 Jie Zhang <jie.zhang@analog.com>
1998
1999 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
2000 SEC_EXCLUDE on zero size .eh_frame.
2001
10a2343e 2002For older changes see ChangeLog-2006
56882138
AM
2003\f
2004Local Variables:
2005mode: change-log
2006left-margin: 8
2007fill-column: 74
2008version-control: never
2009End:
This page took 0.764576 seconds and 4 git commands to generate.