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