Commit | Line | Data |
---|---|---|
906e58ca NC |
1 | 2008-05-15 Christophe Lyon <christophe.lyon@st.com> |
2 | ||
3 | Add long call support for ARM. | |
4 | * elf32-arm.c (THM2_MAX_FWD_BRANCH_OFFSET): Define. | |
5 | (THM2_MAX_BWD_BRANCH_OFFSET): Define. | |
6 | (ARM_MAX_FWD_BRANCH_OFFSET): Define. | |
7 | (ARM_MAX_BWD_BRANCH_OFFSET): Define. | |
8 | (THM_MAX_FWD_BRANCH_OFFSET): Define. | |
9 | (THM_MAX_BWD_BRANCH_OFFSET): Define. | |
10 | (arm_long_branch_stub): Define. | |
11 | (arm_pic_long_branch_stub): Define. | |
12 | (arm_thumb_v4t_long_branch_stub): Define. | |
13 | (arm_thumb_thumb_long_branch_stub): Define. | |
14 | (arm_thumb_arm_v4t_long_branch_stub): Define. | |
15 | (STUB_SUFFIX): Define. | |
16 | (elf32_arm_stub_type): Define. | |
17 | (elf32_arm_stub_hash_entry): Define. | |
18 | (elf32_arm_link_hash_entry): Add stub_cache field. | |
19 | (arm_stub_hash_lookup): Define. | |
20 | (elf32_arm_link_hash_table): Add stub_hash_table, stub_bfd, | |
21 | add_stub_section, layout_sections_again, stub_group, bfd_count, | |
22 | top_index, input_list fields. | |
23 | (elf32_arm_link_hash_newfunc): Init new field. | |
24 | (stub_hash_newfunc): New function. | |
25 | (elf32_arm_link_hash_table_create): Init stub_hash_table. | |
26 | (elf32_arm_hash_table_free): New function. | |
27 | (arm_type_of_stub): New function. | |
28 | (elf32_arm_stub_name): New function. | |
29 | (elf32_arm_get_stub_entry): New function. | |
30 | (elf32_arm_stub_add_mapping_symbol): New function. | |
31 | (elf32_arm_add_stub): New function. | |
32 | (arm_build_one_stub): New function. | |
33 | (arm_size_one_stub): New function. | |
34 | (elf32_arm_setup_section_lists): New function. | |
35 | (elf32_arm_next_input_section): New function. | |
36 | (group_sections): New function. | |
37 | (elf32_arm_size_stubs): New function. | |
38 | (elf32_arm_build_stubs): New function. | |
39 | (bfd_elf32_arm_add_glue_sections_to_bfd): Skip stub sections. | |
40 | (bfd_elf32_arm_process_before_allocation): No longer handle | |
41 | R_ARM_CALL and R_ARM_THM_CALL. | |
42 | (using_thumb_only): New function. | |
43 | (elf32_arm_final_link_relocate): Redirect calls to stub if range | |
44 | exceeds encoding capabilities. | |
45 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
46 | * bfd-in.h (R_ARM_max): Fix value to 130. | |
47 | (elf32_arm_setup_section_lists): Protype. | |
48 | (elf32_arm_next_input_section): Protype. | |
49 | (elf32_arm_size_stubs): Protype. | |
50 | (elf32_arm_build_stubs): Protype. | |
51 | * bfd-in2.h: Regenerate. | |
52 | ||
86a4952b UW |
53 | 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
54 | ||
55 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Fix memset calls. | |
56 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. | |
57 | ||
8944f3c2 AM |
58 | 2008-05-14 Alan Modra <amodra@bigpond.net.au> |
59 | ||
60 | * Makefile.am: Run "make dep-am". | |
61 | * Makefile.in: Regenerate. | |
62 | ||
468392fb AM |
63 | 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
64 | Alan Modra <amodra@bigpond.net.au> | |
65 | ||
66 | * elf32-ppc.c (section_covers_vma): New function. | |
67 | (ppc_elf_get_synthetic_symtab): New function. | |
68 | (bfd_elf32_get_synthetic_symtab): Define. | |
69 | * elf64-ppc.c (section_covers_vma): New function. | |
70 | (ppc64_elf_get_synthetic_symtab): Generate sym@plt on glink branch | |
71 | table entries, and __glink_PLTresolve on resolver stub. | |
72 | (ppc64_elf_build_stubs): Rename __glink sym to __glink_PLTresolve. | |
73 | ||
1d483afe AM |
74 | 2008-05-12 Alan Modra <amodra@bigpond.net.au> |
75 | ||
76 | PR 6443 | |
77 | * elf32-ppc.c (MUST_BE_DYN_RELOC): Delete. | |
78 | (must_be_dyn_reloc): New function. | |
79 | (ppc_elf_check_relocs): Don't set DF_STATIC_TLS for tprel relocs | |
80 | in pies. | |
81 | (ppc_elf_tls_optimize): Optimise pies. | |
82 | (ppc_elf_relocate_section): Use a section symbol rather than no | |
83 | symbol if possible for LD->IE TLS sequence, but don't error if | |
84 | we must use no symbol. | |
85 | * elf64-ppc.c (MUST_BE_DYN_RELOC): As for elf32-ppc.c. | |
86 | (must_be_dyn_reloc): Likewise. | |
87 | (ppc64_elf_check_relocs): Likewise. | |
88 | (ppc64_elf_tls_optimize): Likewise. | |
89 | (ppc64_elf_relocate_section): Likewise. | |
90 | ||
cc5ca406 AM |
91 | 2008-05-12 Alan Modra <amodra@bigpond.net.au> |
92 | ||
93 | * elf32-spu.c (spu_elf_relocate_section): Rename is_ea to is_ea_sym. | |
94 | ||
536d0ff4 AM |
95 | 2008-05-10 Paul Pluzhnikov <ppluzhnikov@google.com> |
96 | ||
97 | * elfcore.h (elf_core_file_p): Warn about core truncation. | |
98 | ||
51c8ebc1 BW |
99 | 2008-05-07 Bob Wilson <bob.wilson@acm.org> |
100 | ||
101 | * elf32-xtensa.c (xtensa_property_section_name): New. | |
102 | (xtensa_make_property_section): New. | |
103 | (xtensa_get_property_section): Make static. Do not create a new | |
104 | section if it does not exist. | |
105 | ||
8374f9d4 AM |
106 | 2008-05-08 Alan Modra <amodra@bigpond.net.au> |
107 | ||
108 | * elf32-spu.c (spu_elf_special_sections): Add "._ea". | |
109 | (spu_elf_relocate_section): Handle relocations against symbols | |
110 | defined in ._ea specially. | |
111 | ||
95720a86 DJ |
112 | 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com> |
113 | ||
114 | * elf32-arm.c (elf32_arm_symbian_link_hash_table_create): Use | |
115 | ARRAY_SIZE. | |
116 | (elf32_arm_symbian_plt_sym_val): New. | |
117 | (elf_backend_plt_sym_val): Define. | |
118 | ||
5c44b38e AM |
119 | 2008-05-03 Alan Modra <amodra@bigpond.net.au> |
120 | ||
121 | PR 2995, PR 6473 | |
122 | * elf.c (rewrite_elf_program_header): Rather than clearing | |
123 | p_paddr_valid at end, don't set it in the first place. Delete | |
124 | comment no longer relevant. When not p_paddr_valid, don't set | |
125 | paddr from vaddr, and don't set p_vaddr_offset. | |
126 | ||
3471d59d CC |
127 | 2008-05-01 Cary Coutant <ccoutant@google.com> |
128 | ||
129 | * elf.c (bfd_elf_get_str_section): Fix memory leak caused by | |
130 | corrupt string table. | |
131 | ||
f12a02c0 JB |
132 | 2008-05-01 Joel Brobecker <brobecker@adacore.com> |
133 | ||
134 | * cache.c (cache_bread_1): Renames cache_bread. | |
135 | (cache_bread): New function. | |
136 | ||
88967714 AM |
137 | 2008-05-01 Alan Modra <amodra@bigpond.net.au> |
138 | ||
139 | PR 2995, PR 6473 | |
140 | * elf.c (_bfd_elf_make_section_from_shdr): Always set lma from p_paddr. | |
141 | (assign_file_positions_for_load_sections): Combine nested "if". | |
142 | (copy_elf_program_header): Don't set p_paddr_valid or p_vaddr_offset | |
143 | when all header p_paddr fields are zero. | |
144 | ||
9239aded AM |
145 | 2008-04-30 Edmar Wienskoski <edmar@freescale.com> |
146 | ||
147 | * cpu-powerpc.c (bfd_powerpc_archs): Add e500mc entry. | |
148 | ||
266b05cf DJ |
149 | 2008-04-29 Daniel Jacobowitz <dan@codesourcery.com> |
150 | ||
151 | * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound) | |
152 | (_bfd_elf_canonicalize_dynamic_reloc): Find dynamic relocations | |
153 | even if they are not loaded. | |
154 | * elflink.c (_bfd_elf_init_2_index_sections): Set data_index_section | |
155 | first. | |
156 | ||
fc2db3b8 NC |
157 | 2008-04-25 Jay Foad <jay.foad@gmail.com> |
158 | ||
159 | * reloc16.c (bfd_coff_reloc16_get_value): Add support for | |
160 | undefined weak symbols. | |
161 | ||
ddeca468 NC |
162 | 2008-04-25 Nick Clifton <nickc@redhat.com> |
163 | ||
164 | * po/vi.po: Updated Vietnamese translation. | |
165 | ||
6194aaab L |
166 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
167 | ||
168 | * aclocal.m4: Regenerate. | |
169 | * configure: Regenerate. | |
170 | ||
38d6ea5b CC |
171 | 2008-04-21 Cary Coutant <ccoutant@google.com> |
172 | ||
173 | * archive.c (_bfd_write_archive_contents): Fix incorrect use of | |
174 | ARFMAG. | |
175 | ||
131eb6b7 NS |
176 | 2008-04-21 Nathan Sidwell <nathan@codesourcery.com> |
177 | ||
178 | * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't | |
179 | set the value of undefined symbols in shared objects. | |
180 | (_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for | |
181 | undefined symbols unless pointer equality is needed. | |
182 | ||
e0c88096 NC |
183 | 2008-04-18 Dennis Roberts <dennis.roberts@sunquestinfo.com> |
184 | ||
185 | * aix5ppc-core.c: Define macros for the default architecture and | |
186 | machine for matching core files. | |
187 | (xcoff64_core_p): Set the architecture and machine to the default | |
188 | values defined in the macros mentioned above. | |
189 | * rs6000-core.c: Define macros to determine whether or not the | |
190 | core file header uses the core_dumpxx header format. | |
191 | (rs6000coff_core_p): Don't match core files that use the | |
192 | core_dumpxx header format. | |
193 | ||
18c1668c PA |
194 | 2008-04-16 Pedro Alves <pedro@codesourcery.com> |
195 | ||
196 | * config.bfd (i[3-7]86-*-dicos*, x86_64-*-dicos*): Add. | |
197 | ||
739f7f82 DM |
198 | 2008-04-16 David S. Miller <davem@davemloft.net> |
199 | ||
200 | * reloc.c (BFD_RELOC_SPARC_GOTDATA_HIX22, | |
201 | BFD_RELOC_SPARC_GOTDATA_LOX10, BFD_RELOC_SPARC_GOTDATA_OP_HIX22, | |
202 | BFD_RELOC_SPARC_GOTDATA_OP_LOX10, BFD_RELOC_SPARC_GOTDATA_OP): New. | |
203 | * libbfd.h: Regnerate. | |
204 | * bfd-in2.h: Regenerate. | |
205 | * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Add entries for | |
206 | GOTDATA relocations. | |
207 | (sparc_reloc_map): Likewise. | |
208 | (_bfd_sparc_elf_check_relocs): Handle R_SPARC_GOTDATA_* like | |
209 | R_SPARC_GOT*. | |
210 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
211 | (_bfd_sparc_elf_relocate_section): Transform R_SPARC_GOTDATA_HIX22, | |
212 | R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22, and | |
213 | R_SPARC_GOTDATA_OP_LOX10 into the equivalent R_SPARC_GOT* reloc. | |
214 | Simply ignore R_SPARC_GOTDATA_OP relocations. | |
215 | ||
c5cb8442 TS |
216 | 2008-04-14 Aurelien Jarno <aurelien@aurel32.net> |
217 | ||
218 | * configure.in: Link with the PIC version of libiberty on | |
219 | Linux/MIPS hosts. | |
220 | * configure: Regenerate. | |
221 | ||
19a6653c AM |
222 | 2008-04-14 Edmar Wienskoski <edmar@freescale.com> |
223 | ||
224 | * archures.c: Add bfd_mach_ppc_e500mc. | |
225 | * bfd-in2.h: Regenerate. | |
226 | ||
2ec9638b AM |
227 | 2008-04-08 Alan Modra <amodra@bigpond.net.au> |
228 | ||
229 | * elf32-spu.c (spu_elf_build_stubs): Correct error message. | |
230 | (mark_functions_via_relocs): Remove premature init of symtab_hdr. | |
231 | (collect_overlays): Commment typo fix. | |
232 | ||
a94b9d2d AM |
233 | 2008-04-08 Kees Cook <kees@canonical.com> |
234 | ||
235 | * elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note | |
236 | in EXEC_P bfds. | |
237 | ||
9dcc4794 AM |
238 | 2008-04-08 Alan Modra <amodra@bigpond.net.au> |
239 | ||
240 | * elf32-spu.c: Include libiberty.h. | |
241 | (struct spu_link_hash_table): Add local_stire, overlay_fixed, reserved, | |
242 | non_ovly_stub, spu_elf_load_ovl_mgr, spu_elf_open_overlay_script, | |
243 | spu_elf_relink, auto_overlay fields. | |
244 | (AUTO_OVERLAY, AUTO_RELINK, OVERLAY_RODATA): Define. | |
245 | (needs_ovl_stub): Flip test so that call to non-function warning | |
246 | is emitted during relocate_section rather than earlier. | |
247 | (spu_elf_check_vma): Stash --auto-overlay parameters, and clear | |
248 | auto_overlay if no section exceeds local store. | |
249 | (struct call_info): Add count, max_depth, is_pasted fields. | |
250 | (struct function_info): Add rodata, last_caller, call_count, | |
251 | depth, new visit flags. | |
252 | (insert_callee): Increment call count. | |
253 | (copy_callee): New function. | |
254 | (mark_functions_via_relocs): Investigate all reloc types to count | |
255 | possible function pointer stubs for --auto-overlay. Track | |
256 | last_caller and increment function call_count. | |
257 | (pasted_function): Insert a "call" into call info for pasted section. | |
258 | (remove_cycles): Track max depth of calls. Don't emit call graph | |
259 | pruning warning for --auto-overlay. | |
260 | (build_call_tree): Don't transfer_calls for --auto-overlay. | |
261 | Adjust remove_cycles call. | |
262 | (sort_calls, sort_lib, sort_bfds): New functions. | |
263 | (struct _mos_param, struct _uos_param, struct _cl_param): New. | |
264 | (mark_overlay_section, unmark_overlay_section): New functions. | |
265 | (collect_lib_sectios, auto_ovl_lib_functions): New functions. | |
266 | (collect_overlays, find_pasted_call): New functions. | |
267 | (sum_stack): Deal with is_pasted "calls". Exit before printing | |
268 | when --auto-overlay. | |
269 | (spu_elf_auto_overlay): New function. | |
270 | (spu_elf_final_link): Call spu_elf_auto_overlay. | |
271 | * elf32-spu.h (spu_elf_check_vma): Update prototype. | |
272 | ||
380814a6 AM |
273 | 2008-04-07 Alan Modra <amodra@bigpond.net.au> |
274 | ||
275 | * elf32-spu.c (allocate_spuear_stubs): Ensure _SPUEAR_ symbol | |
276 | is defined in overlay section before creating a stub. | |
277 | (build_spuear_stubs): Likewise. | |
278 | (spu_elf_size_stubs, spu_elf_build_stubs): Adjust calls. | |
279 | ||
055ed83b AM |
280 | 2008-04-02 Alan Modra <amodra@bigpond.net.au> |
281 | ||
282 | * elf32-spu.c (insert_callee): Reorder call list so most recent | |
283 | call is always first. | |
284 | (interesting_section): Move. | |
285 | (mark_functions_via_relocs): Fold interesting_section and | |
286 | reloc_count tests in callers to here. Simplify output section | |
287 | owner test. | |
288 | (discover_functions): Set "gaps" when no symbols and some | |
289 | "interesting_section". Run pasted_function loop for no symbol | |
290 | bfds. | |
291 | (for_each_node, transfer_calls): New functions. | |
292 | (mark_non_root): Adjust to suit for_each_node. | |
293 | (call_graph_traverse): Likewise. Fix memory leak. Rename to.. | |
294 | (remove_cycles): ..this. | |
295 | (build_call_tree): Use for_each_node and transfer_calls. | |
296 | (struct _sum_stack_param): New. | |
297 | (sum_stack): Adjust to suit for_each_node. Return error on | |
298 | malloc failure. Move code to print root node cumulative stack from.. | |
299 | (spu_elf_stack_analysis): ..here. Use for_each_node. | |
300 | ||
89a58aeb AM |
301 | 2008-03-31 Cary Coutant <ccoutant@google.com> |
302 | ||
303 | PR 6006 | |
304 | * archive.c (_bfd_slurp_extended_name_table): Change | |
305 | ARFMAG[0] to ARFMAG[1]. | |
306 | (_bfd_construct_extended_name_table): Likewise. | |
307 | ||
3a3b6725 DJ |
308 | 2008-03-31 Daniel Jacobowitz <dan@codesourcery.com> |
309 | ||
310 | * elfxx-mips.c (mips_elf_record_got_page_entry): Update comment. | |
311 | (_bfd_mips_elf_check_relocs): Update comments. Always call | |
312 | mips_elf_record_got_page_entry for R_MIPS_GOT_PAGE. | |
313 | ||
314 | 2008-03-27 Cary Coutant <ccoutant@google.com> | |
a8da6403 | 315 | |
89a58aeb | 316 | Add support for thin archives. |
a8da6403 NC |
317 | * archive.c (_bfd_find_nested_archive): New function. |
318 | (get_extended_arelt_filename): Add origin parameter. | |
319 | (_bfd_generic_read_ar_hdr_mag): Deal with extended name | |
320 | combined with a file offset. | |
321 | (append_relative_path): New function. | |
322 | (_bfd_get_elt_at_filepos): Deal with external members and | |
323 | nested archives. | |
324 | (bfd_generic_openr_next_archived_file): Thin archives. | |
325 | (bfd_generic_archive_p): Recognize new magic string. | |
326 | (adjust_relative_path): New function. | |
327 | (_bfd_construct_extended_name_table): Construct extended | |
328 | names for thin archive members. | |
329 | (_bfd_write_archive_contents): Emit new magic string, skip | |
330 | copying files for thin archives. | |
331 | * bfd-in.h (bfd_is_thin_archive): New macro. | |
332 | * bfd.c (struct bfd): New fields for thin archives. | |
333 | * libbfd-in.h (struct areltdata): New field for thin archives. | |
334 | * opncls.c (bfd_close): Delete BFDs for nested archives. | |
335 | ||
c35e54f4 BS |
336 | 2008-03-25 Bernd Schmidt <bernd.schmidt@analog.com> |
337 | ||
338 | * elf32-bfin.c (bfin_final_link_relocate): New function, wrapper around | |
339 | _bfd_final_link_relocate that also handles R_pcrel24 relocs. | |
340 | (bfinfdpic_relocate_section, bfin_relocate_section): Use it. | |
341 | ||
3348747a NS |
342 | 2008-03-25 Nathan Sidwell <nathan@codesourcery.com> |
343 | ||
344 | * elf32-arm.c (elf32_arm_final_link_relocate): Skip dynamic relocs | |
345 | in vxworks tls_vars sections. | |
346 | (allocate_dynrelocs, elf32_arm_size_dynamic_sections): Likewise. | |
347 | * elf32-i386.c (allocate_dynrelocs, | |
348 | elf_i386_size_dynamic_sections, elf_i386_relocate_section): Likewise. | |
349 | * elf32-ppc.c (allocate_dynrelocs, ppc_elf_size_dynamic_sections, | |
350 | ppc_elf_relocate_section): Likewise. | |
351 | * elf32-sh.c (allocate_dynrelocs, sh_elf_size_dynamic_sections, | |
352 | sh_elf_relocate_section): Likewise. | |
353 | * elfxx-sparc.c (allocate_dynrelocs, | |
354 | _bfd_sparc_elf_size_dynamic_sections, | |
355 | _bfd_sparc_elf_relocate_section): Likewise. | |
356 | ||
a1f3c56e AN |
357 | 2008-03-21 Adam Nemet <anemet@caviumnetworks.com> |
358 | ||
359 | * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to | |
360 | print the values from the dynamic section. | |
361 | ||
51e38d68 RS |
362 | 2008-03-20 Richard Sandiford <rsandifo@nildram.co.uk> |
363 | ||
364 | * elfxx-mips.c (MIPS_ELF_GNU_GOT1_MASK): New macro. | |
365 | (_bfd_mips_elf_finish_dynamic_sections): Use it instead of 0x80000000. | |
366 | ||
c65be8d7 AM |
367 | 2008-03-20 Alan Modra <amodra@bigpond.net.au> |
368 | ||
369 | * elf32-spu.c (spu_elf_create_sections): Remove output_bfd parameter. | |
370 | (spu_elf_find_overlays, spu_elf_size_stubs): Likewise | |
371 | (process_stubs, discover_functions, build_call_tree): Likewise. | |
372 | (spu_elf_stack_analysis): Likewise. | |
373 | (spu_elf_check_vma): Likewise. Move. | |
374 | (struct call_info): Make "is_tail" a bitfield. | |
375 | (insert_callee): Clear fun->start and set fun->is_func if we find | |
376 | a non-tail call. | |
377 | * elf32-spu.h (spu_elf_create_sections): Update prototype. | |
378 | (spu_elf_find_overlays, spu_elf_size_stubs, spu_elf_check_vma): Ditto. | |
379 | ||
58c85be7 RW |
380 | 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
381 | ||
382 | * aclocal.m4: Regenerate. | |
383 | * configure: Likewise. | |
384 | * Makefile.in: Likewise. | |
385 | ||
41bed6dd L |
386 | 2008-03-16 H.J. Lu <hongjiu.lu@intel.com> |
387 | ||
388 | PR ld/5789 | |
389 | PR ld/5943 | |
390 | * elf32-i386.c (elf_i386_relocate_section): Issue an error | |
391 | for R_386_GOTOFF relocaton against undefined hidden/internal | |
392 | symbols when building a shared object. | |
393 | ||
394 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Issue an | |
395 | error for R_X86_64_PC8/R_X86_64_PC16/R_X86_64_PC32 | |
396 | relocaton against undefined hidden/internal symbols when | |
397 | building a shared object. | |
398 | (elf64_x86_64_finish_dynamic_symbol): Return FALSE when symbol | |
399 | is referenced locally, but isn't defined in a regular file. | |
400 | ||
6ad2759d L |
401 | 2008-03-15 H.J. Lu <hongjiu.lu@intel.com> |
402 | ||
403 | * bfd-in.h (BFD_NO_FLAGS, HAS_RELOC, EXEC_P, HAS_LINENO, | |
404 | HAS_DEBUG, HAS_SYMS, HAS_LOCALS, DYNAMIC, WP_TEXT, D_PAGED, | |
405 | BFD_IS_RELAXABLE, BFD_TRADITIONAL_FORMAT, BFD_IN_MEMORY, | |
406 | HAS_LOAD_PAGE, BFD_LINKER_CREATED): Moved to ... | |
407 | * bfd.c: Here. | |
408 | ||
409 | * bfd.c (bfd): Change cacheable, target_defaulted, opened_once, | |
410 | mtime_set, no_export, output_has_begun and has_armap to bit | |
411 | field. | |
412 | ||
413 | * bfd-in2.h: Regenerated. | |
414 | ||
c04ea773 DJ |
415 | 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
416 | ||
417 | * cache.c (close_one): Remove mtime hack. | |
418 | ||
0f2830ff L |
419 | 2008-03-14 H.J. Lu <hongjiu.lu@intel.com> |
420 | ||
421 | PR ld/5913 | |
422 | * elfxx-ia64.c (elfNN_ia64_tprel_base): Remove BFD_ASSERT. | |
423 | (elfNN_ia64_dtprel_base): Likewise. | |
424 | (elfNN_ia64_relocate_section): Go to missing_tls_sec if | |
425 | tls_sec is NULL before calling elfNN_ia64_tprel_base or | |
426 | elfNN_ia64_dtprel_base. Report unsupported TLS relocations. | |
427 | ||
fdba2fcd AM |
428 | 2008-03-14 Alan Modra <amodra@bigpond.net.au> |
429 | ||
430 | * elf32-spu.c (process_stubs, spu_elf_relocate_section): Move | |
431 | common code to.. | |
432 | (maybe_needs_stub): ..here, a new function that also omits stubs | |
433 | for .eh_frame, and.. | |
434 | (needs_ovl_stub): ..here. Create stubs for labels in code section | |
435 | referenced by switch jump table. | |
436 | (spu_elf_find_overlays): Set htab->ovly_load and htab->ovly_return. | |
437 | (enum _insn_type): Delete. | |
438 | (enum _stub_type): New. | |
439 | (count_stub, build_stub): Adjust. | |
440 | (allocate_spuear_stubs, build_spuear_stubs): Adjust. | |
441 | ||
72de5009 AM |
442 | 2008-03-13 Alan Modra <amodra@bigpond.net.au> |
443 | ||
444 | * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast. | |
445 | (_bfd_elf_assign_file_position_for_section): Simplify align. | |
446 | (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough | |
447 | for sh_addralign. | |
448 | (elf_fake_sections, swap_out_syms): Likewise. | |
449 | * elflink.c (bfd_elf_final_link): Likewise. | |
450 | ||
50e7d84b AM |
451 | 2008-03-13 Alan Modra <amodra@bigpond.net.au> |
452 | ||
453 | * Makefile.am: Run "make dep-am". | |
454 | * Makefile.in: Regenerate. | |
455 | * po/SRC-POTFILES.in: Regenerate. | |
456 | ||
2774f1a6 BS |
457 | 2008-03-12 Bernd Schmidt <bernd.schmidt@analog.com> |
458 | ||
459 | From Jie Zhang <jie.zhang@analog.com> | |
460 | * elf32-bfin.c (struct bfinfdpic_relocs_info): Make got17m4, | |
461 | gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, fdgoffhilo, | |
462 | gotoff, call and sym not bitfields. | |
463 | (bfinfdpic_gc_sweep_hook): New function; update the relocation | |
464 | information for the relocations of the section being removed. | |
465 | (bfinfdpic_check_relocs): Accumulate the number of relocations | |
466 | which set got17m4, gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, | |
467 | fdgoffhilo, gotoff, call and sym fields. | |
468 | (elf_backend_gc_sweep_hook): Redefine for FD-PIC. | |
469 | ||
4fbb74a6 AM |
470 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
471 | ||
472 | PR 5900 | |
473 | * elf-bfd.h: Include elf/internal.h after elf/external.h. | |
474 | * elfcode.h (elf_swap_symbol_in): Map reserved shndx range. | |
475 | (elf_swap_symbol_out): Adjust SHN_XINDEX test. | |
476 | (elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values | |
477 | seen in external structs. | |
478 | (valid_section_index_p): Delete. | |
479 | (elf_object_p): Don't increment section numbers over reserved range. | |
480 | Simplify test for valid sh_link, sh_info and e_shstrndx fields. | |
481 | (elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values | |
482 | seen in external structs. Don't increment section numbers over | |
483 | reserved range. | |
484 | * elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx. | |
485 | (bfd_section_from_shdr): Likewise. | |
486 | (group_signature): Range check before accessing elf_elfsections. | |
487 | (_bfd_elf_setup_sections): Likewise. | |
488 | (bfd_section_from_shdr): Likewise. | |
489 | (bfd_section_from_shdr): Don't increment section number over | |
490 | reserved sections. | |
491 | (assign_file_positions_for_non_load_sections): Likewise. | |
492 | (assign_file_positions_except_relocs): Likewise. | |
493 | (_bfd_elf_write_object_contents): Likewise. | |
494 | (assign_section_numbers): Likewise. Adjust for changed SHN_*. | |
495 | (prep_headers): Delete unused variable. | |
496 | * elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust | |
497 | for changed SHN_* values. | |
498 | (check_dynsym, elf_link_input_bfd): Likewise. | |
499 | (bfd_elf_final_link): Likewise. Don't skip over reserved section | |
500 | range. | |
501 | (elf_fixup_link_order): Check that sh_link field is valid. | |
502 | * elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned. | |
503 | * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before | |
504 | accesssing elf_elfsections. | |
505 | * elf32-avr.c (elf32_avr_size_stubs): Likewise. | |
506 | * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. | |
507 | * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise. | |
508 | * elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed | |
509 | SHN_* defines. Test for SHN_BAD return from | |
510 | _bfd_elf_section_from_bfd_section | |
511 | ||
cb33740c AM |
512 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
513 | ||
514 | * elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype. | |
515 | * elf.c (_bfd_elf_section_from_bfd_section): Return unsigned int, | |
516 | SHN_BAD on error. | |
517 | (_bfd_elf_print_private_bfd_data): Test for SHN_BAD result from | |
518 | _bfd_elf_section_from_bfd_section, not -1. | |
519 | (swap_out_syms): Likewise. | |
520 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
521 | (bfd_elf_get_bfd_needed_list): Likewise. | |
522 | (bfd_elf_match_symbols_in_sections): Likewise. | |
523 | (elf_link_add_object_symbols): Don't bother testing for symbols | |
524 | using normal sections before calling bfd_section_from_elf_index. | |
525 | (elf_link_input_bfd, bfd_elf_final_link): Likewise. | |
526 | (bfd_elf_reloc_symbol_deleted_p): Likewise. | |
527 | * elfcode.h (elf_slurp_symbol_table): Likewise. | |
528 | * elf32-spu.c (get_sym_h): Likewise. | |
529 | * elf32-xtensa.c (get_elf_r_symndx_section): Likewise. | |
530 | * elf64-ppc.c (opd_entry_value, get_sym_h, ppc64_elf_edit_toc): Ditto. | |
531 | * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise. | |
532 | ||
5f5fb9ec AM |
533 | 2008-03-11 Alan Modra <amodra@bigpond.net.au> |
534 | ||
535 | * elf32-spu.c (spu_elf_relocate_section): Test identical conditions | |
536 | to those in process_stubs for overlay symbols. | |
537 | ||
b1cc4aeb PB |
538 | 2008-03-09 Paul Brook <paul@codesourcery.com> |
539 | ||
540 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new | |
541 | Tag_VFP_arch values. | |
542 | ||
12a0a0fd PB |
543 | 2008-03-08 Paul Brook <paul@codesourcery.com> |
544 | ||
545 | * elf32-arm.c (insert_thumb_branch): Rewrite. | |
546 | (elf32_thumb_to_arm_stub): Use new insert_thumb_branch. | |
547 | ||
39623e12 PB |
548 | 2008-03-07 Paul Brook <paul@codesourcery.com> |
549 | ||
550 | * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and | |
551 | MOVT relocations. | |
552 | (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign | |
553 | extension. | |
554 | (elf32_arm_relocate_section): Handle MOVW and MOVT | |
555 | relocations. Improve safety check for other weird relocations. | |
556 | (elf32_arm_check_relocs): Only set h->needs_plt for branch/call | |
557 | relocations. | |
558 | ||
77cba8a3 | 559 | 2008-03-03 Bob Wilson <bob.wilson@acm.org> |
50e7d84b | 560 | |
77cba8a3 BW |
561 | * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and |
562 | only compute its value once. | |
50e7d84b | 563 | |
4a628337 AM |
564 | 2008-03-03 Alan Modra <amodra@bigpond.net.au> |
565 | ||
566 | * elf32-spu.c (struct got_entry): Add "addend" field. | |
567 | (count_stub, build_stub): Use a new stub if relocation addend | |
568 | differs from existing stubs for this symbol. | |
569 | (process_stubs): Deal with addends. | |
570 | (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise. | |
571 | ||
d95edcac L |
572 | 2008-03-02 H.J. Lu <hongjiu.lu@intel.com> |
573 | ||
574 | PR ld/5789 | |
575 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true | |
576 | for hidden and local symbols. | |
577 | ||
89200bf8 AM |
578 | 2008-03-03 Alan Modra <amodra@bigpond.net.au> |
579 | ||
580 | * elf32-ppc.c (allocate_dynrelocs): Discard relocs on | |
581 | undefined symbols with internal or hidden visibility. | |
582 | (ppc_elf_relocate_section): Likewise. Use SYMBOL_CALLS_LOCAL | |
583 | rather than SYMBOL_REFERENCES_LOCAL on branches. Don't | |
584 | return immediately on dynamic reloc error. | |
585 | ||
176a0d42 AM |
586 | 2008-03-01 Alan Modra <amodra@bigpond.net.au> |
587 | ||
588 | * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs | |
589 | if emitrelocations. | |
590 | (get_relocs): New function, split out from.. | |
591 | (ppc_build_one_stub): ..here. Add relocs on plt_branch stubs if | |
592 | emitrelocations. Remove indx temp. | |
593 | (ppc_size_one_stub): Count new stub relocs. | |
594 | (ppc64_elf_size_stubs): Count new glink reloc. | |
595 | (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations. | |
596 | (ppc64_elf_finish_dynamic_sections): Output glink relocs. | |
597 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic | |
598 | glink code. | |
599 | ||
911f096e AM |
600 | 2008-02-28 Alan Modra <amodra@bigpond.net.au> |
601 | ||
602 | * elf32-spu.c (mark_functions_via_relocs): Don't assume that | |
603 | the "->start" pointer reaches to function origin, so that we | |
604 | can handle functions split over more than two sections. | |
605 | (build_call_tree): Likewise. | |
606 | (pasted_function): Don't attempt to set fun->start back to the | |
607 | function origin, just go back one section. | |
608 | ||
ad9563d6 CM |
609 | 2008-02-27 Catherine Moore <clm@codesourcery.com> |
610 | ||
611 | * elf.c ( _bfd_elf_print_private_bfd_data): Call | |
612 | elf_backend_get_target_dtag if defined. | |
613 | * elf32-mips.c (elf_backend_get_target_dtag): Define. | |
614 | * elf64-mips.c: Likewise. | |
615 | * elfn32-mips.c: Likewise. | |
616 | * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New. | |
617 | * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare. | |
618 | * elf-bfd.h (elf_backend_get_target_dtag): Add prototype. | |
619 | * elfxx-target.h (elf_backend_get_target_dtag): Add default. | |
911f096e | 620 | (elf_backend_data): Add elf_backend_get_target_dtag. |
ad9563d6 | 621 | |
625af618 AM |
622 | 2008-02-26 Alan Modra <amodra@bigpond.net.au> |
623 | ||
624 | * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed | |
625 | for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms, | |
626 | and assume branch relocs are not dynamic when non-shared. | |
627 | (readonly_dynrelocs): New function, split out from.. | |
628 | (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs. | |
629 | (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries, | |
630 | clear non_got_ref.. | |
631 | (allocate_dynrelocs): ..and don't set u.def for undefined weak. | |
632 | Do allow dynamic relocs on undefined symbols. | |
633 | (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs. | |
634 | (ppc_elf_relocate_section): Mirror dynamic reloc changes in | |
635 | check_relocs. | |
636 | (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak | |
637 | plt symbols needing pointer_equality_needed. | |
638 | ||
1cd81501 AM |
639 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
640 | ||
641 | * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change. | |
642 | ||
0eb4a168 AM |
643 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
644 | ||
645 | * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy | |
646 | pointer_equality_needed. | |
647 | (ppc_elf_check_relocs): Split out non-branch relocs from others | |
648 | that might emit dynamic relocs. Set pointer_equality_needed | |
649 | for their symbols. Don't set non_got_ref on branch reloc symbols. | |
650 | (ppc_elf_hash_symbol): New function. | |
651 | (elf_backend_hash_symbol): Define. | |
652 | (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed. | |
653 | Error if pointer_equality_needed on weak plt symbol. | |
654 | ||
3ae181ee L |
655 | 2008-02-22 H.J. Lu <hongjiu.lu@intel.com> |
656 | ||
657 | PR ld/5788 | |
658 | * elflink.c (elf_create_symbuf): Correct buffer size and | |
659 | position. | |
660 | ||
34b5e0b2 NC |
661 | 2008-02-22 Nick Clifton <nickc@redhat.com> |
662 | ||
663 | PR 868 | |
3ae181ee | 664 | * dwarf2.c: Revert previous patch. All of the allocate memory is |
34b5e0b2 | 665 | on an obstack which will be freed at some other time. |
0eb4a168 | 666 | |
515ef31d NC |
667 | 2008-02-20 Nick Clifton <nickc@redhat.com> |
668 | ||
669 | PR 868 | |
670 | * libbfd.c (bfd_realloc_or_free): New function. Performs like | |
671 | bfd_realloc, but if the (re)allocation fails, the pointer is | |
672 | freed. | |
673 | * libbfd-in.h: Prototype. | |
674 | * libbfd.h: Regenerate. | |
675 | * bfdio.c (bfd_bwrite): Use the new function. | |
676 | (bfd_seek): Likewise. | |
677 | * bfdwin.c:(bfd_get_file_window): Likewise. | |
678 | * elf-strtab.c (_bfd_elf_strtab_add): Likewise. | |
679 | * elf32-ppc.c (ppc_elf_relax_section): Likewise. | |
680 | * elf32-xtensa.c (vsprintf_msg): Likewise. | |
681 | * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise. | |
682 | * stabs.c (_bfd_link_seciton_stabs): Likewise. | |
683 | * vms-misc.c (_bfd_vms_get_record): Likewise. | |
684 | * vms-tir.c (check_section): Likewise. | |
685 | * vms.c (vms_new_section_hook): Likewise. | |
686 | * elf32-arm.c (elf32_arm_section_map_add): Check that the | |
687 | allocation of sec_data->map succeeded before using it. | |
688 | * elflink.c (elf_link_output_sym): Do not overwrite finfo-> | |
689 | symshndxbuf until it is known that the reallocation succeeded. | |
690 | ||
b42bf1e0 NC |
691 | 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br> |
692 | Nick Clifton <nickc@redhat.com> | |
693 | ||
694 | PR 868 | |
695 | * dwarf2.c (read_abbrevs): Free the abbreviation table if we run | |
696 | out of memory. | |
697 | (decode_line_info): Free the line_info_table before returning a | |
698 | failure result. | |
699 | (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table. | |
700 | Free the line table. Free the function table. Free the variable | |
701 | table. | |
702 | ||
0a40daed MK |
703 | 2008-02-17 Mark Kettenis <kettenis@gnu.org> |
704 | ||
705 | * elf.c (swap_out_syms): Avoid preprocessing directive within | |
706 | macro arg. | |
707 | ||
3f001e84 JK |
708 | 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
709 | ||
710 | * elf.c (assign_file_positions_for_load_sections): Set the type of | |
711 | PT_NOTE sections to SHT_NOTE. | |
712 | ||
37da76e8 AM |
713 | 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
714 | ||
715 | * simple.c (bfd_simple_get_relocated_section_contents): Set | |
716 | link_info.output_bfd. | |
717 | ||
d74e4b29 NS |
718 | 2008-02-16 Nathan Sidwell <nathan@codesourcery.com> |
719 | ||
720 | * dwarf2.c (find_line): Don't trust debug information after an | |
721 | unparseable compilation unit. | |
722 | ||
f856272b AM |
723 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
724 | ||
725 | PR 5765 | |
726 | * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags. | |
727 | * bfd-in2.h: Regenerate. | |
728 | ||
0c8d6e5c AM |
729 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
730 | ||
731 | * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA. | |
732 | * elf.c (bfd_elf_allocate_object): Don't check for already allocated | |
733 | tdata. | |
734 | * elf32-hppa.c (elf32_hppa_mkobject): New function. | |
735 | (bfd_elf32_mkobject): Define. | |
736 | * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with.. | |
737 | (is_ppc_elf): ..this new macro. | |
738 | * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with.. | |
739 | (is_ppc64_elf): ..this new macro. | |
740 | ||
f13a99db AM |
741 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
742 | ||
743 | * elflink.c: Replace all accesses to hash->creator field with | |
744 | output_bfd->xvec. | |
745 | * cofflink.c: Likewise. | |
746 | * coff-h8300.c: Likewise. | |
747 | * ecoff.c: Likewise. | |
748 | * elf32-m68hc1x.c: Likewise. | |
749 | * elf32-ppc.c: Likewise. | |
750 | * elf64-alpha.c: Likewise. | |
751 | * elf64-ppc.c: Likewise. | |
752 | * elf64-sparc.c: Likewise. | |
753 | * elfxx-mips.c: Likewise. | |
754 | * i386linux.c: Likewise. | |
755 | * m68klinux.c: Likewise. | |
756 | * sparclinux.c: Likewise. | |
757 | * sunos.c: Likewise. | |
758 | * xcofflink.c: Likewise. | |
759 | * linker.c: Likewise. | |
760 | (_bfd_link_hash_table_init): Don't store creator. | |
761 | ||
e81819a5 NC |
762 | 2008-02-14 Peter Jones <pjones@redhat.com> |
763 | ||
764 | * efi-rtdrv-ia32.c: New file. | |
765 | * efi-bsdrv-ia32.c: New file. | |
766 | * efi-rtdrv-ia64.c: New file. | |
767 | * efi-bsdrv-ia64.c: New file. | |
768 | * efi-rtdrv-x86_64.c: New file. | |
769 | * efi-bsdrv-x86_64.c: New file. | |
770 | * peicode.h (pe_bfd_object_p): Add support for boot service and | |
771 | runtime service drivers. | |
772 | * libpei.h: Add macros for EFI formats, and rename the efi application | |
773 | format macros to disambiguate. | |
774 | * targets.c: Add bfd_target _vec externs. | |
775 | (_bfd_tar): Add EFI _vec entries. | |
776 | * config.bfd: Add EFI vectors into the selection routines. | |
777 | * configure.in: add EFI _vec entries. | |
778 | * configure: Regenerate. | |
779 | * Makefile.am: Add EFI files. | |
780 | * Makefile.in: Regenerate. | |
781 | ||
ab1579fd NS |
782 | 2008-02-14 Nathan Sidwell <nathan@codesourcery.com> |
783 | ||
784 | * dwarf1.c (struct dwarf1_debug): Add syms member. | |
785 | (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory. | |
786 | (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate | |
787 | section contents, check for out of memory. | |
788 | ||
789 | * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte. | |
790 | (parse_die): Change data pointers to bfd_byte. | |
791 | (parse_line_table, parse_functions_in_unit): Likewise. | |
792 | ||
d40f3da9 AM |
793 | 2008-02-14 Alan Modra <amodra@bigpond.net.au> |
794 | ||
795 | * elflink.c (compute_bucket_count): Warning fixes. | |
796 | ||
f15557e4 DD |
797 | 2008-02-12 DJ Delorie <dj@redhat.com> |
798 | ||
799 | * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of | |
800 | relocation pointing to local symbol in merged section. | |
801 | ||
802 | * elf32-iq2000.c (iq2000_elf_relocate_offset16): New. | |
803 | (iq2000_elf_relocate_section): Call it. | |
804 | ||
0ffa91dd NC |
805 | 2008-02-12 Nick Clifton <nickc@redhat.com> |
806 | ||
807 | PR ld/5692 | |
808 | * elf-bfd.h (enum elf_object_id): New enum, used to identify | |
809 | target specific extensions to the elf_obj_tdata structure. | |
810 | (struct elf_obj_tdata): New field 'object_id'. | |
811 | (elf_object_id, elf_program_header_size, elf_symtab_hdr): New | |
812 | macros for accessing fields in the elf_obj_tdata structure. | |
813 | (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object. | |
814 | (bfd_elf_allocate_object): New function. | |
815 | * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object | |
816 | and implement by calling bfd_elf_allocate_object. | |
817 | (bfd_elf_allocate_object): New function: Allocates an | |
818 | elf_obj_tdata structure, possibly with a target specific | |
819 | extension. | |
820 | * elfxx-target.h (bfd_elfNN_mkobject): Use | |
821 | bfd_elf_make_generic_object as the default value. | |
822 | * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata | |
823 | for consistency with other, similar structures. | |
824 | (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM | |
825 | ELF bfd. | |
826 | (elf32_arm_mkobject): Call bfd_elf_allocate_object. | |
827 | (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check | |
828 | the bfd being processed. | |
829 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. | |
830 | (bfd_elf32_arm_set_target_relocs): Likewise. | |
831 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
832 | (bfd_elf32_arm_copy_private_bfd_data): Likewise. | |
833 | (bfd_elf32_arm_merge_eabi_attributes): Likewise. | |
834 | (bfd_elf32_arm_merge_private_bfd_data): Likewise. | |
835 | (bfd_elf32_arm_check_relocs): Likewise. | |
836 | (bfd_elf32_arm_gc_mark_extra_sections): Likewise. | |
837 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
838 | (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr. | |
839 | (bfd_elf32_arm_init_maps): Likewise. | |
840 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
841 | (bfd_elf32_arm_relocate_section): Likewise. | |
842 | (bfd_elf32_arm_gc_sweep_hook): Likewise. | |
843 | (bfd_elf32_arm_check_relocs): Likewise. | |
844 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
845 | * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object. | |
846 | (is_i386_elf): New macro. Checks a BFD to make sure that is an x86 | |
847 | ELF bfd. | |
848 | (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd | |
849 | being processed. | |
850 | (elf_i386_size_dynamic_sections): Likewise. | |
851 | (elf_i386_relocate_section): Likewise. | |
852 | (elf_i386_check_relocs): Use elf_symtab_hdr. | |
853 | (elf_i386_gc_sweep_hook): Likewise. | |
854 | (elf_i386_size_dynamic_sections): Likewise. | |
855 | (elf_i386_relocate_section): Likewise. | |
856 | * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object. | |
857 | (elf_create_pointer_linker_section): Use is_ppc_elf_target to | |
858 | verify that the bfd before accessing target specific fields. | |
859 | (ppc_elf_check_relocs): Likewise. | |
860 | (elf_finish_pointer_linker_section): Likewise. | |
861 | (elf_create_pointer_linker_section): Use elf_symtab_hdr. | |
862 | (ppc_elf_check_relocs): Likewise. | |
863 | (ppc_elf_gc_sweep_hook): Likewise. | |
864 | (ppc_elf_tls_optimize): Likewise. | |
865 | (ppc_elf_size_dynamic_sections): Likewise. | |
866 | (ppc_elf_relax_section): Likewise. | |
867 | (ppc_elf_relocate_section): Likewise. | |
868 | * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment | |
869 | reminding programmers to keep this structure in sync with the one | |
870 | defined in elf64-s390.c. | |
871 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
872 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
873 | ELF bfd. | |
874 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
875 | being processed. | |
876 | (elf_s390_size_dynamic_sections): Likewise. | |
877 | (elf_s390_relocate_section): Likewise. | |
878 | (elf_s390_check_relocs): Use elf_symtab_hdr. | |
879 | (elf_s390_gc_sweep_hook): Likewise. | |
880 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 881 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
882 | * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object. |
883 | (is_sh_elf): New macro. Checks a BFD to make sure that is an SH | |
884 | ELF bfd. | |
885 | (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the | |
886 | bfd being processed. | |
887 | (sh_elf_relocate_section): Likewise. | |
888 | (sh_elf_check_relocs): Likewise. | |
889 | (sh_elf_copy_private_data): Likewise. | |
890 | (sh_elf_relax_section): Use elf_symtab_hdr. | |
891 | (sh_elf_size_dynamic_sections): Likewise. | |
892 | (sh_elf_relocate_section): Likewise. | |
893 | (sh_elf_get_relocated_section_contents): Likewise. | |
894 | (sh_elf_gc_sweep_hook): Likewise. | |
895 | (sh_elf_check_relocs): Likewise. | |
896 | * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object. | |
897 | (is_alpha_elf): New macro. Checks a BFD to make sure that is an | |
898 | Alpha ELF bfd. | |
899 | (elf64_alpha_create_got_section): Use is_alpha_elf macro to check | |
900 | the bfd being processed. | |
901 | (elf64_alpha_create_dynamic_section): Likewise. | |
902 | (elf64_alpha_check_relocs): Likewise. | |
903 | (elf64_alpha_size_got_sections): Likewise. | |
904 | (elf64_alpha_relax_section): Likewise. | |
905 | (elf64_alpha_relocate_section): Likewise. | |
906 | (elf64_alpha_final_link): Likewise. | |
907 | (elf64_alpha_check_relocs): Use elf_symtab_hdr. | |
908 | (elf64_alpha_relax_section): Likewise. | |
909 | (elf64_alpha_relocate_section_r): Likewise. | |
910 | (elf64_alpha_relocate_section): Likewise. | |
911 | * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object. | |
912 | (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd | |
913 | being processed. | |
914 | (opd_entry_value): Likewise. | |
915 | (allocate_dynrelocs): Likewise. | |
916 | (ppc64_elf_relocate_section): Likewise. | |
917 | (ppc64_elf_check_relocs): Use elf_symtab_hdr. | |
918 | (opd_entry_value): Likewise. | |
919 | (ppc64_elf_gc_sweep_hook): Likewise. | |
920 | (get_sym_h): Likewise. | |
921 | (ppc64_elf_edit_opd): Likewise. | |
922 | (ppc64_elf_tls_optimize): Likewise. | |
923 | (ppc64_elf_edit_toc): Likewise. | |
924 | (ppc64_elf_size_dynamic_sections): Likewise. | |
925 | (toc_adjusting_stub_needed): Likewise. | |
926 | (ppc64_elf_size_stubs): Likewise. | |
927 | (ppc64_elf_relocate_section): Likewise. | |
928 | * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment | |
929 | reminding programmers to keep this structure in sync with the one | |
930 | defined in elf32-s390.c. | |
931 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
932 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
933 | ELF bfd. | |
934 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
935 | being processed. | |
936 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 937 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
938 | (elf_s390_check_relocs): Use elf_symtab_hdr. |
939 | (elf_s390_gc_sweep_hook): Likewise. | |
940 | (elf_s390_size_dynamic_sections): Likewise. | |
941 | (elf_s390_relocate_section): Likewise. | |
942 | * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object. | |
943 | (is_x86_64_elf): New macro. Checks a BFD to make sure that is an | |
944 | x86_64 ELF bfd. | |
945 | (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd | |
946 | being processed. | |
947 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
948 | (elf64_x86_64_relocate_section): Likewise. | |
949 | (elf64_x86_64_check_relocs): Use elf_symtab_hdr. | |
950 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
951 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
952 | (elf64_x86_64_relocate_section): Likewise. | |
953 | * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object. | |
954 | (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc | |
955 | ELF bfd. | |
956 | (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the | |
957 | bfd being processed. | |
958 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
959 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
960 | (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr. | |
961 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
962 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
0eb4a168 | 963 | (_bfd_sparc_elf_relocate_section): Likewise. |
0ffa91dd | 964 | |
be4291f1 AM |
965 | 2008-02-12 Alan Modra <amodra@bigpond.net.au> |
966 | ||
967 | PR 5303, 5755 | |
968 | * arange-set.c: Delete. | |
969 | * arange-set.h: Delete. | |
970 | * dwarf2.c: Revert 2007-09-21 changes. | |
971 | * Makefile.am: Likewise. | |
972 | * Makefile.in: Regenerate. | |
973 | * po/SRC-POTFILES.in: Regenerate. | |
974 | ||
7a84e3da BS |
975 | 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com> |
976 | ||
977 | * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it | |
978 | if necessary. | |
979 | (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type | |
980 | mismatches are detected. | |
981 | ||
ca889129 BS |
982 | * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to |
983 | emit invalid relocs or rofixup entries for deleted .eh_frame entries. | |
984 | ||
662ed161 DJ |
985 | 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com> |
986 | ||
987 | * cache.c (cache_bread): Set bfd_error_file_truncated if EOF | |
988 | was reached. | |
989 | * srec.c (srec_scan): Calculate the checksum. Complain on mismatch. | |
990 | ||
2e444bea AM |
991 | 2008-02-07 Alan Modra <amodra@bigpond.net.au> |
992 | ||
993 | * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling | |
994 | of _ovly_buf_table size. | |
995 | (spu_elf_build_stubs): Use low bit of .size as "present" bit. | |
996 | Adjust initialisations relating to _ovly_buf_table. | |
997 | ||
d9ab3f29 | 998 | 2008-02-04 Bob Wilson <bob.wilson@acm.org> |
0eb4a168 | 999 | |
d9ab3f29 BW |
1000 | * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid |
1001 | relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND | |
1002 | relocations against dynamic symbols. | |
1003 | (elf_xtensa_finish_dynamic_sections): Do not fail if there is no | |
1004 | .xt.lit section. | |
0eb4a168 | 1005 | |
bb8541b9 L |
1006 | 2008-02-04 Kai Tietz <kai.tietz@onevision.com> |
1007 | H.J. Lu <hongjiu.lu@intel.com> | |
1008 | ||
1009 | PR 5715 | |
1010 | * warning.m4: Enable -Wno-format by default when using gcc on | |
1011 | mingw. | |
1012 | * configure: Regenerated. | |
1013 | ||
6f179bd0 AN |
1014 | 2008-02-04 Adam Nemet <anemet@caviumnetworks.com> |
1015 | ||
1016 | * archures.c: Update copyright. | |
1017 | (bfd_mach_mips_octeon): New macro. | |
1018 | * bfd-in2.h: Regenerate. | |
1019 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon. | |
1020 | (mips_set_isa_flags): Likewise. | |
1021 | (mips_mach_extensions): Add Octeon. | |
1022 | * cpu-mips.c: Update copyright. | |
1023 | (I_mipsocteon): New enum constant. | |
1024 | (arch_info_struct): Add Octeon. | |
1025 | ||
d16c7321 AM |
1026 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
1027 | ||
1028 | * elf32-spu.c (spu_elf_relocate_section): Correct return type. | |
1029 | Return error status on unexpected relocation errors. | |
1030 | ||
e44a2c9c AM |
1031 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
1032 | ||
1033 | PR ld/5692 | |
1034 | * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort | |
1035 | on non-ELF input. | |
1036 | * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue | |
1037 | processing on non-ELF input. | |
1038 | ||
f8a52b59 BW |
1039 | 2008-01-31 Marc Gauthier <marc@tensilica.com> |
1040 | ||
1041 | * config.bfd (xtensa*-*-*): Recognize processor variants. | |
1042 | ||
b7c368d0 NC |
1043 | 2008-01-31 Nick Clifton <nickc@redhat.com> |
1044 | ||
1045 | PR ld/5692 | |
1046 | * elf.c (bfd_elf_get_elf_syms): Check the return value of | |
1047 | get_elf_backend_data. | |
1048 | ||
00b2bfc1 NC |
1049 | 2008-01-28 Fabian Groffen <grobian@gentoo.org> |
1050 | ||
1051 | * config.bfd (x86_64-*-solaris2): Add support for this target. | |
1052 | ||
47f6dab9 AM |
1053 | 2008-01-28 Alan Modra <amodra@bigpond.net.au> |
1054 | ||
1055 | Rewrite SPU overlay handling code. Put overlay calls stubs in the | |
1056 | overlays where possible. Use a faster call stub, or optionally at | |
1057 | compile time, a more compact stub. Double size of _ovly_buf_table | |
1058 | so that low bit of _ovly_table.buf can be used as a "present" bit. | |
1059 | Reserve an extra _ovly_table entry for index zero. | |
1060 | * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields, | |
1061 | add new ones. | |
1062 | (struct got_entry): New. | |
1063 | (struct spu_stub_hash_entry): Delete. | |
1064 | (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete. | |
1065 | (spu_elf_link_hash_table_create): Adjust for struct changes. | |
1066 | (spu_stub_name): Delete. | |
1067 | (spu_elf_find_overlays): Don't track sections from overlay regions. | |
1068 | Instead set ovl_buf number in spu elf section data. Error if | |
1069 | overlays in one region don't start at the same address. Adjust | |
1070 | for struct _spu_elf_section_data changes. | |
1071 | (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete. | |
1072 | (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define. | |
1073 | (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes. | |
1074 | (enum _insn_type): New. | |
1075 | (count_stub, build_stub): New functions. | |
1076 | (allocate_spuear_stubs): Use count_stub. | |
1077 | (build_spuear_stubs): Use build_stub. | |
1078 | (populate_stubs, sort_stubs): Delete. | |
1079 | (process_stubs): New function. | |
1080 | (write_one_stub): Delete. | |
1081 | (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite. | |
1082 | (alloc_stack_info): Adjust for struct _spu_elf_section_data changes. | |
1083 | (maybe_insert_function, check_function_ranges): Likewise. | |
1084 | (find_function, pasted_function, build_call_tree): Likewise. | |
1085 | (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise. | |
1086 | (spu_elf_modify_program_headers): Likewise. | |
1087 | (interesting_section): Detect stub sections differently. Delete | |
1088 | htab param, adjust all callers. | |
1089 | (spu_elf_relocate_section): Rewrite stub handling. | |
1090 | (spu_elf_output_symbol_hook): Likewise. | |
1091 | (bfd_elf32_bfd_link_hash_table_free): Delete. | |
1092 | * elf32-spu.h (struct _spu_elf_section_data): Move input-only and | |
1093 | output-only fields into a union. Add ovl_buf. | |
1094 | (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes. | |
1095 | ||
c006d697 DD |
1096 | 2008-01-25 DJ Delorie <dj@redhat.com> |
1097 | ||
1098 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New. | |
1099 | ||
6e3d6dc1 NC |
1100 | 2008-01-25 Kai Tietz <kai.tietz@onevision.com> |
1101 | ||
1102 | * bfd-in.h: Add mingw I64 support. | |
1103 | * bfd-in2.h: Regenerated. | |
1104 | * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64. | |
1105 | ||
fbb3bb98 AM |
1106 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
1107 | ||
1108 | PR 4453 | |
1109 | * format.c (bfd_check_format_matches): Don't accept archives as | |
1110 | fully matching unless they have a map. | |
1111 | ||
297d8443 AM |
1112 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
1113 | ||
1114 | * elflink.c (_bfd_elf_link_output_relocs): Correct error return. | |
1115 | ||
66cd82b5 AM |
1116 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
1117 | ||
1118 | * ecoff.c (_bfd_ecoff_archive_p): Delete. | |
1119 | * libecoff.h (_bfd_ecoff_archive_p): Delete. | |
1120 | * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p. | |
1121 | * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise. | |
1122 | (ecoff_biglittle_vec): Likewise. | |
1123 | ||
85f7a9cb AM |
1124 | 2008-01-19 Alan Modra <amodra@bigpond.net.au> |
1125 | ||
1126 | PR 5646 | |
1127 | * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr | |
1128 | non-NULL before dereferencing. | |
1129 | ||
74f0fb50 AM |
1130 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
1131 | ||
1132 | PR 5604 | |
1133 | * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param | |
1134 | names from others. | |
1135 | (_bfd_elf_gc_keep): Declare. | |
1136 | * elfxx-target.h (elf_backend_gc_keep): Define. | |
1137 | (elfNN_bed): Init new field. | |
1138 | * elflink.c (_bfd_elf_gc_keep): New function. | |
1139 | (bfd_elf_gc_sections): Call gc_keep. | |
1140 | * elf64-ppc.c (elf_backend_gc_keep): Define. | |
1141 | (struct _ppc64_elf_section_data): Move .opd related fields to | |
1142 | a struct so they don't occupy the same storage. Adjust accesses | |
1143 | throughout file. | |
1144 | (ppc64_elf_gc_keep): New function, split out from.. | |
1145 | (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark | |
1146 | to mark .opd section, just set gc_mark. | |
1147 | (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust | |
1148 | unless we are changing .opd. Test non-NULL opd->adjust at all | |
1149 | accesses throughout file. | |
1150 | * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. | |
1151 | ||
787daa7a AM |
1152 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
1153 | ||
1154 | * bfd-in.h (BFD_HOST_LONG_LONG): Delete. | |
1155 | * bfd-in2.h: Regenerate. | |
1156 | ||
7dda2462 TG |
1157 | 2008-01-11 Tristan Gingold <gingold@adacore.com> |
1158 | Eric Botcazou <ebotcazou@adacore.com> | |
1159 | ||
1160 | * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a | |
1161 | relocatable. | |
1162 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise. | |
1163 | * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise. | |
1164 | * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise. | |
1165 | * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise. | |
1166 | * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise. | |
1167 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise. | |
1168 | * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
1169 | * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise. | |
1170 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. | |
1171 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise. | |
1172 | * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise. | |
1173 | * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
1174 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise. | |
1175 | * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise. | |
1176 | * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
1177 | * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output | |
1178 | or executable output with relocations. | |
1179 | ||
d2e2e649 NC |
1180 | 2008-01-09 Nick Clifton <nickc@redhat.com> |
1181 | ||
1182 | PR gas/5552 | |
1183 | * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field | |
1184 | to FALSE for all relocs. | |
1185 | ||
184d07da RS |
1186 | 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk> |
1187 | ||
1188 | PR ld/5526 | |
1189 | * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged | |
1190 | fields. Rename u.cie.u.merged to u.cie.u.merged_with. | |
1191 | (eh_frame_sec_info): Add a cies field. | |
1192 | (eh_frame_hdr_info): Add a merge_cies field. | |
1193 | * elf-eh-frame.c (cie): Add a reloc_index member to the personality | |
1194 | union. | |
1195 | (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead | |
1196 | of hdr_info->cies. | |
1197 | (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of | |
1198 | cie structures in all cases and use it instead of extended_cies. | |
1199 | If merging, store the cie array in sec_info->cies and point each | |
1200 | CIE's eh_fde_cie at the associated element. Do not try to | |
1201 | calculate the value of the personality routine here; record the | |
1202 | offset of the relocation instead. Do not merge CIEs here. | |
1203 | (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here... | |
1204 | (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead. | |
1205 | (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE. | |
1206 | (find_merged_cie): New function. | |
1207 | (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies. | |
1208 | ||
780b2360 NC |
1209 | 2008-01-07 Nick Clifton <nickc@redhat.com> |
1210 | ||
1211 | PR binutils/5535 | |
1212 | * vms.c (vms_close_and_cleanup): Check for the presence of a | |
1213 | vms_private_data_struct before examining any of its fields. | |
1214 | ||
ace79388 L |
1215 | 2008-01-07 H.J. Lu <hongjiu.lu@intel.com> |
1216 | ||
1217 | PR ld/5522 | |
1218 | * elflink.c (elf_link_input_bfd): Don't write out a section if | |
1219 | its output section is marked with SEC_NEVER_LOAD. | |
1220 | ||
6c7ac64e | 1221 | For older changes see ChangeLog-2007 |
56882138 AM |
1222 | \f |
1223 | Local Variables: | |
1224 | mode: change-log | |
1225 | left-margin: 8 | |
1226 | fill-column: 74 | |
1227 | version-control: never | |
1228 | End: |