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