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