Commit | Line | Data |
---|---|---|
ad9563d6 CM |
1 | 2008-02-27 Catherine Moore <clm@codesourcery.com> |
2 | ||
3 | * elf.c ( _bfd_elf_print_private_bfd_data): Call | |
4 | elf_backend_get_target_dtag if defined. | |
5 | * elf32-mips.c (elf_backend_get_target_dtag): Define. | |
6 | * elf64-mips.c: Likewise. | |
7 | * elfn32-mips.c: Likewise. | |
8 | * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New. | |
9 | * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare. | |
10 | * elf-bfd.h (elf_backend_get_target_dtag): Add prototype. | |
11 | * elfxx-target.h (elf_backend_get_target_dtag): Add default. | |
12 | (elf_backend_data): Add elf_backend_get_target_dtag. | |
13 | ||
625af618 AM |
14 | 2008-02-26 Alan Modra <amodra@bigpond.net.au> |
15 | ||
16 | * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed | |
17 | for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms, | |
18 | and assume branch relocs are not dynamic when non-shared. | |
19 | (readonly_dynrelocs): New function, split out from.. | |
20 | (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs. | |
21 | (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries, | |
22 | clear non_got_ref.. | |
23 | (allocate_dynrelocs): ..and don't set u.def for undefined weak. | |
24 | Do allow dynamic relocs on undefined symbols. | |
25 | (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs. | |
26 | (ppc_elf_relocate_section): Mirror dynamic reloc changes in | |
27 | check_relocs. | |
28 | (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak | |
29 | plt symbols needing pointer_equality_needed. | |
30 | ||
1cd81501 AM |
31 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
32 | ||
33 | * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change. | |
34 | ||
0eb4a168 AM |
35 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
36 | ||
37 | * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy | |
38 | pointer_equality_needed. | |
39 | (ppc_elf_check_relocs): Split out non-branch relocs from others | |
40 | that might emit dynamic relocs. Set pointer_equality_needed | |
41 | for their symbols. Don't set non_got_ref on branch reloc symbols. | |
42 | (ppc_elf_hash_symbol): New function. | |
43 | (elf_backend_hash_symbol): Define. | |
44 | (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed. | |
45 | Error if pointer_equality_needed on weak plt symbol. | |
46 | ||
3ae181ee L |
47 | 2008-02-22 H.J. Lu <hongjiu.lu@intel.com> |
48 | ||
49 | PR ld/5788 | |
50 | * elflink.c (elf_create_symbuf): Correct buffer size and | |
51 | position. | |
52 | ||
34b5e0b2 NC |
53 | 2008-02-22 Nick Clifton <nickc@redhat.com> |
54 | ||
55 | PR 868 | |
3ae181ee | 56 | * dwarf2.c: Revert previous patch. All of the allocate memory is |
34b5e0b2 | 57 | on an obstack which will be freed at some other time. |
0eb4a168 | 58 | |
515ef31d NC |
59 | 2008-02-20 Nick Clifton <nickc@redhat.com> |
60 | ||
61 | PR 868 | |
62 | * libbfd.c (bfd_realloc_or_free): New function. Performs like | |
63 | bfd_realloc, but if the (re)allocation fails, the pointer is | |
64 | freed. | |
65 | * libbfd-in.h: Prototype. | |
66 | * libbfd.h: Regenerate. | |
67 | * bfdio.c (bfd_bwrite): Use the new function. | |
68 | (bfd_seek): Likewise. | |
69 | * bfdwin.c:(bfd_get_file_window): Likewise. | |
70 | * elf-strtab.c (_bfd_elf_strtab_add): Likewise. | |
71 | * elf32-ppc.c (ppc_elf_relax_section): Likewise. | |
72 | * elf32-xtensa.c (vsprintf_msg): Likewise. | |
73 | * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise. | |
74 | * stabs.c (_bfd_link_seciton_stabs): Likewise. | |
75 | * vms-misc.c (_bfd_vms_get_record): Likewise. | |
76 | * vms-tir.c (check_section): Likewise. | |
77 | * vms.c (vms_new_section_hook): Likewise. | |
78 | * elf32-arm.c (elf32_arm_section_map_add): Check that the | |
79 | allocation of sec_data->map succeeded before using it. | |
80 | * elflink.c (elf_link_output_sym): Do not overwrite finfo-> | |
81 | symshndxbuf until it is known that the reallocation succeeded. | |
82 | ||
b42bf1e0 NC |
83 | 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br> |
84 | Nick Clifton <nickc@redhat.com> | |
85 | ||
86 | PR 868 | |
87 | * dwarf2.c (read_abbrevs): Free the abbreviation table if we run | |
88 | out of memory. | |
89 | (decode_line_info): Free the line_info_table before returning a | |
90 | failure result. | |
91 | (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table. | |
92 | Free the line table. Free the function table. Free the variable | |
93 | table. | |
94 | ||
0a40daed MK |
95 | 2008-02-17 Mark Kettenis <kettenis@gnu.org> |
96 | ||
97 | * elf.c (swap_out_syms): Avoid preprocessing directive within | |
98 | macro arg. | |
99 | ||
3f001e84 JK |
100 | 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
101 | ||
102 | * elf.c (assign_file_positions_for_load_sections): Set the type of | |
103 | PT_NOTE sections to SHT_NOTE. | |
104 | ||
37da76e8 AM |
105 | 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
106 | ||
107 | * simple.c (bfd_simple_get_relocated_section_contents): Set | |
108 | link_info.output_bfd. | |
109 | ||
d74e4b29 NS |
110 | 2008-02-16 Nathan Sidwell <nathan@codesourcery.com> |
111 | ||
112 | * dwarf2.c (find_line): Don't trust debug information after an | |
113 | unparseable compilation unit. | |
114 | ||
f856272b AM |
115 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
116 | ||
117 | PR 5765 | |
118 | * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags. | |
119 | * bfd-in2.h: Regenerate. | |
120 | ||
0c8d6e5c AM |
121 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
122 | ||
123 | * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA. | |
124 | * elf.c (bfd_elf_allocate_object): Don't check for already allocated | |
125 | tdata. | |
126 | * elf32-hppa.c (elf32_hppa_mkobject): New function. | |
127 | (bfd_elf32_mkobject): Define. | |
128 | * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with.. | |
129 | (is_ppc_elf): ..this new macro. | |
130 | * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with.. | |
131 | (is_ppc64_elf): ..this new macro. | |
132 | ||
f13a99db AM |
133 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
134 | ||
135 | * elflink.c: Replace all accesses to hash->creator field with | |
136 | output_bfd->xvec. | |
137 | * cofflink.c: Likewise. | |
138 | * coff-h8300.c: Likewise. | |
139 | * ecoff.c: Likewise. | |
140 | * elf32-m68hc1x.c: Likewise. | |
141 | * elf32-ppc.c: Likewise. | |
142 | * elf64-alpha.c: Likewise. | |
143 | * elf64-ppc.c: Likewise. | |
144 | * elf64-sparc.c: Likewise. | |
145 | * elfxx-mips.c: Likewise. | |
146 | * i386linux.c: Likewise. | |
147 | * m68klinux.c: Likewise. | |
148 | * sparclinux.c: Likewise. | |
149 | * sunos.c: Likewise. | |
150 | * xcofflink.c: Likewise. | |
151 | * linker.c: Likewise. | |
152 | (_bfd_link_hash_table_init): Don't store creator. | |
153 | ||
e81819a5 NC |
154 | 2008-02-14 Peter Jones <pjones@redhat.com> |
155 | ||
156 | * efi-rtdrv-ia32.c: New file. | |
157 | * efi-bsdrv-ia32.c: New file. | |
158 | * efi-rtdrv-ia64.c: New file. | |
159 | * efi-bsdrv-ia64.c: New file. | |
160 | * efi-rtdrv-x86_64.c: New file. | |
161 | * efi-bsdrv-x86_64.c: New file. | |
162 | * peicode.h (pe_bfd_object_p): Add support for boot service and | |
163 | runtime service drivers. | |
164 | * libpei.h: Add macros for EFI formats, and rename the efi application | |
165 | format macros to disambiguate. | |
166 | * targets.c: Add bfd_target _vec externs. | |
167 | (_bfd_tar): Add EFI _vec entries. | |
168 | * config.bfd: Add EFI vectors into the selection routines. | |
169 | * configure.in: add EFI _vec entries. | |
170 | * configure: Regenerate. | |
171 | * Makefile.am: Add EFI files. | |
172 | * Makefile.in: Regenerate. | |
173 | ||
ab1579fd NS |
174 | 2008-02-14 Nathan Sidwell <nathan@codesourcery.com> |
175 | ||
176 | * dwarf1.c (struct dwarf1_debug): Add syms member. | |
177 | (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory. | |
178 | (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate | |
179 | section contents, check for out of memory. | |
180 | ||
181 | * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte. | |
182 | (parse_die): Change data pointers to bfd_byte. | |
183 | (parse_line_table, parse_functions_in_unit): Likewise. | |
184 | ||
d40f3da9 AM |
185 | 2008-02-14 Alan Modra <amodra@bigpond.net.au> |
186 | ||
187 | * elflink.c (compute_bucket_count): Warning fixes. | |
188 | ||
f15557e4 DD |
189 | 2008-02-12 DJ Delorie <dj@redhat.com> |
190 | ||
191 | * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of | |
192 | relocation pointing to local symbol in merged section. | |
193 | ||
194 | * elf32-iq2000.c (iq2000_elf_relocate_offset16): New. | |
195 | (iq2000_elf_relocate_section): Call it. | |
196 | ||
0ffa91dd NC |
197 | 2008-02-12 Nick Clifton <nickc@redhat.com> |
198 | ||
199 | PR ld/5692 | |
200 | * elf-bfd.h (enum elf_object_id): New enum, used to identify | |
201 | target specific extensions to the elf_obj_tdata structure. | |
202 | (struct elf_obj_tdata): New field 'object_id'. | |
203 | (elf_object_id, elf_program_header_size, elf_symtab_hdr): New | |
204 | macros for accessing fields in the elf_obj_tdata structure. | |
205 | (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object. | |
206 | (bfd_elf_allocate_object): New function. | |
207 | * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object | |
208 | and implement by calling bfd_elf_allocate_object. | |
209 | (bfd_elf_allocate_object): New function: Allocates an | |
210 | elf_obj_tdata structure, possibly with a target specific | |
211 | extension. | |
212 | * elfxx-target.h (bfd_elfNN_mkobject): Use | |
213 | bfd_elf_make_generic_object as the default value. | |
214 | * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata | |
215 | for consistency with other, similar structures. | |
216 | (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM | |
217 | ELF bfd. | |
218 | (elf32_arm_mkobject): Call bfd_elf_allocate_object. | |
219 | (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check | |
220 | the bfd being processed. | |
221 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. | |
222 | (bfd_elf32_arm_set_target_relocs): Likewise. | |
223 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
224 | (bfd_elf32_arm_copy_private_bfd_data): Likewise. | |
225 | (bfd_elf32_arm_merge_eabi_attributes): Likewise. | |
226 | (bfd_elf32_arm_merge_private_bfd_data): Likewise. | |
227 | (bfd_elf32_arm_check_relocs): Likewise. | |
228 | (bfd_elf32_arm_gc_mark_extra_sections): Likewise. | |
229 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
230 | (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr. | |
231 | (bfd_elf32_arm_init_maps): Likewise. | |
232 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
233 | (bfd_elf32_arm_relocate_section): Likewise. | |
234 | (bfd_elf32_arm_gc_sweep_hook): Likewise. | |
235 | (bfd_elf32_arm_check_relocs): Likewise. | |
236 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
237 | * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object. | |
238 | (is_i386_elf): New macro. Checks a BFD to make sure that is an x86 | |
239 | ELF bfd. | |
240 | (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd | |
241 | being processed. | |
242 | (elf_i386_size_dynamic_sections): Likewise. | |
243 | (elf_i386_relocate_section): Likewise. | |
244 | (elf_i386_check_relocs): Use elf_symtab_hdr. | |
245 | (elf_i386_gc_sweep_hook): Likewise. | |
246 | (elf_i386_size_dynamic_sections): Likewise. | |
247 | (elf_i386_relocate_section): Likewise. | |
248 | * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object. | |
249 | (elf_create_pointer_linker_section): Use is_ppc_elf_target to | |
250 | verify that the bfd before accessing target specific fields. | |
251 | (ppc_elf_check_relocs): Likewise. | |
252 | (elf_finish_pointer_linker_section): Likewise. | |
253 | (elf_create_pointer_linker_section): Use elf_symtab_hdr. | |
254 | (ppc_elf_check_relocs): Likewise. | |
255 | (ppc_elf_gc_sweep_hook): Likewise. | |
256 | (ppc_elf_tls_optimize): Likewise. | |
257 | (ppc_elf_size_dynamic_sections): Likewise. | |
258 | (ppc_elf_relax_section): Likewise. | |
259 | (ppc_elf_relocate_section): Likewise. | |
260 | * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment | |
261 | reminding programmers to keep this structure in sync with the one | |
262 | defined in elf64-s390.c. | |
263 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
264 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
265 | ELF bfd. | |
266 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
267 | being processed. | |
268 | (elf_s390_size_dynamic_sections): Likewise. | |
269 | (elf_s390_relocate_section): Likewise. | |
270 | (elf_s390_check_relocs): Use elf_symtab_hdr. | |
271 | (elf_s390_gc_sweep_hook): Likewise. | |
272 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 273 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
274 | * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object. |
275 | (is_sh_elf): New macro. Checks a BFD to make sure that is an SH | |
276 | ELF bfd. | |
277 | (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the | |
278 | bfd being processed. | |
279 | (sh_elf_relocate_section): Likewise. | |
280 | (sh_elf_check_relocs): Likewise. | |
281 | (sh_elf_copy_private_data): Likewise. | |
282 | (sh_elf_relax_section): Use elf_symtab_hdr. | |
283 | (sh_elf_size_dynamic_sections): Likewise. | |
284 | (sh_elf_relocate_section): Likewise. | |
285 | (sh_elf_get_relocated_section_contents): Likewise. | |
286 | (sh_elf_gc_sweep_hook): Likewise. | |
287 | (sh_elf_check_relocs): Likewise. | |
288 | * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object. | |
289 | (is_alpha_elf): New macro. Checks a BFD to make sure that is an | |
290 | Alpha ELF bfd. | |
291 | (elf64_alpha_create_got_section): Use is_alpha_elf macro to check | |
292 | the bfd being processed. | |
293 | (elf64_alpha_create_dynamic_section): Likewise. | |
294 | (elf64_alpha_check_relocs): Likewise. | |
295 | (elf64_alpha_size_got_sections): Likewise. | |
296 | (elf64_alpha_relax_section): Likewise. | |
297 | (elf64_alpha_relocate_section): Likewise. | |
298 | (elf64_alpha_final_link): Likewise. | |
299 | (elf64_alpha_check_relocs): Use elf_symtab_hdr. | |
300 | (elf64_alpha_relax_section): Likewise. | |
301 | (elf64_alpha_relocate_section_r): Likewise. | |
302 | (elf64_alpha_relocate_section): Likewise. | |
303 | * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object. | |
304 | (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd | |
305 | being processed. | |
306 | (opd_entry_value): Likewise. | |
307 | (allocate_dynrelocs): Likewise. | |
308 | (ppc64_elf_relocate_section): Likewise. | |
309 | (ppc64_elf_check_relocs): Use elf_symtab_hdr. | |
310 | (opd_entry_value): Likewise. | |
311 | (ppc64_elf_gc_sweep_hook): Likewise. | |
312 | (get_sym_h): Likewise. | |
313 | (ppc64_elf_edit_opd): Likewise. | |
314 | (ppc64_elf_tls_optimize): Likewise. | |
315 | (ppc64_elf_edit_toc): Likewise. | |
316 | (ppc64_elf_size_dynamic_sections): Likewise. | |
317 | (toc_adjusting_stub_needed): Likewise. | |
318 | (ppc64_elf_size_stubs): Likewise. | |
319 | (ppc64_elf_relocate_section): Likewise. | |
320 | * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment | |
321 | reminding programmers to keep this structure in sync with the one | |
322 | defined in elf32-s390.c. | |
323 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
324 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
325 | ELF bfd. | |
326 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
327 | being processed. | |
328 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 329 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
330 | (elf_s390_check_relocs): Use elf_symtab_hdr. |
331 | (elf_s390_gc_sweep_hook): Likewise. | |
332 | (elf_s390_size_dynamic_sections): Likewise. | |
333 | (elf_s390_relocate_section): Likewise. | |
334 | * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object. | |
335 | (is_x86_64_elf): New macro. Checks a BFD to make sure that is an | |
336 | x86_64 ELF bfd. | |
337 | (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd | |
338 | being processed. | |
339 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
340 | (elf64_x86_64_relocate_section): Likewise. | |
341 | (elf64_x86_64_check_relocs): Use elf_symtab_hdr. | |
342 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
343 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
344 | (elf64_x86_64_relocate_section): Likewise. | |
345 | * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object. | |
346 | (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc | |
347 | ELF bfd. | |
348 | (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the | |
349 | bfd being processed. | |
350 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
351 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
352 | (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr. | |
353 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
354 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
0eb4a168 | 355 | (_bfd_sparc_elf_relocate_section): Likewise. |
0ffa91dd | 356 | |
be4291f1 AM |
357 | 2008-02-12 Alan Modra <amodra@bigpond.net.au> |
358 | ||
359 | PR 5303, 5755 | |
360 | * arange-set.c: Delete. | |
361 | * arange-set.h: Delete. | |
362 | * dwarf2.c: Revert 2007-09-21 changes. | |
363 | * Makefile.am: Likewise. | |
364 | * Makefile.in: Regenerate. | |
365 | * po/SRC-POTFILES.in: Regenerate. | |
366 | ||
7a84e3da BS |
367 | 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com> |
368 | ||
369 | * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it | |
370 | if necessary. | |
371 | (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type | |
372 | mismatches are detected. | |
373 | ||
ca889129 BS |
374 | * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to |
375 | emit invalid relocs or rofixup entries for deleted .eh_frame entries. | |
376 | ||
662ed161 DJ |
377 | 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com> |
378 | ||
379 | * cache.c (cache_bread): Set bfd_error_file_truncated if EOF | |
380 | was reached. | |
381 | * srec.c (srec_scan): Calculate the checksum. Complain on mismatch. | |
382 | ||
2e444bea AM |
383 | 2008-02-07 Alan Modra <amodra@bigpond.net.au> |
384 | ||
385 | * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling | |
386 | of _ovly_buf_table size. | |
387 | (spu_elf_build_stubs): Use low bit of .size as "present" bit. | |
388 | Adjust initialisations relating to _ovly_buf_table. | |
389 | ||
d9ab3f29 | 390 | 2008-02-04 Bob Wilson <bob.wilson@acm.org> |
0eb4a168 | 391 | |
d9ab3f29 BW |
392 | * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid |
393 | relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND | |
394 | relocations against dynamic symbols. | |
395 | (elf_xtensa_finish_dynamic_sections): Do not fail if there is no | |
396 | .xt.lit section. | |
0eb4a168 | 397 | |
bb8541b9 L |
398 | 2008-02-04 Kai Tietz <kai.tietz@onevision.com> |
399 | H.J. Lu <hongjiu.lu@intel.com> | |
400 | ||
401 | PR 5715 | |
402 | * warning.m4: Enable -Wno-format by default when using gcc on | |
403 | mingw. | |
404 | * configure: Regenerated. | |
405 | ||
6f179bd0 AN |
406 | 2008-02-04 Adam Nemet <anemet@caviumnetworks.com> |
407 | ||
408 | * archures.c: Update copyright. | |
409 | (bfd_mach_mips_octeon): New macro. | |
410 | * bfd-in2.h: Regenerate. | |
411 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon. | |
412 | (mips_set_isa_flags): Likewise. | |
413 | (mips_mach_extensions): Add Octeon. | |
414 | * cpu-mips.c: Update copyright. | |
415 | (I_mipsocteon): New enum constant. | |
416 | (arch_info_struct): Add Octeon. | |
417 | ||
d16c7321 AM |
418 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
419 | ||
420 | * elf32-spu.c (spu_elf_relocate_section): Correct return type. | |
421 | Return error status on unexpected relocation errors. | |
422 | ||
e44a2c9c AM |
423 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
424 | ||
425 | PR ld/5692 | |
426 | * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort | |
427 | on non-ELF input. | |
428 | * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue | |
429 | processing on non-ELF input. | |
430 | ||
f8a52b59 BW |
431 | 2008-01-31 Marc Gauthier <marc@tensilica.com> |
432 | ||
433 | * config.bfd (xtensa*-*-*): Recognize processor variants. | |
434 | ||
b7c368d0 NC |
435 | 2008-01-31 Nick Clifton <nickc@redhat.com> |
436 | ||
437 | PR ld/5692 | |
438 | * elf.c (bfd_elf_get_elf_syms): Check the return value of | |
439 | get_elf_backend_data. | |
440 | ||
00b2bfc1 NC |
441 | 2008-01-28 Fabian Groffen <grobian@gentoo.org> |
442 | ||
443 | * config.bfd (x86_64-*-solaris2): Add support for this target. | |
444 | ||
47f6dab9 AM |
445 | 2008-01-28 Alan Modra <amodra@bigpond.net.au> |
446 | ||
447 | Rewrite SPU overlay handling code. Put overlay calls stubs in the | |
448 | overlays where possible. Use a faster call stub, or optionally at | |
449 | compile time, a more compact stub. Double size of _ovly_buf_table | |
450 | so that low bit of _ovly_table.buf can be used as a "present" bit. | |
451 | Reserve an extra _ovly_table entry for index zero. | |
452 | * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields, | |
453 | add new ones. | |
454 | (struct got_entry): New. | |
455 | (struct spu_stub_hash_entry): Delete. | |
456 | (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete. | |
457 | (spu_elf_link_hash_table_create): Adjust for struct changes. | |
458 | (spu_stub_name): Delete. | |
459 | (spu_elf_find_overlays): Don't track sections from overlay regions. | |
460 | Instead set ovl_buf number in spu elf section data. Error if | |
461 | overlays in one region don't start at the same address. Adjust | |
462 | for struct _spu_elf_section_data changes. | |
463 | (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete. | |
464 | (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define. | |
465 | (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes. | |
466 | (enum _insn_type): New. | |
467 | (count_stub, build_stub): New functions. | |
468 | (allocate_spuear_stubs): Use count_stub. | |
469 | (build_spuear_stubs): Use build_stub. | |
470 | (populate_stubs, sort_stubs): Delete. | |
471 | (process_stubs): New function. | |
472 | (write_one_stub): Delete. | |
473 | (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite. | |
474 | (alloc_stack_info): Adjust for struct _spu_elf_section_data changes. | |
475 | (maybe_insert_function, check_function_ranges): Likewise. | |
476 | (find_function, pasted_function, build_call_tree): Likewise. | |
477 | (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise. | |
478 | (spu_elf_modify_program_headers): Likewise. | |
479 | (interesting_section): Detect stub sections differently. Delete | |
480 | htab param, adjust all callers. | |
481 | (spu_elf_relocate_section): Rewrite stub handling. | |
482 | (spu_elf_output_symbol_hook): Likewise. | |
483 | (bfd_elf32_bfd_link_hash_table_free): Delete. | |
484 | * elf32-spu.h (struct _spu_elf_section_data): Move input-only and | |
485 | output-only fields into a union. Add ovl_buf. | |
486 | (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes. | |
487 | ||
c006d697 DD |
488 | 2008-01-25 DJ Delorie <dj@redhat.com> |
489 | ||
490 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New. | |
491 | ||
6e3d6dc1 NC |
492 | 2008-01-25 Kai Tietz <kai.tietz@onevision.com> |
493 | ||
494 | * bfd-in.h: Add mingw I64 support. | |
495 | * bfd-in2.h: Regenerated. | |
496 | * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64. | |
497 | ||
fbb3bb98 AM |
498 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
499 | ||
500 | PR 4453 | |
501 | * format.c (bfd_check_format_matches): Don't accept archives as | |
502 | fully matching unless they have a map. | |
503 | ||
297d8443 AM |
504 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
505 | ||
506 | * elflink.c (_bfd_elf_link_output_relocs): Correct error return. | |
507 | ||
66cd82b5 AM |
508 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
509 | ||
510 | * ecoff.c (_bfd_ecoff_archive_p): Delete. | |
511 | * libecoff.h (_bfd_ecoff_archive_p): Delete. | |
512 | * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p. | |
513 | * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise. | |
514 | (ecoff_biglittle_vec): Likewise. | |
515 | ||
85f7a9cb AM |
516 | 2008-01-19 Alan Modra <amodra@bigpond.net.au> |
517 | ||
518 | PR 5646 | |
519 | * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr | |
520 | non-NULL before dereferencing. | |
521 | ||
74f0fb50 AM |
522 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
523 | ||
524 | PR 5604 | |
525 | * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param | |
526 | names from others. | |
527 | (_bfd_elf_gc_keep): Declare. | |
528 | * elfxx-target.h (elf_backend_gc_keep): Define. | |
529 | (elfNN_bed): Init new field. | |
530 | * elflink.c (_bfd_elf_gc_keep): New function. | |
531 | (bfd_elf_gc_sections): Call gc_keep. | |
532 | * elf64-ppc.c (elf_backend_gc_keep): Define. | |
533 | (struct _ppc64_elf_section_data): Move .opd related fields to | |
534 | a struct so they don't occupy the same storage. Adjust accesses | |
535 | throughout file. | |
536 | (ppc64_elf_gc_keep): New function, split out from.. | |
537 | (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark | |
538 | to mark .opd section, just set gc_mark. | |
539 | (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust | |
540 | unless we are changing .opd. Test non-NULL opd->adjust at all | |
541 | accesses throughout file. | |
542 | * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. | |
543 | ||
787daa7a AM |
544 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
545 | ||
546 | * bfd-in.h (BFD_HOST_LONG_LONG): Delete. | |
547 | * bfd-in2.h: Regenerate. | |
548 | ||
7dda2462 TG |
549 | 2008-01-11 Tristan Gingold <gingold@adacore.com> |
550 | Eric Botcazou <ebotcazou@adacore.com> | |
551 | ||
552 | * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a | |
553 | relocatable. | |
554 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise. | |
555 | * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise. | |
556 | * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise. | |
557 | * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise. | |
558 | * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise. | |
559 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise. | |
560 | * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
561 | * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise. | |
562 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. | |
563 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise. | |
564 | * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise. | |
565 | * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
566 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise. | |
567 | * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise. | |
568 | * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
569 | * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output | |
570 | or executable output with relocations. | |
571 | ||
d2e2e649 NC |
572 | 2008-01-09 Nick Clifton <nickc@redhat.com> |
573 | ||
574 | PR gas/5552 | |
575 | * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field | |
576 | to FALSE for all relocs. | |
577 | ||
184d07da RS |
578 | 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk> |
579 | ||
580 | PR ld/5526 | |
581 | * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged | |
582 | fields. Rename u.cie.u.merged to u.cie.u.merged_with. | |
583 | (eh_frame_sec_info): Add a cies field. | |
584 | (eh_frame_hdr_info): Add a merge_cies field. | |
585 | * elf-eh-frame.c (cie): Add a reloc_index member to the personality | |
586 | union. | |
587 | (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead | |
588 | of hdr_info->cies. | |
589 | (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of | |
590 | cie structures in all cases and use it instead of extended_cies. | |
591 | If merging, store the cie array in sec_info->cies and point each | |
592 | CIE's eh_fde_cie at the associated element. Do not try to | |
593 | calculate the value of the personality routine here; record the | |
594 | offset of the relocation instead. Do not merge CIEs here. | |
595 | (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here... | |
596 | (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead. | |
597 | (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE. | |
598 | (find_merged_cie): New function. | |
599 | (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies. | |
600 | ||
780b2360 NC |
601 | 2008-01-07 Nick Clifton <nickc@redhat.com> |
602 | ||
603 | PR binutils/5535 | |
604 | * vms.c (vms_close_and_cleanup): Check for the presence of a | |
605 | vms_private_data_struct before examining any of its fields. | |
606 | ||
ace79388 L |
607 | 2008-01-07 H.J. Lu <hongjiu.lu@intel.com> |
608 | ||
609 | PR ld/5522 | |
610 | * elflink.c (elf_link_input_bfd): Don't write out a section if | |
611 | its output section is marked with SEC_NEVER_LOAD. | |
612 | ||
6c7ac64e | 613 | For older changes see ChangeLog-2007 |
56882138 AM |
614 | \f |
615 | Local Variables: | |
616 | mode: change-log | |
617 | left-margin: 8 | |
618 | fill-column: 74 | |
619 | version-control: never | |
620 | End: |