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