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