2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
187b3d5d
L
12007-03-15 H.J. Lu <hongjiu.lu@intel.com>
2
3 * doc/Makefile.in: Regenerated.
4
c428fa83
L
52007-03-15 H.J. Lu <hongjiu.lu@intel.com>
6
7 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
8 create doc/bfdver.texi.
9 * Makefile.in: Regenerated.
10
11 * configure.in (--with-bugurl): New option.
12 * configure: Regenerated.
13
14 * version.h (REPORT_BUGS_TO): New.
15
d1036acb
L
162007-03-13 H.J. Lu <hongjiu.lu@intel.com>
17
18 PR binutils/3826
19 * elf-bfd.h (elf_backend_data): Add elf_osabi.
20 (_bfd_elf_set_osabi): New.
21
22 * elf.c (_bfd_elf_set_osabi): New.
23
24 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
25 (elf_backend_post_process_headers): Defined with
26 _bfd_elf_set_osabi.
27 (ELF_OSABI): Properly defined for each target.
28
29 * elf32-i370.c (i370_elf_post_process_headers): Removed.
30 (ELF_OSABI): Defined.
31 (elf_backend_post_process_headers): Defined with
32 _bfd_elf_set_osabi.
33
34 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
35 freebsd.
36 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
37
38 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
39 (ELF_OSABI): Defined.
40 (elf_backend_post_process_headers): Defined with
41 _bfd_elf_set_osabi.
42
43 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
44 freebsd.
45 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
46 elf_osabi.
47
48 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
49 with elf_osabi.
50 (ELF_OSABI): Properly defined for each target.
51 (elf_backend_post_process_headers): Defined with
52 _bfd_elf_set_osabi for Linux.
53
54 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
55 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
56 (elf_backend_post_process_headers): Defined with
57 _bfd_elf_set_osabi.
58
59 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
60 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
61 (elf_backend_post_process_headers): Defined with
62 _bfd_elf_set_osabi.
63
64 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
65 with any ELF target of the compatible machine for which we do not
66 have a specific backend.
67
68 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
69 with elf_osabi.
70
71 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
72 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
73
d4c87fc1
AM
742007-03-08 Alan Modra <amodra@bigpond.net.au>
75
76 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
77 V850_OTHER_* bits.
78
9c6fc49d
AM
792007-03-08 Alan Modra <amodra@bigpond.net.au>
80
81 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
82 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
83 Run "make dep-am".
84 * Makefile.in: Regenerate.
85 * po/SRC-POTFILES.in: Regenerate.
86
faed74d6
L
872007-03-07 H.J. Lu <hongjiu.lu@intel.com>
88
89 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
90 (x86_64-*-kfreebsd*-gnu): Likewise.
91 (x86_64-*-netbsd*): Likewise.
92 (x86_64-*-openbsd*): Likewise.
93 (x86_64-*-linux-*): Likewise.
94
95 * configure.in: Support bfd_efi_app_x86_64_vec.
96 * configure: Regenerated.
97
98 * efi-app-x86_64.c: New file.
99
100 * targets.c (bfd_efi_app_x86_64_vec): New.
101 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
102
15344ad7
L
1032007-03-07 Kai Tietz <kai.tietz@onevision.com>
104
105 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
106 const for type reloc_howto_type.
107
ab96bf03
AM
1082007-03-07 Alan Modra <amodra@bigpond.net.au>
109
110 PR 3958
111 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
112 (elf_discarded_section): Move..
113 * bfd-in.h: ..to here.
114 * bfd-in2.h: Regenerate.
115 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
116 from discarded sections before relocate_section has done its job.
117 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
118 relocs against symbols from discarded sections.
119 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
120 SECREL32.
121 (elf_hppa_relocate_section): Handle relocatable link after setting
122 sec, sym, h etc. for final link. Squash error messages for
123 relocatable link. Clear section contents for relocs against
124 symbols in discarded sections, and zero reloc. Remove existing
125 zero r_symndx code.
126 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
127 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
128 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
129 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
130 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
131 (bfin_relocate_section): Likewise.
132 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
133 * elf32-cris.c (cris_elf_relocate_section): Likewise.
134 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
135 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
136 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
137 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
138 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
139 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
140 * elf32-i370.c (i370_elf_relocate_section): Likewise.
141 * elf32-i386.c (elf_i386_relocate_section): Likewise.
142 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
143 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
144 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
145 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
146 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
147 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
148 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
149 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
150 * elf32-mep.c (mep_elf_relocate_section): Likewise.
151 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
152 * elf32-mt.c (mt_elf_relocate_section): Likewise.
153 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
154 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
155 * elf32-s390.c (elf_s390_relocate_section): Likewise.
156 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
157 * elf32-sh.c (sh_elf_relocate_section): Likewise.
158 * elf32-spu.c (spu_elf_relocate_section): Likewise.
159 * elf32-v850.c (v850_elf_relocate_section): Likewise.
160 * elf32-vax.c (elf_vax_relocate_section): Likewise.
161 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
162 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
163 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
164 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
165 (elf64_alpha_relocate_section): Likewise.
166 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
167 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
168 * elf64-s390.c (elf_s390_relocate_section): Likewise.
169 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
170 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
171 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
172 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
173 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
174
175 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
176 symbols for relocatable link. Don't use always-zero st_value.
177 (elf_backend_rela_normal): Don't define.
178 * elf32-bfin.c (bfinfdpic_relocate_section): Use
179 RELOC_FOR_GLOBAL_SYMBOL.
180 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
181 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
182 section symbol adjustments with same for relocatable link.
183 * elf32-i386.c (elf_i386_relocate_section): Likewise.
184 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
185 (elf32_m68hc11_check_relocs): ..to here.
186 * elf32-score.c (score_elf_final_link_relocate): Remove zero
187 r_symndx code.
188 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
189
0e922b77
AM
1902007-03-07 Alan Modra <amodra@bigpond.net.au>
191
192 PR 4144
193 * elf.c (assign_file_positions_for_load_sections): Don't
194 adjust p_memsz for !SEC_LOAD section vma modulo page size.
195 Instead, use the same lma based adjustment for SEC_LOAD
196 sections.
197
25c6282a
BW
1982007-03-01 Bob Wilson <bob.wilson@acm.org>
199
200 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
201 (find_relaxable_sections): Do not increment src_count for unknown
202 opcodes. Decode only once instead of calling is_l32r_relocation.
203 (compute_text_actions): Remove unused no_insn_move flag. Assert that
204 src_next matches src_count in relax_info.
205
066c2a57
JM
2062007-03-01 Joseph Myers <joseph@codesourcery.com>
207
208 * Makefile.am (bfdver.h): Use "." not " " between version number
209 and date.
210 * Makefile.in: Regenerate.
211 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
212 * configure: Regenerate.
213
ed6ba298
NS
2142007-02-28 Nathan Sidwell <nathan@codesourcery.com>
215
216 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
217
7a8757b3
AM
2182007-02-27 Alan Modra <amodra@bigpond.net.au>
219
220 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
221 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
222
024b2372
CD
2232007-02-23 Carlos O'Donell <carlos@codesourcery.com>
224
225 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
226 DWARF even with 64-bit addresses.
227 (_bfd_dwarf2_find_nearest_line): Likewise.
228
cb3ff1e5
NC
2292007-02-23 Nick Clifton <nickc@redhat.com>
230
231 PR binutils/3535
232 * elf.c (copy_private_bfd_data): Always rewrite the program
233 headers when a Solaris interpreter segment is involved.
234
6a5bb875
PB
2352007-02-22 Paul Brook <paul@codesourcery.com>
236
237 * elflink.c (gc_mark_hook_fn): Remove.
238 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
239 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
240 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
241 (elf_backend_data): Add gc_mark_extra_sections.
242 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
243 definition.
244 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
245 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
246 (elf_backend_gc_mark_extra_sections): Define.
247
2889e75b
NC
2482007-02-21 Nick Clifton <nickc@redhat.com>
249
250 * elf.c (_bfd_elf_map_sections_to_segments): If the
251 override_segment_assignment callback is defined then call it.
252
78859468
AM
2532007-02-21 Alan Modra <amodra@bigpond.net.au>
254
255 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
256
ae0d2616
TS
2572007-02-19 Thiemo Seufer <ths@mips.com>
258
259 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
260 translation marker from untranslatable strings.
261
6bfdb61b
AM
2622007-02-19 Alan Modra <amodra@bigpond.net.au>
263
264 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
265 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
266 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
267 (elfNN_bed): Init new field.
268 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
269
92f01d61
JM
2702007-02-17 Mark Mitchell <mark@codesourcery.com>
271 Nathan Sidwell <nathan@codesourcery.com>
272 Vladimir Prus <vladimir@codesourcery.com
273 Joseph Myers <joseph@codesourcery.com>
274
275 * configure.in (--with-pkgversion): New option.
276 * configure: Regenerate.
277 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
278 * Makefile.in: Regenerate.
279 * version.h (BFD_VERSION_STRING): Define using
280 @bfd_version_package@.
281
c0e3f241
CD
2822007-02-16 Carlos O'Donell <carlos@codesourcery.com>
283
284 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
285 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
286 and EF_MIPS_UCODE.
287
72f6ea61
AM
2882007-02-15 Alan Modra <amodra@bigpond.net.au>
289
290 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
291 declare.
292 (_bfd_norelocs_canonicalize_reloc): Likewise.
293 * libbfd.h: Regenerate.
294 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
295 (_bfd_norelocs_canonicalize_reloc): Likewise.
296 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
297 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
298 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
299 * ihex.c: Similarly.
300 * mach-o-target.c: Similarly.
301 * mach-o.c: Similarly.
302 * mmo.c: Similarly.
303 * pef.c: Similarly.
304 * ppcboot.c: Similarly.
305 * srec.c: Similarly.
306 * xsym.c: Similarly.
307
fab4a87f
L
3082007-02-14 H.J. Lu <hongjiu.lu@intel.com>
309
310 PR ld/3953
311 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
312 when adding default symbol.
313
e4e0193e
AM
3142007-02-13 Alan Modra <amodra@bigpond.net.au>
315
316 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
317 for branch lookup table.
318
84f5d08e
AM
3192007-02-12 Alan Modra <amodra@bigpond.net.au>
320
321 * elf64-ppc.c (create_linkage_sections): Don't create
322 .rela.rodata.brlt for --emit-relocs.
323 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
324 (ppc_size_one_stub): Count them. Simplify test of stub type
325 when counting stub relocs. Set SEC_RELOC too.
326 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
327 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
328
4aac632e
AM
3292007-02-12 Alan Modra <amodra@bigpond.net.au>
330
331 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
332 with a zero symbol index.
333
8da3dbc5
AM
3342007-02-12 Alan Modra <amodra@bigpond.net.au>
335
336 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
337
b31847af
DB
3382007-02-05 Dave Brolley <brolley@redhat.com>
339 Stan Cox <scox@redhat.com>
340
341 PR ld/3972
342 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
343
722b0ff7 3442007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
345 Richard Sandiford <rsandifo@redhat.com>
346 Stan Cox <scox@redhat.com>
347 Nick Clifton <nickc@redhat.com>
348 DJ Delorie <dj@redhat.com>
349 Frank Ch. Eigler <fche@redhat.com>
350 Ben Elliston <bje@redhat.com>
351 Richard Henderson <rth@redhat.com>
352
353 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
354 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
355 (BFD32_BACKENDS): Add elf32-mep.lo.
356 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
357 (cpu-mep.lo,elf32-mep.lo): New targets.
358 * archures.c (bfd_arch_mep): New enumerator.
359 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
360 (bfd_mep_arch): New external variable.
361 (bfd_archures_list): Add bfd_mep_arch.
362 * config.bfd: Support mep-*-elf.
363 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
364 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
365 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
366 declarations.
367 (_bfd_target_vector): Add bfd_elf32_mep_vec and
368 bfd_elf32_mep_little_vec.
722b0ff7
DB
369 * mep-relocs.pl: New file.
370 * cpu-mep.c: New file.
371 * elf32-mep.c: New file.
372 * bfd-in2.h: Regenerate.
e382d174 373 * po/POTFILES.in: Regenerate.
722b0ff7
DB
374 * libbfd.h: Regenerate.
375 * Makefile.in: Regenerate.
376 * configure: Regenerate.
377
d9352518
DB
3782007-02-05 Dave Brolley <brolley@redhat.com>
379
380 * elflink.c (evaluate_complex_relocation_symbols): Check for
381 STT_SRELC for global symbols.
382 (perform_complex_relocations): Renamed to
383 perform_complex_relocation and now examines only one relocation.
384 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 385 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
386 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
387 (OD,OS,OU): #undefs corrected to N, S and U repectively.
388 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
389 (complex_reloc_installation_howto): Removed.
390 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
391 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
392
d9352518 3932007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
394 Richard Sandiford <rsandifo@redhat.com>
395 DJ Delorie <dj@redhat.com>
396 Graydon Hoare <graydon@redhat.com>
397 Nick Clifton <nickc@cambridge.redhat.com>
398 Jeff Holcomb <jeffh@redhat.com>
399 Frank Ch. Eigler <fche@redhat.com>
400
401 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
402 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
403 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
404 * elflink.c (set_symbolValue): New static function.
d9352518
DB
405 (resolve_symbol): Likewise.
406 (resolve_section): Likewise.
407 (undefined_reference): Likewise.
408 (eval_symbol): Likewise.
409 (evaluate_complex_relocation_symbols): Likewise.
410 (put_value): Likewise.
411 (get_value): Likewise.
e382d174
DB
412 (decode_complex_addend):
413 (bfd_elf_perform_complex_relocation): New function.
414 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
415 * reloc.c (BFD_RELOC_RELC): New relocation number.
416 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 417
f1ab2340 4182007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 419
f1ab2340
BW
420 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
421 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
422 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
423 (elf_xtensa_allocate_got_size): Replace these with...
424 (elf_xtensa_allocate_dynrelocs): ...this new function.
425 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 426
e5f131d1 4272007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 428
e5f131d1
BW
429 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
430 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
431 Set src_mask to zero.
432 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
433 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 434
4608f3d9
BW
4352007-02-02 Bob Wilson <bob.wilson@acm.org>
436
437 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
438 (elf_xtensa_dynamic_symbol_p): ...this.
439
f0e6fdb2
BW
4402007-02-02 Bob Wilson <bob.wilson@acm.org>
441
442 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
443 (struct elf_xtensa_link_hash_table): New.
444 (elf_xtensa_hash_table): New.
445 (elf_xtensa_link_hash_table_create): New.
446 (elf_xtensa_check_relocs): Update plt_reloc_count references.
447 Update arguments to add_extra_plt_sections.
448 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
449 table. Update for plt_reloc_count and add_extra_plt_sections.
450 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
451 argument with link info. Update calls to elf_xtensa_get_plt_section
452 and elf_xtensa_get_gotplt_section.
453 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
454 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
455 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
456 (relax_property_section): Get sections from the hash table and update
457 function calls.
458 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
459 dynobj argument with link info. Get sections for first plt chunk from
460 the hash table.
461 (bfd_elf32_bfd_link_hash_table_create): Define.
462
c15f73f9
JJ
4632007-02-02 Jakub Jelinek <jakub@redhat.com>
464
465 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
466 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
467 (struct elf_symbol): Change first member into union.
468 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
469 internal syms. Only compare st_shndx fields.
470 (elf_create_symbuf): New function.
471 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
472 for bfds, use a binary search, otherwise don't qsort symbols
473 unnecessarily only to select which symbols are for the particular
474 shndx.
475
effdf42a
NC
4762007-02-01 Nick Clifton <nickc@redhat.com>
477
478 PR ld/3852
479 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
480 in the elf_link_hash_table structure.
481
183e98be
AM
4822007-02-01 Alan Modra <amodra@bigpond.net.au>
483
484 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
485 * elfxx-target.h (elf_backend_write_core_note): Define and use.
486 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
487 32-bit core note on 64-bit target.
488 (elfcore_write_prstatus): Likewise.
489 (elfcore_write_lwpstatus): Make note_name const.
490 (elfcore_write_prfpreg): Likewise.
491 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
492 target.
493 * elf32-ppc.c (ppc_elf_write_core_note): New function.
494 (elf_backend_write_core_note): Define.
495 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
496 (elf_backend_write_core_note): Define.
497
fc523535 4982007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
499
500 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
501 (elf32_bed): Defined for elf32-us-cris.
502
503 * elf64-sh64.c (elf64_bed): Defined for Linux.
504 (INCLUDED_TARGET_FILE): Removed.
505
506 * elfxx-target.h (elfNN_bed): Always define. Don't check
507 INCLUDED_TARGET_FILE.
508
c9b57b7e
DD
5092007-01-31 DJ Delorie <dj@redhat.com>
510
511 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
512 message for dangerous relocs, special case the common user error.
513
53020534
L
5142007-01-30 H.J. Lu <hongjiu.lu@intel.com>
515
516 * elf.c (copy_elf_program_header): Start from the first section
517 in a segment and stop when all sections in a segment are
518 accounted for.
519
c7b8f16e
JB
5202007-01-29 Julian Brown <julian@codesourcery.com>
521
522 * bfd-in2.h: Regenerate.
523 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
524 instruction scanning should be done.
525 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
526 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
527 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
528 prototype.
529 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
530 argument.
531 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
532 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
533 (elf32_vfp11_erratum_type): New enum.
534 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
535 veneers.
536 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
537 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
538 vfp11_fix and num_vfp11_fixes fields.
539 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
540 vfp11_erratum_glue_size, num_vfp11_fixes fields.
541 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
542 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
543 glue section.
544 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
545 to a section's map.
546 (record_vfp11_erratum_veneer): Create a single veneer, and its
547 associated symbols.
548 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
549 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
550 BFDs.
551 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
552 required.
553 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
554 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
555 (bfd_arm_vfp11_write_mask): Update write mask according to coded
556 register number.
557 (bfd_arm_vfp11_antidependency): New function.
558 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
559 (elf32_arm_compare_mapping): Declare.
560 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
561 BFD for potential erratum-triggering insns. Record results.
562 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
563 and branches to veneers have been placed in virtual memory after
564 layout.
565 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
566 hash table.
567 (elf32_arm_output_symbol_hook): Remove.
568 (elf32_arm_write_section): Output veneers, and branches to veneers.
569 Use maps from input sections, not output sections, for code
570 byte-swapping.
571 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
572 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
573 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
574 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
575
5762007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
577
578 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 579 (INCLUDED_TARGET_FILE): Removed.
83d1651b 580
914dfb0f
DA
5812007-01-27 Mike Frysinger <vapier@gentoo.org>
582
583 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
584 (INCLUDED_TARGET_FILE): Remove.
585
78eba9b6
DD
5862007-01-25 DJ Delorie <dj@redhat.com>
587
588 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
589 R_M32C_16 or R_M32C_24 relocs.
590
64ee10b6
NC
5912007-01-25 Nick Clifton <nickc@redhat.com>
592
593 PR binutils/3874
594 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
595 hash table was created by elf32_avr_link_hash_table_create before
596 using it.
597 (elf32_avr_link_hash_newfunc): New function. Just pass the call
598 through to _bfd_elf_link_hash_newfunc.
599 (elf32_avr_link_hash_table_create): Use
600 elf32_avr_link_hash_newfunc instead of
601 _bfd_elf_link_hash_newfunc.
602 (elf32_avr_relocate_section): Check for the hash table pointer
603 being NULL.
604 (elf32_avr_relax_section, avr_build_one_stub,
605 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
606 elf32_avr_build_stubs): Likewise.
607
40b36307
L
6082007-01-16 H.J. Lu <hongjiu.lu@intel.com>
609
610 PR ld/3831
611 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
612 argument, Elf_Internal_Sym *.
613
614 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
615 symbol dynamic if info->dynamic_data is TRUE.
616 (bfd_elf_record_link_assignment): Updated call to
617 bfd_elf_record_link_assignment.
618 (_bfd_elf_merge_symbol): Likewise. Always call
619 bfd_elf_link_mark_dynamic_symbol.
620
fc523535 6212007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
622
623 * Makefile.am (BFD_LIBS): Removed.
624 * Makefile.in: Regenerated.
625
fc523535 6262007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
627
628 PR binutils/3631
629 * Makefile.am (OFILES): Add @bfd64_libs@.
630 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
631 * Makefile.in: Regenerated.
632
633 * configure.in (bfd_libs): Replaced by ...
634 (bfd64_libs): This.
635 * configure: Regenerated.
636
59e0647f
NS
6372007-01-11 Nathan Sidwell <nathan@codesourcery.com>
638
639 * elf.c (assign_file_positions_for_load_sections): We can
640 require fewer phdrs than expected.
641
3bdcfdf4
KH
6422007-01-08 Kazu Hirata <kazu@codesourcery.com>
643
644 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
645 * bfd-in2.h: Regenerate.
646 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
647 bfd_mach_cpu32_fido.
648 (m68k_arch_features): Use fido_a instead of cpu32.
649 (bfd_m68k_compatible): Reject the combination of Fido and
650 ColdFire. Accept the combination of CPU32 and Fido with a
651 warning.
652 * elf32-m68k.c (elf32_m68k_object_p,
653 elf32_m68k_merge_private_bfd_data,
654 elf32_m68k_print_private_bfd_data): Treat Fido as an
655 architecture by itself.
656
42037fe5
NC
6572007-01-08 Kai Tietz <kai.tietz@onevision.com>
658
659 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
660
ebe8b991
JJ
6612007-01-05 Jakub Jelinek <jakub@redhat.com>
662
663 * texhex.c (first_phase): Don't fall through into the default
664 case.
665 (pass_over): Replace abort () calls with return FALSE. Fix
666 buffer overflow.
667
b327f31f
AM
6682007-01-04 Jie Zhang <jie.zhang@analog.com>
669
670 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
671 SEC_EXCLUDE on zero size .eh_frame.
672
10a2343e 673For older changes see ChangeLog-2006
56882138
AM
674\f
675Local Variables:
676mode: change-log
677left-margin: 8
678fill-column: 74
679version-control: never
680End:
This page took 0.46585 seconds and 4 git commands to generate.