* gdbint.texinfo (Writing Tests): Mention gdb_test_multiple
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
4a828aab
RH
12007-04-10 Richard Henderson <rth@redhat.com>
2
3 * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
4 (elf64_alpha_size_got_sections): Remove unused something_changed local.
5 (elf64_alpha_size_plt_section): Return void.
6 (elf64_alpha_size_rela_got_section): Likewise.
7 (elf64_alpha_relax_section): Only regenerate got+plt if the
8 relax_trip counter has changed.
9
91506736
DJ
102007-04-09 Daniel Jacobowitz <dan@codesourcery.com>
11
12 * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
13 * doc/Makefile.am (DOCFILES): Add bfdver.texi.
14 (bfdver.texi): New rule.
15 * Makefile.in, doc/Makefile.in: Regenerated.
16
da6bcfca
MT
172007-04-03 Matt Thomas <matt@netbsd.org>
18
19 * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
20 in a shared object if it is not in a CODE section or if it is against
21 a section symbol. This allows DWARF2 to use pcrel format.
22
9267588c
L
232007-04-05 H.J. Lu <hongjiu.lu@intel.com>
24
25 PR ld/4304
26 * elflink.c (bfd_elf_final_link): Call einfo callback in
27 bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
28 warning.
29
c1b2796f
AM
302007-04-05 Alan Modra <amodra@bigpond.net.au>
31
32 * elf32-spu.c (spu_elf_output_symbol_hook): New function.
33 (elf_backend_link_output_symbol_hook): Define.
34
970ccc77
NC
352007-04-02 Nick Clifton <nickc@redhat.com>
36
37 PR binutils/4292
38 * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
39 targets as 64-bit values, even if running on a 64-bit host.
40 * coffgen.c (coff_print_symbol): Likewise.
41
1783205a
NC
422007-03-29 Nick Clifton <nickc@redhat.com>
43
44 PR binutils/4110
45 * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
46 (setup_group): Use it. Report corrupt group section headers.
47 (bfd_section_from_shdr): Use new macro. Replace constant 4 with
48 GRP_ENTRY_SIZE. Cope with NULLs in the group section table.
49 (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
50
2ce859a1
AM
512007-03-29 Alan Modra <amodra@bigpond.net.au>
52
53 PR ld/4267
947844a3
AM
54 * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
55 for rel->r_info values.
56 (bfd_elf_perform_complex_relocation): Likewise.
2ce859a1
AM
57 * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
58 unused entries. Don't clear plt.plist in loop.
59
39817122
RS
602007-03-28 Richard Sandiford <richard@codesourcery.com>
61
62 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
63 * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
64 Merge into...
65 (sparc_elf_append_rela): ...this new function.
66 (SPARC_ELF_APPEND_RELA): Delete.
67 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
68 the deleted append_rela field.
69 (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
70 instead of SPARC_ELF_APPEND_RELA.
71 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
72 elf_size_info structure to find the size of a RELA entry and
73 the associated swap-out function.
74 (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
75 (sparc_finish_dyn): ...this new function.
76 (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
77
4ecceb71
RS
782007-03-28 Richard Sandiford <richard@codesourcery.com>
79 Phil Edwards <phil@codesourcery.com>
80
81 * doc/bfd.texinfo: Put the contents after the title page rather
82 than at the end of the document.
83
d4d2b80b
AS
842007-03-27 Andreas Schwab <schwab@suse.de>
85
86 * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
87
831480e9 882007-03-26 H.J. Lu <hongjiu.lu@intel.com>
5bd8253d
L
89
90 * configure: Regenerated.
91
f4b39977
AM
922007-03-26 Alan Modra <amodra@bigpond.net.au>
93
94 * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
95 (allocate_spuear_stubs): New function.
96 (spu_elf_size_stubs): Call allocate_spuear_stubs.
97
157090f7
AM
982007-03-26 Alan Modra <amodra@bigpond.net.au>
99
100 * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
101 * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
102 (MY (bfd_reloc_name_lookup)): New function.
103 * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
104 * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
105 (MY_bfd_reloc_name_lookup): Define.
106 * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
107 (MY_bfd_reloc_name_lookup): Define.
108 * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
109 (NAME (aout, reloc_name_lookup)): New function.
110 * bout.c (b_out_bfd_reloc_name_lookup): New function.
111 * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
112 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
113 * coff-arm.c (coff_arm_reloc_name_lookup): New function.
114 (coff_bfd_reloc_name_lookup): Define.
115 * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
116 (coff_i386_reloc_name_lookup): New function.
117 * coff-i860.c (coff_i860_reloc_name_lookup): New function.
118 (coff_bfd_reloc_name_lookup): Define.
119 * coff-i960.c (coff_i960_reloc_name_lookup): New function.
120 (coff_bfd_reloc_name_lookup): Define.
121 * coff-m68k.c (m68k_reloc_name_lookup): New function.
122 (coff_bfd_reloc_name_lookup): Define.
123 * coff-maxq.c (maxq_reloc_name_lookup): New function.
124 (coff_bfd_reloc_name_lookup): Define.
125 * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
126 (coff_bfd_reloc_name_lookup): Define.
127 * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
128 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
129 * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
130 (coff_bfd_reloc_name_lookup): Define.
131 * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
132 (_bfd_xcoff_reloc_name_lookup): New function.
133 (rs6000coff_vec, pmac_xcoff_vec): Init new field.
134 * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
135 (sh_coff_reloc_name_lookup): New function.
136 * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
137 (coff_bfd_reloc_name_lookup): Define.
138 * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
139 (tic30_coff_reloc_name_lookup): New function.
140 * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
141 (tic4x_coff_reloc_name_lookup): New function.
142 * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
143 (tic54x_coff_reloc_name_lookup): New function.
144 * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
145 (coff_amd64_reloc_name_lookup): New function.
146 * coff-z80.c (coff_z80_reloc_name_lookup): New function.
147 (coff_bfd_reloc_name_lookup): Define.
148 * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
149 (coff_bfd_reloc_name_lookup): Define.
150 * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
151 (xcoff64_reloc_name_lookup): New function.
152 (rs6000coff64_vec, aix5coff64_vec): Init new field.
153 * coffcode.h (coff_bfd_reloc_name_lookup): Define.
154 * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
155 * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
156 * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
157 * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
158 * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
159 (bfd_elf32_bfd_reloc_name_lookup): Define.
160 * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
161 * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
162 (bfd_elf32_bfd_reloc_name_lookup): Define.
163 * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
164 (bfd_elf32_bfd_reloc_name_lookup): Define.
165 * elf32-cris.c (cris_reloc_name_lookup): New function.
166 (bfd_elf32_bfd_reloc_name_lookup): Define.
167 * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
168 (bfd_elf32_bfd_reloc_name_lookup): Define.
169 * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
170 * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
171 * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
172 (bfd_elf32_bfd_reloc_name_lookup): Define.
173 * elf32-fr30.c (fr30_reloc_name_lookup): New function.
174 (bfd_elf32_bfd_reloc_name_lookup): Define.
175 * elf32-frv.c (frv_reloc_name_lookup): New function.
176 (bfd_elf32_bfd_reloc_name_lookup): Define.
177 * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
178 * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
179 (bfd_elf32_bfd_reloc_name_lookup): Define.
180 * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
181 * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
182 (bfd_elf32_bfd_reloc_name_lookup): Define.
183 * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
184 (bfd_elf32_bfd_reloc_name_lookup): Define.
185 * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
186 (bfd_elf32_bfd_reloc_name_lookup): Define.
187 * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
188 (bfd_elf32_bfd_reloc_name_lookup): Define.
189 * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
190 (bfd_elf32_bfd_reloc_name_lookup): Define.
191 * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
192 (bfd_elf32_bfd_reloc_name_lookup): Define.
193 * elf32-m32c.c (m32c_reloc_name_lookup): New function.
194 (bfd_elf32_bfd_reloc_name_lookup): Define.
195 * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
196 * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
197 * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
198 * elf32-m68k.c (reloc_name_lookup): New function.
199 (bfd_elf32_bfd_reloc_name_lookup): Define.
200 * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
201 * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
202 (bfd_elf32_bfd_reloc_name_lookup): Define.
203 * elf32-mep.c (mep_reloc_name_lookup): New function.
204 (bfd_elf32_bfd_reloc_name_lookup): Define.
205 * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
206 (mips_vxworks_bfd_reloc_name_lookup): Likewise.
207 (bfd_elf32_bfd_reloc_name_lookup): Define.
208 * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
209 * elf32-mt.c (mt_reloc_name_lookup): New function.
210 (bfd_elf32_bfd_reloc_name_lookup): Define.
211 * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
212 (bfd_elf32_bfd_reloc_name_lookup): Define.
213 * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
214 * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
215 (bfd_elf32_bfd_reloc_name_lookup): Define.
216 * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
217 (bfd_elf32_bfd_reloc_name_lookup): Define.
218 * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
219 (bfd_elf32_bfd_reloc_name_lookup): Define.
220 * elf32-score.c (elf32_score_reloc_name_lookup): New function.
221 (bfd_elf32_bfd_reloc_name_lookup): Define.
222 * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
223 (bfd_elf32_bfd_reloc_name_lookup): Define.
224 * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
225 * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
226 (bfd_elf32_bfd_reloc_name_lookup): Define.
227 * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
228 (bfd_elf32_bfd_reloc_name_lookup): Define.
229 * elf32-vax.c (reloc_name_lookup): New function.
230 (bfd_elf32_bfd_reloc_name_lookup): Define.
231 * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
232 (bfd_elf32_bfd_reloc_name_lookup): Define.
233 * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
234 (bfd_elf32_bfd_reloc_name_lookup): Define.
235 * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
236 (bfd_elf32_bfd_reloc_name_lookup): Define.
237 * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
238 (bfd_elf64_bfd_reloc_name_lookup): Define.
239 * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
240 * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
241 * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
242 * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
243 * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
244 (bfd_elf64_bfd_reloc_name_lookup): Define.
245 * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
246 (bfd_elf64_bfd_reloc_name_lookup): Define.
247 * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
248 (bfd_elf64_bfd_reloc_name_lookup): Define.
249 * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
250 * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
251 (bfd_elf64_bfd_reloc_name_lookup): Define.
252 * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
253 * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
254 (bfd_elfNN_bfd_reloc_name_lookup): Define.
255 * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
256 * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
257 * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
258 * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
259 * ieee.c (ieee_bfd_reloc_name_lookup): Define.
260 * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
261 * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
262 * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
263 (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
264 (MY(reloc_name_lookup)): New function.
265 * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
266 * oasys.c (oasys_bfd_reloc_name_lookup): Define.
267 * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
268 * pe-mips.c (coff_mips_reloc_name_lookup): New function.
269 (coff_bfd_reloc_name_lookup): Define.
270 * reloc.c (bfd_reloc_name_lookup): New function.
271 * riscix.c (riscix_reloc_name_lookup): New function.
272 (MY_bfd_reloc_name_lookup): Define.
273 * som.c (som_bfd_reloc_name_lookup): New function.
274 * targets.c (struct bfd_target): Add reloc_name_lookup.
275 (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
276 * versados.c (versados_bfd_reloc_name_lookup): Define.
277 * vms.c (vms_bfd_reloc_name_lookup): New function.
278 * bfd-in2.h: Regenerate.
279 * libbfd.h: Regenerate.
280
2d82d84d
TS
2812007-03-26 Thiemo Seufer <ths@mips.com>
282
a5cb1fd7 283 PR ld/4208
2d82d84d
TS
284 * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
285 matching relocation is found.
286 (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
287
831480e9 2882007-03-23 H.J. Lu <hongjiu.lu@intel.com>
1a27db7d
L
289
290 * configure: Regenerated.
291
a1ac8190
JM
2922007-03-23 Joseph Myers <joseph@codesourcery.com>
293
294 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
295 * configure: Regenerate.
296
aa7a0635
AM
2972007-03-23 Alan Modra <amodra@bigpond.net.au>
298
299 * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
300 Remove input_sec param. Adjust all calls.
301 (write_one_stub): Adjust stub symbol.
302 (needs_ovl_stub): New function, extracted from..
303 (spu_elf_size_stubs): ..here.
304 (spu_elf_relocate_section): Use needs_ovl_stub.
305
e49e529d
JM
3062007-03-22 Joseph Myers <joseph@codesourcery.com>
307
308 * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
309 if nonempty.
310 * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
311 * Makefile.in, configure, doc/Makefile.in: Regenerate.
312
831480e9 3132007-03-22 H.J. Lu <hongjiu.lu@intel.com>
50572669
L
314
315 PR ld/4210
316 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
317 address and virtual size of the last section for the image
318 size.
319
0920dee7
L
3202007-03-22 H.J. Lu <hongjiu.lu@intel.com>
321
322 PR ld/4007
323 * elf.c (assign_file_positions_for_load_sections): Check if
324 all sections are in the segment.
325
831480e9 3262007-03-20 H.J. Lu <hongjiu.lu@intel.com>
749b8d9d
L
327
328 PR ld/4208
329 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
330 matching LO16 relocation for HI16 relocation.
331
27e55c4d
PB
3322007-03-20 Paul Brook <paul@codesourcery.com>
333
334 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
335 * bfd-in2.h: Regenerate.
336 * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
337 (record_arm_to_thumb_glue): Use globals->pic_veneer.
338 (elf32_arm_create_thumb_stub): Ditto.
339 (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
340
bf21ed78
MS
3412007-03-18 Mark Shinwell <shinwell@codesourcery.com>
342
343 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
344 argument and extra last argument.
345 * bfd-in2.h: Regenerate.
346 * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
347 member.
348 (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
349 extra last argument. Set no_enum_size_warning appropriately.
350 (elf32_arm_merge_eabi_attributes): Improve enum sizes
351 diagnostic, suppressing it when no_enum_size_warning dictates.
352
5f6999aa
NC
3532007-03-20 Nick Clifton <nickc@redhat.com>
354
355 PR binutils/3535
356 * elf.c (copy_private_bfd_data): Widen the scope of Solaris
357 specific conditions that need the program headers to be
358 rewritten.
359
831480e9 3602007-03-19 H.J. Lu <hongjiu.lu@intel.com>
d13c9dc6
L
361
362 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
363 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
364 SizeOfInitializedData, SizeOfUninitializedData,
365 AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
366 extra PE a.out header.
367 (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
368 (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
369 defined.
370 (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
371 defined.
372 (_bfd_XX_print_private_bfd_data_common): Also print Magic,
373 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
374 SizeOfInitializedData, SizeOfUninitializedData,
375 AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
376 extra PE a.out header.
377
831480e9 3782007-03-18 H.J. Lu <hongjiu.lu@intel.com>
739bb57e
L
379
380 * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
381 only if BFD64 is defined.
382
5384511f
AM
3832007-03-17 Alan Modra <amodra@bigpond.net.au>
384
385 * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
386 on setjmp calls.
387
187b3d5d
L
3882007-03-15 H.J. Lu <hongjiu.lu@intel.com>
389
390 * doc/Makefile.in: Regenerated.
391
c428fa83
L
3922007-03-15 H.J. Lu <hongjiu.lu@intel.com>
393
394 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
395 create doc/bfdver.texi.
396 * Makefile.in: Regenerated.
397
398 * configure.in (--with-bugurl): New option.
399 * configure: Regenerated.
400
401 * version.h (REPORT_BUGS_TO): New.
402
d1036acb
L
4032007-03-13 H.J. Lu <hongjiu.lu@intel.com>
404
405 PR binutils/3826
406 * elf-bfd.h (elf_backend_data): Add elf_osabi.
407 (_bfd_elf_set_osabi): New.
408
409 * elf.c (_bfd_elf_set_osabi): New.
410
411 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
412 (elf_backend_post_process_headers): Defined with
413 _bfd_elf_set_osabi.
414 (ELF_OSABI): Properly defined for each target.
415
416 * elf32-i370.c (i370_elf_post_process_headers): Removed.
417 (ELF_OSABI): Defined.
418 (elf_backend_post_process_headers): Defined with
419 _bfd_elf_set_osabi.
420
421 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
422 freebsd.
423 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
424
425 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
426 (ELF_OSABI): Defined.
427 (elf_backend_post_process_headers): Defined with
428 _bfd_elf_set_osabi.
429
430 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
431 freebsd.
432 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
433 elf_osabi.
434
435 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
436 with elf_osabi.
437 (ELF_OSABI): Properly defined for each target.
438 (elf_backend_post_process_headers): Defined with
439 _bfd_elf_set_osabi for Linux.
440
441 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
442 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
443 (elf_backend_post_process_headers): Defined with
444 _bfd_elf_set_osabi.
445
446 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
447 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
448 (elf_backend_post_process_headers): Defined with
449 _bfd_elf_set_osabi.
450
451 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
452 with any ELF target of the compatible machine for which we do not
453 have a specific backend.
454
455 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
456 with elf_osabi.
457
458 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
459 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
460
d4c87fc1
AM
4612007-03-08 Alan Modra <amodra@bigpond.net.au>
462
463 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
464 V850_OTHER_* bits.
465
9c6fc49d
AM
4662007-03-08 Alan Modra <amodra@bigpond.net.au>
467
468 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
469 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
470 Run "make dep-am".
471 * Makefile.in: Regenerate.
472 * po/SRC-POTFILES.in: Regenerate.
473
faed74d6
L
4742007-03-07 H.J. Lu <hongjiu.lu@intel.com>
475
476 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
477 (x86_64-*-kfreebsd*-gnu): Likewise.
478 (x86_64-*-netbsd*): Likewise.
479 (x86_64-*-openbsd*): Likewise.
480 (x86_64-*-linux-*): Likewise.
481
482 * configure.in: Support bfd_efi_app_x86_64_vec.
483 * configure: Regenerated.
484
485 * efi-app-x86_64.c: New file.
486
487 * targets.c (bfd_efi_app_x86_64_vec): New.
488 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
489
15344ad7
L
4902007-03-07 Kai Tietz <kai.tietz@onevision.com>
491
492 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
493 const for type reloc_howto_type.
494
ab96bf03
AM
4952007-03-07 Alan Modra <amodra@bigpond.net.au>
496
497 PR 3958
498 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
499 (elf_discarded_section): Move..
500 * bfd-in.h: ..to here.
501 * bfd-in2.h: Regenerate.
502 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
503 from discarded sections before relocate_section has done its job.
504 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
505 relocs against symbols from discarded sections.
506 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
507 SECREL32.
508 (elf_hppa_relocate_section): Handle relocatable link after setting
509 sec, sym, h etc. for final link. Squash error messages for
510 relocatable link. Clear section contents for relocs against
511 symbols in discarded sections, and zero reloc. Remove existing
512 zero r_symndx code.
513 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
514 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
515 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
516 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
517 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
518 (bfin_relocate_section): Likewise.
519 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
520 * elf32-cris.c (cris_elf_relocate_section): Likewise.
521 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
522 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
523 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
524 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
525 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
526 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
527 * elf32-i370.c (i370_elf_relocate_section): Likewise.
528 * elf32-i386.c (elf_i386_relocate_section): Likewise.
529 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
530 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
531 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
532 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
533 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
534 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
535 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
536 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
537 * elf32-mep.c (mep_elf_relocate_section): Likewise.
538 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
539 * elf32-mt.c (mt_elf_relocate_section): Likewise.
540 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
541 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
542 * elf32-s390.c (elf_s390_relocate_section): Likewise.
543 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
544 * elf32-sh.c (sh_elf_relocate_section): Likewise.
545 * elf32-spu.c (spu_elf_relocate_section): Likewise.
546 * elf32-v850.c (v850_elf_relocate_section): Likewise.
547 * elf32-vax.c (elf_vax_relocate_section): Likewise.
548 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
549 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
550 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
551 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
552 (elf64_alpha_relocate_section): Likewise.
553 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
554 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
555 * elf64-s390.c (elf_s390_relocate_section): Likewise.
556 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
557 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
558 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
559 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
560 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
561
562 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
563 symbols for relocatable link. Don't use always-zero st_value.
564 (elf_backend_rela_normal): Don't define.
565 * elf32-bfin.c (bfinfdpic_relocate_section): Use
566 RELOC_FOR_GLOBAL_SYMBOL.
567 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
568 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
569 section symbol adjustments with same for relocatable link.
570 * elf32-i386.c (elf_i386_relocate_section): Likewise.
571 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
572 (elf32_m68hc11_check_relocs): ..to here.
573 * elf32-score.c (score_elf_final_link_relocate): Remove zero
574 r_symndx code.
575 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
576
0e922b77
AM
5772007-03-07 Alan Modra <amodra@bigpond.net.au>
578
579 PR 4144
580 * elf.c (assign_file_positions_for_load_sections): Don't
581 adjust p_memsz for !SEC_LOAD section vma modulo page size.
582 Instead, use the same lma based adjustment for SEC_LOAD
583 sections.
584
25c6282a
BW
5852007-03-01 Bob Wilson <bob.wilson@acm.org>
586
587 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
588 (find_relaxable_sections): Do not increment src_count for unknown
589 opcodes. Decode only once instead of calling is_l32r_relocation.
590 (compute_text_actions): Remove unused no_insn_move flag. Assert that
591 src_next matches src_count in relax_info.
592
066c2a57
JM
5932007-03-01 Joseph Myers <joseph@codesourcery.com>
594
595 * Makefile.am (bfdver.h): Use "." not " " between version number
596 and date.
597 * Makefile.in: Regenerate.
598 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
599 * configure: Regenerate.
600
ed6ba298
NS
6012007-02-28 Nathan Sidwell <nathan@codesourcery.com>
602
603 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
604
7a8757b3
AM
6052007-02-27 Alan Modra <amodra@bigpond.net.au>
606
607 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
608 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
609
024b2372
CD
6102007-02-23 Carlos O'Donell <carlos@codesourcery.com>
611
612 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
613 DWARF even with 64-bit addresses.
614 (_bfd_dwarf2_find_nearest_line): Likewise.
615
cb3ff1e5
NC
6162007-02-23 Nick Clifton <nickc@redhat.com>
617
618 PR binutils/3535
619 * elf.c (copy_private_bfd_data): Always rewrite the program
620 headers when a Solaris interpreter segment is involved.
621
6a5bb875
PB
6222007-02-22 Paul Brook <paul@codesourcery.com>
623
624 * elflink.c (gc_mark_hook_fn): Remove.
625 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
626 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
627 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
628 (elf_backend_data): Add gc_mark_extra_sections.
629 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
630 definition.
631 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
632 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
633 (elf_backend_gc_mark_extra_sections): Define.
634
2889e75b
NC
6352007-02-21 Nick Clifton <nickc@redhat.com>
636
637 * elf.c (_bfd_elf_map_sections_to_segments): If the
638 override_segment_assignment callback is defined then call it.
639
78859468
AM
6402007-02-21 Alan Modra <amodra@bigpond.net.au>
641
642 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
643
ae0d2616
TS
6442007-02-19 Thiemo Seufer <ths@mips.com>
645
646 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
647 translation marker from untranslatable strings.
648
6bfdb61b
AM
6492007-02-19 Alan Modra <amodra@bigpond.net.au>
650
651 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
652 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
653 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
654 (elfNN_bed): Init new field.
655 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
656
92f01d61
JM
6572007-02-17 Mark Mitchell <mark@codesourcery.com>
658 Nathan Sidwell <nathan@codesourcery.com>
659 Vladimir Prus <vladimir@codesourcery.com
660 Joseph Myers <joseph@codesourcery.com>
661
662 * configure.in (--with-pkgversion): New option.
663 * configure: Regenerate.
664 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
665 * Makefile.in: Regenerate.
666 * version.h (BFD_VERSION_STRING): Define using
667 @bfd_version_package@.
668
c0e3f241
CD
6692007-02-16 Carlos O'Donell <carlos@codesourcery.com>
670
671 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
672 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
673 and EF_MIPS_UCODE.
674
72f6ea61
AM
6752007-02-15 Alan Modra <amodra@bigpond.net.au>
676
677 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
678 declare.
679 (_bfd_norelocs_canonicalize_reloc): Likewise.
680 * libbfd.h: Regenerate.
681 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
682 (_bfd_norelocs_canonicalize_reloc): Likewise.
683 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
684 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
685 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
686 * ihex.c: Similarly.
687 * mach-o-target.c: Similarly.
688 * mach-o.c: Similarly.
689 * mmo.c: Similarly.
690 * pef.c: Similarly.
691 * ppcboot.c: Similarly.
692 * srec.c: Similarly.
693 * xsym.c: Similarly.
694
fab4a87f
L
6952007-02-14 H.J. Lu <hongjiu.lu@intel.com>
696
697 PR ld/3953
698 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
699 when adding default symbol.
700
e4e0193e
AM
7012007-02-13 Alan Modra <amodra@bigpond.net.au>
702
703 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
704 for branch lookup table.
705
84f5d08e
AM
7062007-02-12 Alan Modra <amodra@bigpond.net.au>
707
708 * elf64-ppc.c (create_linkage_sections): Don't create
709 .rela.rodata.brlt for --emit-relocs.
710 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
711 (ppc_size_one_stub): Count them. Simplify test of stub type
712 when counting stub relocs. Set SEC_RELOC too.
713 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
714 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
715
4aac632e
AM
7162007-02-12 Alan Modra <amodra@bigpond.net.au>
717
718 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
719 with a zero symbol index.
720
8da3dbc5
AM
7212007-02-12 Alan Modra <amodra@bigpond.net.au>
722
723 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
724
b31847af
DB
7252007-02-05 Dave Brolley <brolley@redhat.com>
726 Stan Cox <scox@redhat.com>
727
728 PR ld/3972
729 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
730
722b0ff7 7312007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
732 Richard Sandiford <rsandifo@redhat.com>
733 Stan Cox <scox@redhat.com>
734 Nick Clifton <nickc@redhat.com>
735 DJ Delorie <dj@redhat.com>
736 Frank Ch. Eigler <fche@redhat.com>
737 Ben Elliston <bje@redhat.com>
738 Richard Henderson <rth@redhat.com>
739
740 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
741 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
742 (BFD32_BACKENDS): Add elf32-mep.lo.
743 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
744 (cpu-mep.lo,elf32-mep.lo): New targets.
745 * archures.c (bfd_arch_mep): New enumerator.
746 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
747 (bfd_mep_arch): New external variable.
748 (bfd_archures_list): Add bfd_mep_arch.
749 * config.bfd: Support mep-*-elf.
750 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
751 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
752 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
753 declarations.
754 (_bfd_target_vector): Add bfd_elf32_mep_vec and
755 bfd_elf32_mep_little_vec.
722b0ff7
DB
756 * mep-relocs.pl: New file.
757 * cpu-mep.c: New file.
758 * elf32-mep.c: New file.
759 * bfd-in2.h: Regenerate.
e382d174 760 * po/POTFILES.in: Regenerate.
722b0ff7
DB
761 * libbfd.h: Regenerate.
762 * Makefile.in: Regenerate.
763 * configure: Regenerate.
764
d9352518
DB
7652007-02-05 Dave Brolley <brolley@redhat.com>
766
767 * elflink.c (evaluate_complex_relocation_symbols): Check for
768 STT_SRELC for global symbols.
769 (perform_complex_relocations): Renamed to
770 perform_complex_relocation and now examines only one relocation.
771 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 772 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
773 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
774 (OD,OS,OU): #undefs corrected to N, S and U repectively.
775 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
776 (complex_reloc_installation_howto): Removed.
777 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
778 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
779
d9352518 7802007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
781 Richard Sandiford <rsandifo@redhat.com>
782 DJ Delorie <dj@redhat.com>
783 Graydon Hoare <graydon@redhat.com>
784 Nick Clifton <nickc@cambridge.redhat.com>
785 Jeff Holcomb <jeffh@redhat.com>
786 Frank Ch. Eigler <fche@redhat.com>
787
788 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
789 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
790 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
791 * elflink.c (set_symbolValue): New static function.
d9352518
DB
792 (resolve_symbol): Likewise.
793 (resolve_section): Likewise.
794 (undefined_reference): Likewise.
795 (eval_symbol): Likewise.
796 (evaluate_complex_relocation_symbols): Likewise.
797 (put_value): Likewise.
798 (get_value): Likewise.
e382d174
DB
799 (decode_complex_addend):
800 (bfd_elf_perform_complex_relocation): New function.
801 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
802 * reloc.c (BFD_RELOC_RELC): New relocation number.
803 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 804
f1ab2340 8052007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 806
f1ab2340
BW
807 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
808 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
809 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
810 (elf_xtensa_allocate_got_size): Replace these with...
811 (elf_xtensa_allocate_dynrelocs): ...this new function.
812 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 813
e5f131d1 8142007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 815
e5f131d1
BW
816 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
817 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
818 Set src_mask to zero.
819 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
820 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 821
4608f3d9
BW
8222007-02-02 Bob Wilson <bob.wilson@acm.org>
823
824 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
825 (elf_xtensa_dynamic_symbol_p): ...this.
826
f0e6fdb2
BW
8272007-02-02 Bob Wilson <bob.wilson@acm.org>
828
829 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
830 (struct elf_xtensa_link_hash_table): New.
831 (elf_xtensa_hash_table): New.
832 (elf_xtensa_link_hash_table_create): New.
833 (elf_xtensa_check_relocs): Update plt_reloc_count references.
834 Update arguments to add_extra_plt_sections.
835 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
836 table. Update for plt_reloc_count and add_extra_plt_sections.
837 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
838 argument with link info. Update calls to elf_xtensa_get_plt_section
839 and elf_xtensa_get_gotplt_section.
840 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
841 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
842 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
843 (relax_property_section): Get sections from the hash table and update
844 function calls.
845 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
846 dynobj argument with link info. Get sections for first plt chunk from
847 the hash table.
848 (bfd_elf32_bfd_link_hash_table_create): Define.
849
c15f73f9
JJ
8502007-02-02 Jakub Jelinek <jakub@redhat.com>
851
852 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
853 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
854 (struct elf_symbol): Change first member into union.
855 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
856 internal syms. Only compare st_shndx fields.
857 (elf_create_symbuf): New function.
858 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
859 for bfds, use a binary search, otherwise don't qsort symbols
860 unnecessarily only to select which symbols are for the particular
861 shndx.
862
effdf42a
NC
8632007-02-01 Nick Clifton <nickc@redhat.com>
864
865 PR ld/3852
866 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
867 in the elf_link_hash_table structure.
868
183e98be
AM
8692007-02-01 Alan Modra <amodra@bigpond.net.au>
870
871 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
872 * elfxx-target.h (elf_backend_write_core_note): Define and use.
873 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
874 32-bit core note on 64-bit target.
875 (elfcore_write_prstatus): Likewise.
876 (elfcore_write_lwpstatus): Make note_name const.
877 (elfcore_write_prfpreg): Likewise.
878 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
879 target.
880 * elf32-ppc.c (ppc_elf_write_core_note): New function.
881 (elf_backend_write_core_note): Define.
882 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
883 (elf_backend_write_core_note): Define.
884
fc523535 8852007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
886
887 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
888 (elf32_bed): Defined for elf32-us-cris.
889
890 * elf64-sh64.c (elf64_bed): Defined for Linux.
891 (INCLUDED_TARGET_FILE): Removed.
892
893 * elfxx-target.h (elfNN_bed): Always define. Don't check
894 INCLUDED_TARGET_FILE.
895
c9b57b7e
DD
8962007-01-31 DJ Delorie <dj@redhat.com>
897
898 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
899 message for dangerous relocs, special case the common user error.
900
53020534
L
9012007-01-30 H.J. Lu <hongjiu.lu@intel.com>
902
903 * elf.c (copy_elf_program_header): Start from the first section
904 in a segment and stop when all sections in a segment are
905 accounted for.
906
c7b8f16e
JB
9072007-01-29 Julian Brown <julian@codesourcery.com>
908
909 * bfd-in2.h: Regenerate.
910 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
911 instruction scanning should be done.
912 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
913 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
914 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
915 prototype.
916 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
917 argument.
918 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
919 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
920 (elf32_vfp11_erratum_type): New enum.
921 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
922 veneers.
923 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
924 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
925 vfp11_fix and num_vfp11_fixes fields.
926 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
927 vfp11_erratum_glue_size, num_vfp11_fixes fields.
928 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
929 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
930 glue section.
931 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
932 to a section's map.
933 (record_vfp11_erratum_veneer): Create a single veneer, and its
934 associated symbols.
935 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
936 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
937 BFDs.
938 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
939 required.
940 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
941 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
942 (bfd_arm_vfp11_write_mask): Update write mask according to coded
943 register number.
944 (bfd_arm_vfp11_antidependency): New function.
945 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
946 (elf32_arm_compare_mapping): Declare.
947 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
948 BFD for potential erratum-triggering insns. Record results.
949 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
950 and branches to veneers have been placed in virtual memory after
951 layout.
952 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
953 hash table.
954 (elf32_arm_output_symbol_hook): Remove.
955 (elf32_arm_write_section): Output veneers, and branches to veneers.
956 Use maps from input sections, not output sections, for code
957 byte-swapping.
958 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
959 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
960 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
961 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
962
9632007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
964
965 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 966 (INCLUDED_TARGET_FILE): Removed.
83d1651b 967
914dfb0f
DA
9682007-01-27 Mike Frysinger <vapier@gentoo.org>
969
970 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
971 (INCLUDED_TARGET_FILE): Remove.
972
78eba9b6
DD
9732007-01-25 DJ Delorie <dj@redhat.com>
974
975 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
976 R_M32C_16 or R_M32C_24 relocs.
977
64ee10b6
NC
9782007-01-25 Nick Clifton <nickc@redhat.com>
979
980 PR binutils/3874
981 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
982 hash table was created by elf32_avr_link_hash_table_create before
983 using it.
984 (elf32_avr_link_hash_newfunc): New function. Just pass the call
985 through to _bfd_elf_link_hash_newfunc.
986 (elf32_avr_link_hash_table_create): Use
987 elf32_avr_link_hash_newfunc instead of
988 _bfd_elf_link_hash_newfunc.
989 (elf32_avr_relocate_section): Check for the hash table pointer
990 being NULL.
991 (elf32_avr_relax_section, avr_build_one_stub,
992 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
993 elf32_avr_build_stubs): Likewise.
994
40b36307
L
9952007-01-16 H.J. Lu <hongjiu.lu@intel.com>
996
997 PR ld/3831
998 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
999 argument, Elf_Internal_Sym *.
1000
1001 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
1002 symbol dynamic if info->dynamic_data is TRUE.
1003 (bfd_elf_record_link_assignment): Updated call to
1004 bfd_elf_record_link_assignment.
1005 (_bfd_elf_merge_symbol): Likewise. Always call
1006 bfd_elf_link_mark_dynamic_symbol.
1007
fc523535 10082007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
1009
1010 * Makefile.am (BFD_LIBS): Removed.
1011 * Makefile.in: Regenerated.
1012
fc523535 10132007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
1014
1015 PR binutils/3631
1016 * Makefile.am (OFILES): Add @bfd64_libs@.
1017 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
1018 * Makefile.in: Regenerated.
1019
1020 * configure.in (bfd_libs): Replaced by ...
1021 (bfd64_libs): This.
1022 * configure: Regenerated.
1023
59e0647f
NS
10242007-01-11 Nathan Sidwell <nathan@codesourcery.com>
1025
1026 * elf.c (assign_file_positions_for_load_sections): We can
1027 require fewer phdrs than expected.
1028
3bdcfdf4
KH
10292007-01-08 Kazu Hirata <kazu@codesourcery.com>
1030
1031 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
1032 * bfd-in2.h: Regenerate.
1033 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
1034 bfd_mach_cpu32_fido.
1035 (m68k_arch_features): Use fido_a instead of cpu32.
1036 (bfd_m68k_compatible): Reject the combination of Fido and
1037 ColdFire. Accept the combination of CPU32 and Fido with a
1038 warning.
1039 * elf32-m68k.c (elf32_m68k_object_p,
1040 elf32_m68k_merge_private_bfd_data,
1041 elf32_m68k_print_private_bfd_data): Treat Fido as an
1042 architecture by itself.
1043
42037fe5
NC
10442007-01-08 Kai Tietz <kai.tietz@onevision.com>
1045
1046 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
1047
ebe8b991
JJ
10482007-01-05 Jakub Jelinek <jakub@redhat.com>
1049
1050 * texhex.c (first_phase): Don't fall through into the default
1051 case.
1052 (pass_over): Replace abort () calls with return FALSE. Fix
1053 buffer overflow.
1054
b327f31f
AM
10552007-01-04 Jie Zhang <jie.zhang@analog.com>
1056
1057 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
1058 SEC_EXCLUDE on zero size .eh_frame.
1059
10a2343e 1060For older changes see ChangeLog-2006
56882138
AM
1061\f
1062Local Variables:
1063mode: change-log
1064left-margin: 8
1065fill-column: 74
1066version-control: never
1067End:
This page took 0.422382 seconds and 4 git commands to generate.