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