Commit | Line | Data |
---|---|---|
6ad2759d L |
1 | 2008-03-15 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | * bfd-in.h (BFD_NO_FLAGS, HAS_RELOC, EXEC_P, HAS_LINENO, | |
4 | HAS_DEBUG, HAS_SYMS, HAS_LOCALS, DYNAMIC, WP_TEXT, D_PAGED, | |
5 | BFD_IS_RELAXABLE, BFD_TRADITIONAL_FORMAT, BFD_IN_MEMORY, | |
6 | HAS_LOAD_PAGE, BFD_LINKER_CREATED): Moved to ... | |
7 | * bfd.c: Here. | |
8 | ||
9 | * bfd.c (bfd): Change cacheable, target_defaulted, opened_once, | |
10 | mtime_set, no_export, output_has_begun and has_armap to bit | |
11 | field. | |
12 | ||
13 | * bfd-in2.h: Regenerated. | |
14 | ||
c04ea773 DJ |
15 | 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
16 | ||
17 | * cache.c (close_one): Remove mtime hack. | |
18 | ||
0f2830ff L |
19 | 2008-03-14 H.J. Lu <hongjiu.lu@intel.com> |
20 | ||
21 | PR ld/5913 | |
22 | * elfxx-ia64.c (elfNN_ia64_tprel_base): Remove BFD_ASSERT. | |
23 | (elfNN_ia64_dtprel_base): Likewise. | |
24 | (elfNN_ia64_relocate_section): Go to missing_tls_sec if | |
25 | tls_sec is NULL before calling elfNN_ia64_tprel_base or | |
26 | elfNN_ia64_dtprel_base. Report unsupported TLS relocations. | |
27 | ||
fdba2fcd AM |
28 | 2008-03-14 Alan Modra <amodra@bigpond.net.au> |
29 | ||
30 | * elf32-spu.c (process_stubs, spu_elf_relocate_section): Move | |
31 | common code to.. | |
32 | (maybe_needs_stub): ..here, a new function that also omits stubs | |
33 | for .eh_frame, and.. | |
34 | (needs_ovl_stub): ..here. Create stubs for labels in code section | |
35 | referenced by switch jump table. | |
36 | (spu_elf_find_overlays): Set htab->ovly_load and htab->ovly_return. | |
37 | (enum _insn_type): Delete. | |
38 | (enum _stub_type): New. | |
39 | (count_stub, build_stub): Adjust. | |
40 | (allocate_spuear_stubs, build_spuear_stubs): Adjust. | |
41 | ||
72de5009 AM |
42 | 2008-03-13 Alan Modra <amodra@bigpond.net.au> |
43 | ||
44 | * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast. | |
45 | (_bfd_elf_assign_file_position_for_section): Simplify align. | |
46 | (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough | |
47 | for sh_addralign. | |
48 | (elf_fake_sections, swap_out_syms): Likewise. | |
49 | * elflink.c (bfd_elf_final_link): Likewise. | |
50 | ||
50e7d84b AM |
51 | 2008-03-13 Alan Modra <amodra@bigpond.net.au> |
52 | ||
53 | * Makefile.am: Run "make dep-am". | |
54 | * Makefile.in: Regenerate. | |
55 | * po/SRC-POTFILES.in: Regenerate. | |
56 | ||
2774f1a6 BS |
57 | 2008-03-12 Bernd Schmidt <bernd.schmidt@analog.com> |
58 | ||
59 | From Jie Zhang <jie.zhang@analog.com> | |
60 | * elf32-bfin.c (struct bfinfdpic_relocs_info): Make got17m4, | |
61 | gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, fdgoffhilo, | |
62 | gotoff, call and sym not bitfields. | |
63 | (bfinfdpic_gc_sweep_hook): New function; update the relocation | |
64 | information for the relocations of the section being removed. | |
65 | (bfinfdpic_check_relocs): Accumulate the number of relocations | |
66 | which set got17m4, gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, | |
67 | fdgoffhilo, gotoff, call and sym fields. | |
68 | (elf_backend_gc_sweep_hook): Redefine for FD-PIC. | |
69 | ||
4fbb74a6 AM |
70 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
71 | ||
72 | PR 5900 | |
73 | * elf-bfd.h: Include elf/internal.h after elf/external.h. | |
74 | * elfcode.h (elf_swap_symbol_in): Map reserved shndx range. | |
75 | (elf_swap_symbol_out): Adjust SHN_XINDEX test. | |
76 | (elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values | |
77 | seen in external structs. | |
78 | (valid_section_index_p): Delete. | |
79 | (elf_object_p): Don't increment section numbers over reserved range. | |
80 | Simplify test for valid sh_link, sh_info and e_shstrndx fields. | |
81 | (elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values | |
82 | seen in external structs. Don't increment section numbers over | |
83 | reserved range. | |
84 | * elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx. | |
85 | (bfd_section_from_shdr): Likewise. | |
86 | (group_signature): Range check before accessing elf_elfsections. | |
87 | (_bfd_elf_setup_sections): Likewise. | |
88 | (bfd_section_from_shdr): Likewise. | |
89 | (bfd_section_from_shdr): Don't increment section number over | |
90 | reserved sections. | |
91 | (assign_file_positions_for_non_load_sections): Likewise. | |
92 | (assign_file_positions_except_relocs): Likewise. | |
93 | (_bfd_elf_write_object_contents): Likewise. | |
94 | (assign_section_numbers): Likewise. Adjust for changed SHN_*. | |
95 | (prep_headers): Delete unused variable. | |
96 | * elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust | |
97 | for changed SHN_* values. | |
98 | (check_dynsym, elf_link_input_bfd): Likewise. | |
99 | (bfd_elf_final_link): Likewise. Don't skip over reserved section | |
100 | range. | |
101 | (elf_fixup_link_order): Check that sh_link field is valid. | |
102 | * elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned. | |
103 | * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before | |
104 | accesssing elf_elfsections. | |
105 | * elf32-avr.c (elf32_avr_size_stubs): Likewise. | |
106 | * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. | |
107 | * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise. | |
108 | * elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed | |
109 | SHN_* defines. Test for SHN_BAD return from | |
110 | _bfd_elf_section_from_bfd_section | |
111 | ||
cb33740c AM |
112 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
113 | ||
114 | * elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype. | |
115 | * elf.c (_bfd_elf_section_from_bfd_section): Return unsigned int, | |
116 | SHN_BAD on error. | |
117 | (_bfd_elf_print_private_bfd_data): Test for SHN_BAD result from | |
118 | _bfd_elf_section_from_bfd_section, not -1. | |
119 | (swap_out_syms): Likewise. | |
120 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
121 | (bfd_elf_get_bfd_needed_list): Likewise. | |
122 | (bfd_elf_match_symbols_in_sections): Likewise. | |
123 | (elf_link_add_object_symbols): Don't bother testing for symbols | |
124 | using normal sections before calling bfd_section_from_elf_index. | |
125 | (elf_link_input_bfd, bfd_elf_final_link): Likewise. | |
126 | (bfd_elf_reloc_symbol_deleted_p): Likewise. | |
127 | * elfcode.h (elf_slurp_symbol_table): Likewise. | |
128 | * elf32-spu.c (get_sym_h): Likewise. | |
129 | * elf32-xtensa.c (get_elf_r_symndx_section): Likewise. | |
130 | * elf64-ppc.c (opd_entry_value, get_sym_h, ppc64_elf_edit_toc): Ditto. | |
131 | * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise. | |
132 | ||
5f5fb9ec AM |
133 | 2008-03-11 Alan Modra <amodra@bigpond.net.au> |
134 | ||
135 | * elf32-spu.c (spu_elf_relocate_section): Test identical conditions | |
136 | to those in process_stubs for overlay symbols. | |
137 | ||
b1cc4aeb PB |
138 | 2008-03-09 Paul Brook <paul@codesourcery.com> |
139 | ||
140 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new | |
141 | Tag_VFP_arch values. | |
142 | ||
12a0a0fd PB |
143 | 2008-03-08 Paul Brook <paul@codesourcery.com> |
144 | ||
145 | * elf32-arm.c (insert_thumb_branch): Rewrite. | |
146 | (elf32_thumb_to_arm_stub): Use new insert_thumb_branch. | |
147 | ||
39623e12 PB |
148 | 2008-03-07 Paul Brook <paul@codesourcery.com> |
149 | ||
150 | * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and | |
151 | MOVT relocations. | |
152 | (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign | |
153 | extension. | |
154 | (elf32_arm_relocate_section): Handle MOVW and MOVT | |
155 | relocations. Improve safety check for other weird relocations. | |
156 | (elf32_arm_check_relocs): Only set h->needs_plt for branch/call | |
157 | relocations. | |
158 | ||
77cba8a3 | 159 | 2008-03-03 Bob Wilson <bob.wilson@acm.org> |
50e7d84b | 160 | |
77cba8a3 BW |
161 | * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and |
162 | only compute its value once. | |
50e7d84b | 163 | |
4a628337 AM |
164 | 2008-03-03 Alan Modra <amodra@bigpond.net.au> |
165 | ||
166 | * elf32-spu.c (struct got_entry): Add "addend" field. | |
167 | (count_stub, build_stub): Use a new stub if relocation addend | |
168 | differs from existing stubs for this symbol. | |
169 | (process_stubs): Deal with addends. | |
170 | (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise. | |
171 | ||
d95edcac L |
172 | 2008-03-02 H.J. Lu <hongjiu.lu@intel.com> |
173 | ||
174 | PR ld/5789 | |
175 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true | |
176 | for hidden and local symbols. | |
177 | ||
89200bf8 AM |
178 | 2008-03-03 Alan Modra <amodra@bigpond.net.au> |
179 | ||
180 | * elf32-ppc.c (allocate_dynrelocs): Discard relocs on | |
181 | undefined symbols with internal or hidden visibility. | |
182 | (ppc_elf_relocate_section): Likewise. Use SYMBOL_CALLS_LOCAL | |
183 | rather than SYMBOL_REFERENCES_LOCAL on branches. Don't | |
184 | return immediately on dynamic reloc error. | |
185 | ||
176a0d42 AM |
186 | 2008-03-01 Alan Modra <amodra@bigpond.net.au> |
187 | ||
188 | * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs | |
189 | if emitrelocations. | |
190 | (get_relocs): New function, split out from.. | |
191 | (ppc_build_one_stub): ..here. Add relocs on plt_branch stubs if | |
192 | emitrelocations. Remove indx temp. | |
193 | (ppc_size_one_stub): Count new stub relocs. | |
194 | (ppc64_elf_size_stubs): Count new glink reloc. | |
195 | (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations. | |
196 | (ppc64_elf_finish_dynamic_sections): Output glink relocs. | |
197 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic | |
198 | glink code. | |
199 | ||
911f096e AM |
200 | 2008-02-28 Alan Modra <amodra@bigpond.net.au> |
201 | ||
202 | * elf32-spu.c (mark_functions_via_relocs): Don't assume that | |
203 | the "->start" pointer reaches to function origin, so that we | |
204 | can handle functions split over more than two sections. | |
205 | (build_call_tree): Likewise. | |
206 | (pasted_function): Don't attempt to set fun->start back to the | |
207 | function origin, just go back one section. | |
208 | ||
ad9563d6 CM |
209 | 2008-02-27 Catherine Moore <clm@codesourcery.com> |
210 | ||
211 | * elf.c ( _bfd_elf_print_private_bfd_data): Call | |
212 | elf_backend_get_target_dtag if defined. | |
213 | * elf32-mips.c (elf_backend_get_target_dtag): Define. | |
214 | * elf64-mips.c: Likewise. | |
215 | * elfn32-mips.c: Likewise. | |
216 | * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New. | |
217 | * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare. | |
218 | * elf-bfd.h (elf_backend_get_target_dtag): Add prototype. | |
219 | * elfxx-target.h (elf_backend_get_target_dtag): Add default. | |
911f096e | 220 | (elf_backend_data): Add elf_backend_get_target_dtag. |
ad9563d6 | 221 | |
625af618 AM |
222 | 2008-02-26 Alan Modra <amodra@bigpond.net.au> |
223 | ||
224 | * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed | |
225 | for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms, | |
226 | and assume branch relocs are not dynamic when non-shared. | |
227 | (readonly_dynrelocs): New function, split out from.. | |
228 | (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs. | |
229 | (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries, | |
230 | clear non_got_ref.. | |
231 | (allocate_dynrelocs): ..and don't set u.def for undefined weak. | |
232 | Do allow dynamic relocs on undefined symbols. | |
233 | (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs. | |
234 | (ppc_elf_relocate_section): Mirror dynamic reloc changes in | |
235 | check_relocs. | |
236 | (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak | |
237 | plt symbols needing pointer_equality_needed. | |
238 | ||
1cd81501 AM |
239 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
240 | ||
241 | * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change. | |
242 | ||
0eb4a168 AM |
243 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
244 | ||
245 | * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy | |
246 | pointer_equality_needed. | |
247 | (ppc_elf_check_relocs): Split out non-branch relocs from others | |
248 | that might emit dynamic relocs. Set pointer_equality_needed | |
249 | for their symbols. Don't set non_got_ref on branch reloc symbols. | |
250 | (ppc_elf_hash_symbol): New function. | |
251 | (elf_backend_hash_symbol): Define. | |
252 | (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed. | |
253 | Error if pointer_equality_needed on weak plt symbol. | |
254 | ||
3ae181ee L |
255 | 2008-02-22 H.J. Lu <hongjiu.lu@intel.com> |
256 | ||
257 | PR ld/5788 | |
258 | * elflink.c (elf_create_symbuf): Correct buffer size and | |
259 | position. | |
260 | ||
34b5e0b2 NC |
261 | 2008-02-22 Nick Clifton <nickc@redhat.com> |
262 | ||
263 | PR 868 | |
3ae181ee | 264 | * dwarf2.c: Revert previous patch. All of the allocate memory is |
34b5e0b2 | 265 | on an obstack which will be freed at some other time. |
0eb4a168 | 266 | |
515ef31d NC |
267 | 2008-02-20 Nick Clifton <nickc@redhat.com> |
268 | ||
269 | PR 868 | |
270 | * libbfd.c (bfd_realloc_or_free): New function. Performs like | |
271 | bfd_realloc, but if the (re)allocation fails, the pointer is | |
272 | freed. | |
273 | * libbfd-in.h: Prototype. | |
274 | * libbfd.h: Regenerate. | |
275 | * bfdio.c (bfd_bwrite): Use the new function. | |
276 | (bfd_seek): Likewise. | |
277 | * bfdwin.c:(bfd_get_file_window): Likewise. | |
278 | * elf-strtab.c (_bfd_elf_strtab_add): Likewise. | |
279 | * elf32-ppc.c (ppc_elf_relax_section): Likewise. | |
280 | * elf32-xtensa.c (vsprintf_msg): Likewise. | |
281 | * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise. | |
282 | * stabs.c (_bfd_link_seciton_stabs): Likewise. | |
283 | * vms-misc.c (_bfd_vms_get_record): Likewise. | |
284 | * vms-tir.c (check_section): Likewise. | |
285 | * vms.c (vms_new_section_hook): Likewise. | |
286 | * elf32-arm.c (elf32_arm_section_map_add): Check that the | |
287 | allocation of sec_data->map succeeded before using it. | |
288 | * elflink.c (elf_link_output_sym): Do not overwrite finfo-> | |
289 | symshndxbuf until it is known that the reallocation succeeded. | |
290 | ||
b42bf1e0 NC |
291 | 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br> |
292 | Nick Clifton <nickc@redhat.com> | |
293 | ||
294 | PR 868 | |
295 | * dwarf2.c (read_abbrevs): Free the abbreviation table if we run | |
296 | out of memory. | |
297 | (decode_line_info): Free the line_info_table before returning a | |
298 | failure result. | |
299 | (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table. | |
300 | Free the line table. Free the function table. Free the variable | |
301 | table. | |
302 | ||
0a40daed MK |
303 | 2008-02-17 Mark Kettenis <kettenis@gnu.org> |
304 | ||
305 | * elf.c (swap_out_syms): Avoid preprocessing directive within | |
306 | macro arg. | |
307 | ||
3f001e84 JK |
308 | 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
309 | ||
310 | * elf.c (assign_file_positions_for_load_sections): Set the type of | |
311 | PT_NOTE sections to SHT_NOTE. | |
312 | ||
37da76e8 AM |
313 | 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
314 | ||
315 | * simple.c (bfd_simple_get_relocated_section_contents): Set | |
316 | link_info.output_bfd. | |
317 | ||
d74e4b29 NS |
318 | 2008-02-16 Nathan Sidwell <nathan@codesourcery.com> |
319 | ||
320 | * dwarf2.c (find_line): Don't trust debug information after an | |
321 | unparseable compilation unit. | |
322 | ||
f856272b AM |
323 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
324 | ||
325 | PR 5765 | |
326 | * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags. | |
327 | * bfd-in2.h: Regenerate. | |
328 | ||
0c8d6e5c AM |
329 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
330 | ||
331 | * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA. | |
332 | * elf.c (bfd_elf_allocate_object): Don't check for already allocated | |
333 | tdata. | |
334 | * elf32-hppa.c (elf32_hppa_mkobject): New function. | |
335 | (bfd_elf32_mkobject): Define. | |
336 | * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with.. | |
337 | (is_ppc_elf): ..this new macro. | |
338 | * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with.. | |
339 | (is_ppc64_elf): ..this new macro. | |
340 | ||
f13a99db AM |
341 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
342 | ||
343 | * elflink.c: Replace all accesses to hash->creator field with | |
344 | output_bfd->xvec. | |
345 | * cofflink.c: Likewise. | |
346 | * coff-h8300.c: Likewise. | |
347 | * ecoff.c: Likewise. | |
348 | * elf32-m68hc1x.c: Likewise. | |
349 | * elf32-ppc.c: Likewise. | |
350 | * elf64-alpha.c: Likewise. | |
351 | * elf64-ppc.c: Likewise. | |
352 | * elf64-sparc.c: Likewise. | |
353 | * elfxx-mips.c: Likewise. | |
354 | * i386linux.c: Likewise. | |
355 | * m68klinux.c: Likewise. | |
356 | * sparclinux.c: Likewise. | |
357 | * sunos.c: Likewise. | |
358 | * xcofflink.c: Likewise. | |
359 | * linker.c: Likewise. | |
360 | (_bfd_link_hash_table_init): Don't store creator. | |
361 | ||
e81819a5 NC |
362 | 2008-02-14 Peter Jones <pjones@redhat.com> |
363 | ||
364 | * efi-rtdrv-ia32.c: New file. | |
365 | * efi-bsdrv-ia32.c: New file. | |
366 | * efi-rtdrv-ia64.c: New file. | |
367 | * efi-bsdrv-ia64.c: New file. | |
368 | * efi-rtdrv-x86_64.c: New file. | |
369 | * efi-bsdrv-x86_64.c: New file. | |
370 | * peicode.h (pe_bfd_object_p): Add support for boot service and | |
371 | runtime service drivers. | |
372 | * libpei.h: Add macros for EFI formats, and rename the efi application | |
373 | format macros to disambiguate. | |
374 | * targets.c: Add bfd_target _vec externs. | |
375 | (_bfd_tar): Add EFI _vec entries. | |
376 | * config.bfd: Add EFI vectors into the selection routines. | |
377 | * configure.in: add EFI _vec entries. | |
378 | * configure: Regenerate. | |
379 | * Makefile.am: Add EFI files. | |
380 | * Makefile.in: Regenerate. | |
381 | ||
ab1579fd NS |
382 | 2008-02-14 Nathan Sidwell <nathan@codesourcery.com> |
383 | ||
384 | * dwarf1.c (struct dwarf1_debug): Add syms member. | |
385 | (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory. | |
386 | (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate | |
387 | section contents, check for out of memory. | |
388 | ||
389 | * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte. | |
390 | (parse_die): Change data pointers to bfd_byte. | |
391 | (parse_line_table, parse_functions_in_unit): Likewise. | |
392 | ||
d40f3da9 AM |
393 | 2008-02-14 Alan Modra <amodra@bigpond.net.au> |
394 | ||
395 | * elflink.c (compute_bucket_count): Warning fixes. | |
396 | ||
f15557e4 DD |
397 | 2008-02-12 DJ Delorie <dj@redhat.com> |
398 | ||
399 | * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of | |
400 | relocation pointing to local symbol in merged section. | |
401 | ||
402 | * elf32-iq2000.c (iq2000_elf_relocate_offset16): New. | |
403 | (iq2000_elf_relocate_section): Call it. | |
404 | ||
0ffa91dd NC |
405 | 2008-02-12 Nick Clifton <nickc@redhat.com> |
406 | ||
407 | PR ld/5692 | |
408 | * elf-bfd.h (enum elf_object_id): New enum, used to identify | |
409 | target specific extensions to the elf_obj_tdata structure. | |
410 | (struct elf_obj_tdata): New field 'object_id'. | |
411 | (elf_object_id, elf_program_header_size, elf_symtab_hdr): New | |
412 | macros for accessing fields in the elf_obj_tdata structure. | |
413 | (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object. | |
414 | (bfd_elf_allocate_object): New function. | |
415 | * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object | |
416 | and implement by calling bfd_elf_allocate_object. | |
417 | (bfd_elf_allocate_object): New function: Allocates an | |
418 | elf_obj_tdata structure, possibly with a target specific | |
419 | extension. | |
420 | * elfxx-target.h (bfd_elfNN_mkobject): Use | |
421 | bfd_elf_make_generic_object as the default value. | |
422 | * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata | |
423 | for consistency with other, similar structures. | |
424 | (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM | |
425 | ELF bfd. | |
426 | (elf32_arm_mkobject): Call bfd_elf_allocate_object. | |
427 | (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check | |
428 | the bfd being processed. | |
429 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. | |
430 | (bfd_elf32_arm_set_target_relocs): Likewise. | |
431 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
432 | (bfd_elf32_arm_copy_private_bfd_data): Likewise. | |
433 | (bfd_elf32_arm_merge_eabi_attributes): Likewise. | |
434 | (bfd_elf32_arm_merge_private_bfd_data): Likewise. | |
435 | (bfd_elf32_arm_check_relocs): Likewise. | |
436 | (bfd_elf32_arm_gc_mark_extra_sections): Likewise. | |
437 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
438 | (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr. | |
439 | (bfd_elf32_arm_init_maps): Likewise. | |
440 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
441 | (bfd_elf32_arm_relocate_section): Likewise. | |
442 | (bfd_elf32_arm_gc_sweep_hook): Likewise. | |
443 | (bfd_elf32_arm_check_relocs): Likewise. | |
444 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
445 | * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object. | |
446 | (is_i386_elf): New macro. Checks a BFD to make sure that is an x86 | |
447 | ELF bfd. | |
448 | (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd | |
449 | being processed. | |
450 | (elf_i386_size_dynamic_sections): Likewise. | |
451 | (elf_i386_relocate_section): Likewise. | |
452 | (elf_i386_check_relocs): Use elf_symtab_hdr. | |
453 | (elf_i386_gc_sweep_hook): Likewise. | |
454 | (elf_i386_size_dynamic_sections): Likewise. | |
455 | (elf_i386_relocate_section): Likewise. | |
456 | * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object. | |
457 | (elf_create_pointer_linker_section): Use is_ppc_elf_target to | |
458 | verify that the bfd before accessing target specific fields. | |
459 | (ppc_elf_check_relocs): Likewise. | |
460 | (elf_finish_pointer_linker_section): Likewise. | |
461 | (elf_create_pointer_linker_section): Use elf_symtab_hdr. | |
462 | (ppc_elf_check_relocs): Likewise. | |
463 | (ppc_elf_gc_sweep_hook): Likewise. | |
464 | (ppc_elf_tls_optimize): Likewise. | |
465 | (ppc_elf_size_dynamic_sections): Likewise. | |
466 | (ppc_elf_relax_section): Likewise. | |
467 | (ppc_elf_relocate_section): Likewise. | |
468 | * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment | |
469 | reminding programmers to keep this structure in sync with the one | |
470 | defined in elf64-s390.c. | |
471 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
472 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
473 | ELF bfd. | |
474 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
475 | being processed. | |
476 | (elf_s390_size_dynamic_sections): Likewise. | |
477 | (elf_s390_relocate_section): Likewise. | |
478 | (elf_s390_check_relocs): Use elf_symtab_hdr. | |
479 | (elf_s390_gc_sweep_hook): Likewise. | |
480 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 481 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
482 | * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object. |
483 | (is_sh_elf): New macro. Checks a BFD to make sure that is an SH | |
484 | ELF bfd. | |
485 | (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the | |
486 | bfd being processed. | |
487 | (sh_elf_relocate_section): Likewise. | |
488 | (sh_elf_check_relocs): Likewise. | |
489 | (sh_elf_copy_private_data): Likewise. | |
490 | (sh_elf_relax_section): Use elf_symtab_hdr. | |
491 | (sh_elf_size_dynamic_sections): Likewise. | |
492 | (sh_elf_relocate_section): Likewise. | |
493 | (sh_elf_get_relocated_section_contents): Likewise. | |
494 | (sh_elf_gc_sweep_hook): Likewise. | |
495 | (sh_elf_check_relocs): Likewise. | |
496 | * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object. | |
497 | (is_alpha_elf): New macro. Checks a BFD to make sure that is an | |
498 | Alpha ELF bfd. | |
499 | (elf64_alpha_create_got_section): Use is_alpha_elf macro to check | |
500 | the bfd being processed. | |
501 | (elf64_alpha_create_dynamic_section): Likewise. | |
502 | (elf64_alpha_check_relocs): Likewise. | |
503 | (elf64_alpha_size_got_sections): Likewise. | |
504 | (elf64_alpha_relax_section): Likewise. | |
505 | (elf64_alpha_relocate_section): Likewise. | |
506 | (elf64_alpha_final_link): Likewise. | |
507 | (elf64_alpha_check_relocs): Use elf_symtab_hdr. | |
508 | (elf64_alpha_relax_section): Likewise. | |
509 | (elf64_alpha_relocate_section_r): Likewise. | |
510 | (elf64_alpha_relocate_section): Likewise. | |
511 | * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object. | |
512 | (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd | |
513 | being processed. | |
514 | (opd_entry_value): Likewise. | |
515 | (allocate_dynrelocs): Likewise. | |
516 | (ppc64_elf_relocate_section): Likewise. | |
517 | (ppc64_elf_check_relocs): Use elf_symtab_hdr. | |
518 | (opd_entry_value): Likewise. | |
519 | (ppc64_elf_gc_sweep_hook): Likewise. | |
520 | (get_sym_h): Likewise. | |
521 | (ppc64_elf_edit_opd): Likewise. | |
522 | (ppc64_elf_tls_optimize): Likewise. | |
523 | (ppc64_elf_edit_toc): Likewise. | |
524 | (ppc64_elf_size_dynamic_sections): Likewise. | |
525 | (toc_adjusting_stub_needed): Likewise. | |
526 | (ppc64_elf_size_stubs): Likewise. | |
527 | (ppc64_elf_relocate_section): Likewise. | |
528 | * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment | |
529 | reminding programmers to keep this structure in sync with the one | |
530 | defined in elf32-s390.c. | |
531 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
532 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
533 | ELF bfd. | |
534 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
535 | being processed. | |
536 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 537 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
538 | (elf_s390_check_relocs): Use elf_symtab_hdr. |
539 | (elf_s390_gc_sweep_hook): Likewise. | |
540 | (elf_s390_size_dynamic_sections): Likewise. | |
541 | (elf_s390_relocate_section): Likewise. | |
542 | * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object. | |
543 | (is_x86_64_elf): New macro. Checks a BFD to make sure that is an | |
544 | x86_64 ELF bfd. | |
545 | (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd | |
546 | being processed. | |
547 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
548 | (elf64_x86_64_relocate_section): Likewise. | |
549 | (elf64_x86_64_check_relocs): Use elf_symtab_hdr. | |
550 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
551 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
552 | (elf64_x86_64_relocate_section): Likewise. | |
553 | * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object. | |
554 | (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc | |
555 | ELF bfd. | |
556 | (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the | |
557 | bfd being processed. | |
558 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
559 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
560 | (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr. | |
561 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
562 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
0eb4a168 | 563 | (_bfd_sparc_elf_relocate_section): Likewise. |
0ffa91dd | 564 | |
be4291f1 AM |
565 | 2008-02-12 Alan Modra <amodra@bigpond.net.au> |
566 | ||
567 | PR 5303, 5755 | |
568 | * arange-set.c: Delete. | |
569 | * arange-set.h: Delete. | |
570 | * dwarf2.c: Revert 2007-09-21 changes. | |
571 | * Makefile.am: Likewise. | |
572 | * Makefile.in: Regenerate. | |
573 | * po/SRC-POTFILES.in: Regenerate. | |
574 | ||
7a84e3da BS |
575 | 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com> |
576 | ||
577 | * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it | |
578 | if necessary. | |
579 | (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type | |
580 | mismatches are detected. | |
581 | ||
ca889129 BS |
582 | * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to |
583 | emit invalid relocs or rofixup entries for deleted .eh_frame entries. | |
584 | ||
662ed161 DJ |
585 | 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com> |
586 | ||
587 | * cache.c (cache_bread): Set bfd_error_file_truncated if EOF | |
588 | was reached. | |
589 | * srec.c (srec_scan): Calculate the checksum. Complain on mismatch. | |
590 | ||
2e444bea AM |
591 | 2008-02-07 Alan Modra <amodra@bigpond.net.au> |
592 | ||
593 | * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling | |
594 | of _ovly_buf_table size. | |
595 | (spu_elf_build_stubs): Use low bit of .size as "present" bit. | |
596 | Adjust initialisations relating to _ovly_buf_table. | |
597 | ||
d9ab3f29 | 598 | 2008-02-04 Bob Wilson <bob.wilson@acm.org> |
0eb4a168 | 599 | |
d9ab3f29 BW |
600 | * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid |
601 | relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND | |
602 | relocations against dynamic symbols. | |
603 | (elf_xtensa_finish_dynamic_sections): Do not fail if there is no | |
604 | .xt.lit section. | |
0eb4a168 | 605 | |
bb8541b9 L |
606 | 2008-02-04 Kai Tietz <kai.tietz@onevision.com> |
607 | H.J. Lu <hongjiu.lu@intel.com> | |
608 | ||
609 | PR 5715 | |
610 | * warning.m4: Enable -Wno-format by default when using gcc on | |
611 | mingw. | |
612 | * configure: Regenerated. | |
613 | ||
6f179bd0 AN |
614 | 2008-02-04 Adam Nemet <anemet@caviumnetworks.com> |
615 | ||
616 | * archures.c: Update copyright. | |
617 | (bfd_mach_mips_octeon): New macro. | |
618 | * bfd-in2.h: Regenerate. | |
619 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon. | |
620 | (mips_set_isa_flags): Likewise. | |
621 | (mips_mach_extensions): Add Octeon. | |
622 | * cpu-mips.c: Update copyright. | |
623 | (I_mipsocteon): New enum constant. | |
624 | (arch_info_struct): Add Octeon. | |
625 | ||
d16c7321 AM |
626 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
627 | ||
628 | * elf32-spu.c (spu_elf_relocate_section): Correct return type. | |
629 | Return error status on unexpected relocation errors. | |
630 | ||
e44a2c9c AM |
631 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
632 | ||
633 | PR ld/5692 | |
634 | * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort | |
635 | on non-ELF input. | |
636 | * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue | |
637 | processing on non-ELF input. | |
638 | ||
f8a52b59 BW |
639 | 2008-01-31 Marc Gauthier <marc@tensilica.com> |
640 | ||
641 | * config.bfd (xtensa*-*-*): Recognize processor variants. | |
642 | ||
b7c368d0 NC |
643 | 2008-01-31 Nick Clifton <nickc@redhat.com> |
644 | ||
645 | PR ld/5692 | |
646 | * elf.c (bfd_elf_get_elf_syms): Check the return value of | |
647 | get_elf_backend_data. | |
648 | ||
00b2bfc1 NC |
649 | 2008-01-28 Fabian Groffen <grobian@gentoo.org> |
650 | ||
651 | * config.bfd (x86_64-*-solaris2): Add support for this target. | |
652 | ||
47f6dab9 AM |
653 | 2008-01-28 Alan Modra <amodra@bigpond.net.au> |
654 | ||
655 | Rewrite SPU overlay handling code. Put overlay calls stubs in the | |
656 | overlays where possible. Use a faster call stub, or optionally at | |
657 | compile time, a more compact stub. Double size of _ovly_buf_table | |
658 | so that low bit of _ovly_table.buf can be used as a "present" bit. | |
659 | Reserve an extra _ovly_table entry for index zero. | |
660 | * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields, | |
661 | add new ones. | |
662 | (struct got_entry): New. | |
663 | (struct spu_stub_hash_entry): Delete. | |
664 | (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete. | |
665 | (spu_elf_link_hash_table_create): Adjust for struct changes. | |
666 | (spu_stub_name): Delete. | |
667 | (spu_elf_find_overlays): Don't track sections from overlay regions. | |
668 | Instead set ovl_buf number in spu elf section data. Error if | |
669 | overlays in one region don't start at the same address. Adjust | |
670 | for struct _spu_elf_section_data changes. | |
671 | (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete. | |
672 | (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define. | |
673 | (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes. | |
674 | (enum _insn_type): New. | |
675 | (count_stub, build_stub): New functions. | |
676 | (allocate_spuear_stubs): Use count_stub. | |
677 | (build_spuear_stubs): Use build_stub. | |
678 | (populate_stubs, sort_stubs): Delete. | |
679 | (process_stubs): New function. | |
680 | (write_one_stub): Delete. | |
681 | (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite. | |
682 | (alloc_stack_info): Adjust for struct _spu_elf_section_data changes. | |
683 | (maybe_insert_function, check_function_ranges): Likewise. | |
684 | (find_function, pasted_function, build_call_tree): Likewise. | |
685 | (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise. | |
686 | (spu_elf_modify_program_headers): Likewise. | |
687 | (interesting_section): Detect stub sections differently. Delete | |
688 | htab param, adjust all callers. | |
689 | (spu_elf_relocate_section): Rewrite stub handling. | |
690 | (spu_elf_output_symbol_hook): Likewise. | |
691 | (bfd_elf32_bfd_link_hash_table_free): Delete. | |
692 | * elf32-spu.h (struct _spu_elf_section_data): Move input-only and | |
693 | output-only fields into a union. Add ovl_buf. | |
694 | (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes. | |
695 | ||
c006d697 DD |
696 | 2008-01-25 DJ Delorie <dj@redhat.com> |
697 | ||
698 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New. | |
699 | ||
6e3d6dc1 NC |
700 | 2008-01-25 Kai Tietz <kai.tietz@onevision.com> |
701 | ||
702 | * bfd-in.h: Add mingw I64 support. | |
703 | * bfd-in2.h: Regenerated. | |
704 | * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64. | |
705 | ||
fbb3bb98 AM |
706 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
707 | ||
708 | PR 4453 | |
709 | * format.c (bfd_check_format_matches): Don't accept archives as | |
710 | fully matching unless they have a map. | |
711 | ||
297d8443 AM |
712 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
713 | ||
714 | * elflink.c (_bfd_elf_link_output_relocs): Correct error return. | |
715 | ||
66cd82b5 AM |
716 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
717 | ||
718 | * ecoff.c (_bfd_ecoff_archive_p): Delete. | |
719 | * libecoff.h (_bfd_ecoff_archive_p): Delete. | |
720 | * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p. | |
721 | * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise. | |
722 | (ecoff_biglittle_vec): Likewise. | |
723 | ||
85f7a9cb AM |
724 | 2008-01-19 Alan Modra <amodra@bigpond.net.au> |
725 | ||
726 | PR 5646 | |
727 | * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr | |
728 | non-NULL before dereferencing. | |
729 | ||
74f0fb50 AM |
730 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
731 | ||
732 | PR 5604 | |
733 | * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param | |
734 | names from others. | |
735 | (_bfd_elf_gc_keep): Declare. | |
736 | * elfxx-target.h (elf_backend_gc_keep): Define. | |
737 | (elfNN_bed): Init new field. | |
738 | * elflink.c (_bfd_elf_gc_keep): New function. | |
739 | (bfd_elf_gc_sections): Call gc_keep. | |
740 | * elf64-ppc.c (elf_backend_gc_keep): Define. | |
741 | (struct _ppc64_elf_section_data): Move .opd related fields to | |
742 | a struct so they don't occupy the same storage. Adjust accesses | |
743 | throughout file. | |
744 | (ppc64_elf_gc_keep): New function, split out from.. | |
745 | (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark | |
746 | to mark .opd section, just set gc_mark. | |
747 | (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust | |
748 | unless we are changing .opd. Test non-NULL opd->adjust at all | |
749 | accesses throughout file. | |
750 | * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. | |
751 | ||
787daa7a AM |
752 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
753 | ||
754 | * bfd-in.h (BFD_HOST_LONG_LONG): Delete. | |
755 | * bfd-in2.h: Regenerate. | |
756 | ||
7dda2462 TG |
757 | 2008-01-11 Tristan Gingold <gingold@adacore.com> |
758 | Eric Botcazou <ebotcazou@adacore.com> | |
759 | ||
760 | * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a | |
761 | relocatable. | |
762 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise. | |
763 | * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise. | |
764 | * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise. | |
765 | * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise. | |
766 | * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise. | |
767 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise. | |
768 | * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
769 | * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise. | |
770 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. | |
771 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise. | |
772 | * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise. | |
773 | * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
774 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise. | |
775 | * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise. | |
776 | * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
777 | * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output | |
778 | or executable output with relocations. | |
779 | ||
d2e2e649 NC |
780 | 2008-01-09 Nick Clifton <nickc@redhat.com> |
781 | ||
782 | PR gas/5552 | |
783 | * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field | |
784 | to FALSE for all relocs. | |
785 | ||
184d07da RS |
786 | 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk> |
787 | ||
788 | PR ld/5526 | |
789 | * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged | |
790 | fields. Rename u.cie.u.merged to u.cie.u.merged_with. | |
791 | (eh_frame_sec_info): Add a cies field. | |
792 | (eh_frame_hdr_info): Add a merge_cies field. | |
793 | * elf-eh-frame.c (cie): Add a reloc_index member to the personality | |
794 | union. | |
795 | (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead | |
796 | of hdr_info->cies. | |
797 | (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of | |
798 | cie structures in all cases and use it instead of extended_cies. | |
799 | If merging, store the cie array in sec_info->cies and point each | |
800 | CIE's eh_fde_cie at the associated element. Do not try to | |
801 | calculate the value of the personality routine here; record the | |
802 | offset of the relocation instead. Do not merge CIEs here. | |
803 | (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here... | |
804 | (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead. | |
805 | (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE. | |
806 | (find_merged_cie): New function. | |
807 | (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies. | |
808 | ||
780b2360 NC |
809 | 2008-01-07 Nick Clifton <nickc@redhat.com> |
810 | ||
811 | PR binutils/5535 | |
812 | * vms.c (vms_close_and_cleanup): Check for the presence of a | |
813 | vms_private_data_struct before examining any of its fields. | |
814 | ||
ace79388 L |
815 | 2008-01-07 H.J. Lu <hongjiu.lu@intel.com> |
816 | ||
817 | PR ld/5522 | |
818 | * elflink.c (elf_link_input_bfd): Don't write out a section if | |
819 | its output section is marked with SEC_NEVER_LOAD. | |
820 | ||
6c7ac64e | 821 | For older changes see ChangeLog-2007 |
56882138 AM |
822 | \f |
823 | Local Variables: | |
824 | mode: change-log | |
825 | left-margin: 8 | |
826 | fill-column: 74 | |
827 | version-control: never | |
828 | End: |