]>
Commit | Line | Data |
---|---|---|
8455dd2c L |
1 | 2009-07-10 H.J. Lu <[email protected]> |
2 | ||
3 | * Makefile.am: Run "make dep-am". | |
4 | * Makefile.in: Regenerated. | |
5 | ||
cedfb179 DK |
6 | 2009-07-10 Doug Kwan <[email protected]> |
7 | ||
8 | * elf32-arm.c (stub_hash_newfunc): Initialize fields | |
9 | target_addend and orig_insn. | |
10 | ||
fa8f86ff TT |
11 | 2009-07-10 Tom Tromey <[email protected]> |
12 | ||
13 | * Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h. | |
14 | (elf-eh-frame.lo): Likewise. | |
15 | (elf32-bfin.lo): Likewise. | |
16 | (elf32-frv.lo): Likewise. | |
17 | (elf32-xc16x.lo): Likewise. | |
18 | * Makefile.in: Rebuild. | |
19 | * dwarf2.c: Included dwarf.h, not elf/dwarf2.h. | |
20 | * elf-eh-frame.c: Likewise. | |
21 | * elf32-bfin.c: Likewise. | |
22 | * elf32-frv.c: Likewise. | |
23 | * elf32-xc16x.c: Likewise. | |
24 | ||
33c6a8fc JB |
25 | 2009-07-10 Julian Brown <[email protected]> |
26 | ||
27 | * elf32-arm.c (arm_build_one_stub): Use the hash entry of the | |
28 | symbol a stub entry is derived from, not the entry for the stub | |
29 | itself, in call to elf32_arm_final_link_relocate. | |
30 | ||
1d770845 L |
31 | 2009-07-10 H.J. Lu <[email protected]> |
32 | ||
33 | * elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros | |
34 | when reporting addends. | |
35 | ||
52cfded7 AM |
36 | 2009-07-10 Alan Modra <[email protected]> |
37 | ||
38 | * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager | |
39 | data even when no stubs. | |
40 | (spu_elf_place_overlay_data, spu_elf_build_stubs): Adjust. | |
41 | ||
e054468f AM |
42 | 2009-07-10 Alan Modra <[email protected]> |
43 | ||
44 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_IRELATIVE. | |
45 | (ppc_elf_get_synthetic_symtab): Report addend. | |
46 | (PLT_IFUNC): Define. | |
47 | (struct ppc_elf_link_hash_table): Add iplt and reliplt. | |
48 | (ppc_elf_create_glink): New function. | |
49 | (ppc_elf_create_dynamic_sections): Use it. | |
50 | (ppc_elf_add_symbol_hook): Set has_ifunc_symbols. | |
51 | (update_local_sym_info): Allocate space for local_plt array. | |
52 | Don't bump local_got_refcounts for PLT_IFUNC. Return local_plt | |
53 | entry pointer. | |
54 | (is_branch_reloc): New function. | |
55 | (ppc_elf_check_relocs): Handle STT_GNU_IFUNC symbols. | |
56 | (ppc_elf_gc_sweep_hook): Likewise. | |
57 | (ppc_elf_adjust_dynamic_symbol): Likewise. | |
58 | (allocate_dynrelocs): Likewise. | |
59 | (ppc_elf_size_dynamic_sections): Likewise. | |
60 | (ppc_elf_relocate_section): Likewise. | |
61 | (branch_reloc_hash_match): Use is_branch_reloc. | |
62 | (ppc_elf_tls_optimize): Adjust for local_plt. | |
63 | (write_glink_stub): New function, extracted from.. | |
64 | (ppc_elf_finish_dynamic_symbol): ..here. Handle STT_GNU_IFUNC. | |
65 | (ppc_elf_finish_dynamic_sections): Only write plt resolver and | |
66 | branch table when dynamic. | |
67 | (elf_backend_post_process_headers): Define. | |
68 | * elf64-ppc.c (elf_backend_post_process_headers): Define. | |
69 | (ppc64_elf_howto_raw): Add R_PPC64_IRELATIVE. | |
70 | (ppc64_elf_get_synthetic_symtab): Report addend. | |
71 | (struct ppc_stub_hash_entry): Add plt_ent. | |
72 | (PLT_IFUNC): Define. | |
73 | (struct ppc_link_hash_table): Add iplt and reliplt. | |
74 | (create_linkage_sections): Make .iplt and .rela.iplt sections. | |
75 | (ppc64_elf_add_symbol_hook): Set has_ifunc_symbols. | |
76 | (update_local_sym_info): Allocate space for local_plt array. | |
77 | Don't bump local_got_ents for PLT_IFUNC. Return local_plt | |
78 | entry pointer. | |
79 | (update_plt_info): Pass pointer to plt_entry rather than sym hash, | |
80 | and don't change hash flags here. | |
81 | (is_branch_reloc): New function. | |
82 | (ppc64_elf_check_relocs): Handle STT_GNU_IFUNC. | |
83 | (ppc64_elf_gc_sweep_hook): Likewise. | |
84 | (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
85 | (allocate_dynrelocs): Likewise. | |
86 | (ppc64_elf_size_dynamic_sections): Likewise. | |
87 | (ppc_build_one_stub, ppc_size_one_stub): Likewise. | |
88 | (ppc64_elf_size_stubs): Likewise. | |
89 | (ppc64_elf_relocate_section): Likewise. | |
90 | (get_sym_h): Adjust for local_plt. | |
91 | (branch_reloc_hash_match): Use is_branch_reloc. | |
92 | (ppc_type_of_stub): Pass plt_entry pointer and handle ifunc. | |
93 | (ppc64_elf_toc): Ignore SEC_EXCLUDE sections. | |
94 | ||
041de40d AM |
95 | 2009-07-10 Alan Modra <[email protected]> |
96 | ||
97 | * elf.c (_bfd_elf_get_synthetic_symtab): Report addends. | |
98 | ||
7ae26bc1 AM |
99 | 2009-07-10 Alan Modra <[email protected]> |
100 | ||
101 | * elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular | |
102 | and ref_regular_nonweak comment. | |
103 | * elflink.c (elf_link_output_extsym): Special case ifunc syms | |
104 | when def_regular, not ref_regular. | |
105 | (elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,.. | |
106 | * elf32-i386.c (elf_i386_check_relocs): ..set it here instead.. | |
107 | * elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here. | |
108 | ||
9c4d0c1f AM |
109 | 2009-07-09 Alan Modra <[email protected]> |
110 | ||
111 | * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field | |
112 | of malloc'd struct call_info. | |
113 | (pasted_function): Likewise, priority too. | |
114 | ||
2fc6d3b0 AM |
115 | 2009-07-07 Alan Modra <[email protected]> |
116 | ||
117 | * elf32-spu.c (spu_elf_auto_overlay): Take into account section | |
118 | alignment when packing sections into overlays. | |
119 | ||
9e1f7c0e DK |
120 | 2009-07-03 Cary Coutant <[email protected]> |
121 | ||
122 | * dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator. | |
123 | ||
4a768870 DK |
124 | 2009-07-03 Dave Korn <[email protected]> |
125 | ||
126 | * coffcode.h (sec_to_styp_flags): Partially revert (functional | |
127 | changes only) earlier patch:- | |
128 | ||
129 | 2009-06-25 Kai Tietz <[email protected]> | |
130 | ||
131 | * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and | |
132 | give .debug and .reloc data characteristics. | |
133 | (DOT_RELOC): New define for .reloc section string. | |
134 | (coff_write_object_contents): Use DOT_RELOC instead of string. | |
135 | ||
848f5748 TT |
136 | 2009-07-02 Tom Tromey <[email protected]> |
137 | ||
138 | * aoutx.h (aout_get_external_symbols): Declare 'amt' locally. | |
139 | * bfdwin.c (bfd_free_window): Cast to unsigned long. | |
140 | ||
dda46a27 L |
141 | 2009-07-01 Nick Clifton <[email protected]> |
142 | ||
143 | * elf-m10300.c: Remove trailing white space. | |
144 | * reloc.c: Likewise. | |
145 | ||
efde2f2c NC |
146 | 2009-07-01 Douglas B Rupp <[email protected]> |
147 | ||
dda46a27 | 148 | * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER, |
efde2f2c | 149 | BFD_HAVE_SYS_STAT_TYPE_MEMBER): New config functions. |
dda46a27 L |
150 | * configure.in: Use them. |
151 | * configure: Regenerate. | |
152 | * config.in: Regnerate. | |
153 | * vmsutil.c: Include sysdep.h, remove ansidecl.h. | |
efde2f2c NC |
154 | #define _BSD_SOURCE. Add comments. |
155 | (vms_file_stats_name): Calculate creation date based on available | |
156 | runtime data. Return 1 for version instead of 0. | |
157 | ||
e1ec24c6 NC |
158 | 2009-07-01 Nick Clifton <[email protected]> |
159 | ||
160 | PR 10072 | |
161 | * elf32-arm.c (elf32_arm_final_link_relocate): Add code to handle | |
162 | to R_ARM_THM_PC8 relocation. | |
163 | ||
2709f570 NC |
164 | 2009-06-29 Nick Clifton <[email protected]> |
165 | ||
166 | * elf-m10300.c (mn10300_elf_relax_section): Allow for the | |
167 | different uses of the relocations addend when a symbol is in a | |
168 | merged section. | |
169 | ||
83b89087 L |
170 | 2009-06-27 H.J. Lu <[email protected]> |
171 | ||
172 | PR ld/10337 | |
173 | * elf.c (bfd_section_from_shdr): Don't change sh_link for | |
174 | SHT_REL/SHT_RELA sections on executable nor shared library. | |
175 | Treat SHT_REL/SHT_RELA sections with sh_link set to SHN_UNDEF | |
176 | as a normal section. | |
177 | ||
be7035c6 NC |
178 | 2009-06-25 Nick Clifton <[email protected]> |
179 | ||
180 | * elf-m10300.c (mn10300_elf_relax_section): Handle non-section | |
181 | symbols with SEC_MERGE flag. | |
182 | ||
bdeb4032 KT |
183 | 2009-06-25 Kai Tietz <[email protected]> |
184 | ||
185 | * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and | |
186 | give .debug and .reloc data characteristics. | |
187 | (DOT_RELOC): New define for .reloc section string. | |
188 | (coff_write_object_contents): Use DOT_RELOC instead of string. | |
189 | ||
b32e07d7 TG |
190 | 2009-06-25 Tristan Gingold <[email protected]> |
191 | ||
192 | * mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound) | |
193 | (bfd_mach_o_canonicalize_dynamic_symtab) | |
194 | (bfd_mach_o_get_synthetic_symtab): Defines. | |
195 | (TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry. | |
196 | (TARGET_NAME): Use Mach-O specific functions for dynamic. | |
197 | ||
198 | * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes | |
199 | for scattered relocations. | |
200 | (bfd_mach_o_i386_print_thread): New function. | |
201 | (bfd_mach_o_print_thread): Define. | |
202 | ||
203 | * mach-o.c (text_section_names_xlat): Add an entry for __const. | |
204 | (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs): | |
205 | New functions extracted from ... | |
206 | (bfd_mach_o_canonicalize_reloc): ... This. Simplified. | |
207 | (bfd_mach_o_get_dynamic_reloc_upper_bound): New function. | |
208 | (bfd_mach_o_canonicalize_dynamic_reloc): New function. | |
209 | (bfd_mach_o_i386_flavour_string): Adjusted after enum renaming. | |
210 | (bfd_mach_o_ppc_flavour_string): Reindentation. Add 64 bits cases. | |
211 | (bfd_mach_o_scan_read_dylinker): Do not create a section anymore. | |
212 | Set name_str field. | |
213 | (bfd_mach_o_scan_read_dylib): Ditto. | |
214 | (bfd_mach_o_scan_read_thread): Set mdata at declaration. Add comments, | |
215 | reindent. | |
216 | (bfd_mach_o_scan_read_dysymtab): Set mdata at declaration. Correctly | |
217 | decode isym and flags on little endian targets. Set dysymtab field. | |
218 | (bfd_mach_o_scan_start_address): Adjust for enum names. | |
219 | (bfd_mach_o_lookup_section): Do not look for segments anymore. | |
220 | (bfd_mach_o_print_section): Display bfd section name. | |
221 | (bfd_mach_o_print_segment): Display none if no name. | |
222 | (bfd_mach_o_print_dysymtab): Display next index for local, external | |
223 | and undefined symbols. | |
224 | (bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str. | |
225 | Display dylinker name. Display thread and unixthread commands content. | |
226 | (bfd_mach_o_print_thread): New macro. | |
227 | ||
228 | * mach-o.h (bfd_mach_o_mach_header_magic): Align numbers. | |
229 | (bfd_mach_o_ppc_thread_flavour): Ditto. | |
230 | (bfd_mach_o_i386_thread_flavour): Ditto. | |
231 | (BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum. | |
232 | (BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces | |
233 | BFD_MACH_O_THREAD_STATE_NONE. | |
234 | (bfd_mach_o_segment_command): Remove segment field. | |
235 | (bfd_mach_o_thread_flavour): Field offset is now unsigned long. | |
236 | (bfd_mach_o_dylinker_command): Remove section field, add name_str. | |
237 | (bfd_mach_o_prebound_dylib_command): Ditto. | |
238 | (bfd_mach_o_dylib_command): Ditto. | |
239 | (bfd_mach_o_prebound_dylib_command): Remove section field. | |
240 | (mach_o_data_struct): Add dysymtab field. | |
241 | (bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field. | |
242 | (bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc) | |
243 | (bfd_mach_o_build_commands): Remove parameter names and attributes. | |
244 | (bfd_mach_o_get_dynamic_reloc_upper_bound) | |
245 | (bfd_mach_o_canonicalize_dynamic_reloc): New prototypes. | |
246 | ||
c41ba836 DK |
247 | 2009-06-25 Rafael Avila de Espindola <[email protected]> |
248 | ||
249 | * plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type | |
250 | field of struct dirent. | |
251 | ||
3188b070 TG |
252 | 2009-06-23 Tristan Gingold <[email protected]> |
253 | ||
254 | * vms.c (vms_get_synthetic_symtab): Remove duplicate definition | |
255 | of this macro. Fix indentation. | |
256 | ||
022f8312 CL |
257 | 2009-06-22 Christophe Lyon <[email protected]> |
258 | ||
259 | * elf32-arm.c (elf32_arm_size_stubs): Use PLT address as | |
260 | destination for defined dynamic symbols when deciding whether to | |
261 | insert a stub or not. | |
262 | (allocate_dynrelocs): Make sure functions are not marked as Thumb | |
263 | when actually accessed through a PLT, even when generating a | |
264 | shared lib. | |
265 | ||
d297e807 TG |
266 | 2009-06-22 Tristan Gingold <[email protected]> |
267 | ||
268 | * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to | |
269 | the relocs array. | |
270 | ||
ceaf50a2 AM |
271 | 2009-06-22 Alan Modra <[email protected]> |
272 | ||
273 | * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch. | |
274 | * elf32-v850.c (v850_elf_relocate_section): Warning fix. | |
275 | ||
983bddc8 AM |
276 | 2009-06-22 Alan Modra <[email protected]> |
277 | ||
278 | * elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning. | |
279 | ||
f8703194 L |
280 | 2009-06-19 H.J. Lu <[email protected]> |
281 | ||
282 | * elflink.c (elf_link_add_object_symbols): Avoid warning | |
283 | from -Wjump-misses-init in gcc 4.5.0. | |
284 | ||
09a24cbf L |
285 | 2009-06-19 H.J. Lu <[email protected]> |
286 | ||
287 | * elf32-i386.c (elf_i386_check_relocs): Properly check local | |
288 | symbol on error. | |
289 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
290 | ||
4c544807 L |
291 | 2009-06-19 H.J. Lu <[email protected]> |
292 | ||
293 | * elf32-i386.c (elf_i386_tls_transition): Add a parameter, | |
294 | r_symndx. Report local symbol name on error. | |
295 | (elf_i386_check_relocs): Updated. Report local symbol name on | |
296 | error. | |
297 | (elf_i386_gc_sweep_hook): Updated. | |
298 | (elf_i386_relocate_section): Likewise. | |
299 | ||
300 | * elf64-x86-64.c (elf64_x86_64_tls_transition): Add a parameter, | |
301 | r_symndx. Report local symbol name on error. | |
302 | (elf64_x86_64_check_relocs): Updated. Report local symbol name | |
303 | on error. | |
304 | (elf64_x86_64_gc_sweep_hook): Updated. | |
305 | (elf64_x86_64_relocate_section): Likewise. | |
306 | ||
b8674692 TG |
307 | 2009-06-19 Tristan Gingold <[email protected]> |
308 | ||
309 | * mach-o.c (bfd_mach_o_print_private_header): Fix format character. | |
310 | ||
046b007d TG |
311 | 2009-06-19 Tristan Gingold <[email protected]> |
312 | ||
313 | * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Add prototype. | |
314 | (bfd_mach_o_version): Use bfd_mach_o_get_data instead of direct access. | |
315 | (bfd_mach_o_valid): Ditto. | |
316 | (bfd_mach_o_wide_p): Ditto. | |
317 | (bfd_mach_o_canonicalize_reloc): Ditto. | |
318 | (bfd_mach_o_build_commands): Ditto. | |
319 | (bfd_mach_o_scan_read_thread): Ditto. | |
320 | (bfd_mach_o_flatten_sections): Ditto. | |
321 | (bfd_mach_o_scan_start_address): Ditto. | |
322 | (bfd_mach_o_lookup_section): Ditto. | |
323 | (bfd_mach_o_core_fetch_environment): Ditto. | |
324 | (bfd_mach_o_write_contents): Ditto. Handle reexport_dylib. | |
325 | (bfd_mach_o_scan_write_relocs): Adjust for bfd_mach_o_get_data. | |
326 | (bfd_mach_o_scan_write_symtab): Ditto. | |
327 | Use macros instead of hard-coded values. | |
328 | (bfd_mach_o_scan_read_symtab_symbol): Make the function static. | |
329 | Use bfd_mach_o_get_data instead of direct access. Use macros | |
330 | instead of hard-coded values. | |
331 | (bfd_mach_o_scan_read_symtab_strtab): Make the function static. | |
332 | Remove sym argument and get section from mdata. | |
333 | Move code into the else branch. | |
334 | (bfd_mach_o_scan_read_symtab_symbols): Make the function static. | |
335 | Remove sym argument and get section from mdata. Adjust code. | |
336 | (bfd_mach_o_scan_read_dylib): Move assertion into the created | |
337 | switch (which replaces consecutive if statements). | |
338 | (bfd_mach_o_scan_read_dysymtab): Rename seg to cmd. Load | |
339 | module table, table of content, indirect symbols and external | |
340 | referenced symbols. | |
341 | (bfd_mach_o_scan_read_symtab): Renames seg to symtab. Set symtab | |
342 | field. | |
343 | (bfd_mach_o_scan_read_linkedit): New function. | |
344 | (bfd_mach_o_scan_read_str): Ditto. | |
345 | (bfd_mach_o_count_symbols): Simplify the code by using the symtab | |
346 | field of mdata. | |
347 | (bfd_mach_o_get_symtab_upper_bound): Remove check as | |
348 | bfd_mach_o_count_symbols never returns an error. | |
349 | (bfd_mach_o_canonicalize_symtab): Simplify the code by using the | |
350 | symtab field (there might be only one symtab). | |
351 | (bfd_mach_o_scan_read_command): Handle reexported dylib. | |
352 | Handle sub frameworks, sub umbrella, sub library and sub client. | |
353 | Read code signature and segment split info commands. | |
354 | (bfd_mach_o_scan): Reindent. | |
355 | (bfd_mach_o_xlat_name): New type. | |
356 | (bfd_mach_o_print_flags): New function. | |
357 | (bfd_mach_o_get_name): Ditto. | |
358 | (bfd_mach_o_cpu_name): New variable. | |
359 | (bfd_mach_o_filetype_name, bfd_mach_o_header_flags_name) | |
360 | (bfd_mach_o_section_type_name) | |
361 | (bfd_mach_o_section_attribute_name) | |
362 | (bfd_mach_o_load_command_name): New variables. | |
363 | (bfd_mach_o_print_private_header): New function. | |
364 | (bfd_mach_o_print_section_map): New function extracted from | |
365 | bfd_mach_o_print_private_bfd_data. | |
366 | (bfd_mach_o_print_section): Ditto. Print more infos. | |
367 | (bfd_mach_o_print_segment): Ditto. | |
368 | (bfd_mach_o_print_dysymtab): Ditto. | |
369 | (bfd_mach_o_bfd_print_private_bfd_data): Reworked. Handle | |
370 | load weak dylib, reexport dylib and id dylib. | |
371 | Handle code signature and segment_split info. | |
372 | Handle sub frameworks, sub umbrella, sub library and sub client. | |
373 | (bfd_mach_o_section_get_nbr_indirect): New function. | |
374 | ||
375 | * mach-o.h (BFD_MACH_O_REFERENCE_MASK): New macro. Add comment. | |
376 | (bfd_mach_o_header_flags): New enum to define header flags. | |
377 | (bfd_mach_o_section_attribute): New enum to replace ... | |
378 | (BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC, | |
379 | BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG, | |
380 | BFD_MACH_O_S_SELF_MODIFYING_CODE, BFD_MACH_O_S_ATTR_LIVE_SUPPORT, | |
381 | BFD_MACH_O_S_ATTR_NO_DEAD_STRIP, BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, | |
382 | BFD_MACH_O_S_ATTR_NO_TOC, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): ... | |
383 | these removed macros. | |
384 | (BFD_MACH_O_NLIST_SIZE, BFD_MACH_O_NLIST_64_SIZE): New macros. | |
385 | (bfd_mach_o_dylib_module): New type. | |
386 | (BFD_MACH_O_DYLIB_MODULE_SIZE, BFD_MACH_O_DYLIB_MODULE_64_SIZE): New | |
387 | macros. | |
388 | (bfd_mach_o_dylib_table_of_content): New type. | |
389 | (BFD_MACH_O_TABLE_OF_CONTENT_SIZE): New macro. | |
390 | (bfd_mach_o_dylib_reference): New type. | |
391 | (BFD_MACH_O_REFERENCE_SIZE): New macro. | |
392 | (bfd_mach_o_dysymtab_command): Add fields for loaded and decoded | |
393 | modules, toc, references and indirect syms. | |
394 | (BFD_MACH_O_INDIRECT_SYMBOL_SIZE): New macro. | |
395 | (bfd_mach_o_dylinker_command): Remove cmd and cmdsize fields (were | |
396 | unused). Add comment. | |
397 | (bfd_mach_o_dylib_command): Ditto. | |
398 | (bfd_mach_o_prebound_dylib_command): Ditto. | |
399 | (bfd_mach_o_linkedit_command): New type. | |
400 | (bfd_mach_o_str_command): New type. | |
401 | (bfd_mach_o_load_command): Add linkedit and str fields. | |
402 | (mach_o_data_struct): Add symtab field. | |
403 | (bfd_get_mach_o_data): Renamed to ... | |
404 | (bfd_mach_o_get_data): ... this new macro. | |
405 | (bfd_mach_o_scan_read_symtab_symbol, | |
406 | bfd_mach_o_scan_read_symtab_strtab, | |
407 | bfd_mach_o_scan_read_symtab_symbols): Prototypes removed. | |
408 | ||
409 | * mach-o-i386.c (bfd_mach_o_i386_mkobject): Use bfd_mach_o_get_data | |
410 | instead of direct access. | |
411 | ||
6d78d0b9 AM |
412 | 2009-06-19 Alan Modra <[email protected]> |
413 | ||
414 | * elf32-ppc.c (ppc_elf_check_relocs): Allow local symbols for | |
415 | R_PPC_PLTREL24 relocs. | |
416 | (ppc_elf_relocate_section): Likewise. | |
417 | ||
3ec01793 AM |
418 | 2009-06-19 Alan Modra <[email protected]> |
419 | ||
420 | * elf32-ppc.c (find_plt_ent): Pass pointer to plist rather than | |
421 | pointer to sym hash. Update all uses. | |
422 | (update_plt_info): Likewise. Don't check addend here. | |
423 | ||
c2e61a4e L |
424 | 2009-06-18 H.J. Lu <[email protected]> |
425 | ||
426 | * elf32-i386.c (elf_i386_check_relocs): Remove isymbuf and use | |
427 | bfd_sym_from_r_symndx. | |
428 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
429 | ||
87d72d41 AM |
430 | 2009-06-18 Alan Modra <[email protected]> |
431 | ||
432 | * elf-bfd.h (struct sym_sec_cache): Delete. | |
433 | (struct sym_cache): New. | |
434 | (bfd_section_from_r_symndx): Delete prototype. | |
435 | (bfd_sym_from_r_symndx): Define prototype. | |
436 | * elf.c (bfd_section_from_r_symndx): Delete, replace with.. | |
437 | (bfd_sym_from_r_symndx): ..new function. | |
438 | * elf32-arm.c: Update all uses of struct sym_sec_cache and | |
439 | bfd_section_from_r_symndx to new struct and function. | |
440 | * elf32-bfin.c: Likewise. | |
441 | * elf32-hppa.c: Likewise. | |
442 | * elf32-i386.c: Likewise. | |
443 | * elf32-m32r.c: Likewise. | |
444 | * elf32-m68hc1x.c: Likewise. | |
445 | * elf32-m68hc1x.h: Likewise. | |
446 | * elf32-m68k.c: Likewise. | |
447 | * elf32-ppc.c: Likewise. | |
448 | * elf32-s390.c: Likewise. | |
449 | * elf32-sh.c: Likewise. | |
450 | * elf64-ppc.c: Likewise. | |
451 | * elf64-s390.c: Likewise. | |
452 | * elf64-x86-64.c: Likewise. | |
453 | * elfxx-sparc.c: Likewise. | |
454 | * elfxx-sparc.h: Likewise. | |
455 | ||
14aae723 L |
456 | 2009-06-18 H.J. Lu <[email protected]> |
457 | ||
458 | * elf32-i386.c (elf_i386_check_relocs): Cache or free isymbuf. | |
459 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
460 | ||
5e486aa1 NC |
461 | 2009-06-18 Nick Clifton <[email protected]> |
462 | ||
463 | * elflink.c (elf_link_sort_relocs): Return early if there are no | |
464 | relocs to sort. | |
465 | ||
361dff73 DK |
466 | 2009-06-18 Dave Korn <[email protected]> |
467 | ||
32425da9 NC |
468 | Merge cegcc and mingw32ce target name changes from |
469 | CeGCC project: | |
361dff73 | 470 | |
32425da9 | 471 | 2007-12-25 Pedro Alves <[email protected]> |
361dff73 DK |
472 | |
473 | * config.bfd: Add arm*-*-cegcc* target. | |
474 | ||
32425da9 | 475 | 2007-12-17 Pedro Alves <[email protected]> |
361dff73 DK |
476 | |
477 | * config.bfd: Add arm-*-mingw32ce* target. | |
478 | ||
e03a8ed8 L |
479 | 2009-06-17 H.J. Lu <[email protected]> |
480 | ||
481 | * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New. | |
482 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise. | |
483 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it. | |
484 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. | |
485 | ||
486 | 2009-06-17 H.J. Lu <[email protected]> | |
487 | ||
488 | * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New. | |
489 | * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise. | |
490 | * elf32-i386.c (elf_i386_check_relocs): Use it. | |
491 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
492 | ||
493 | 2009-06-17 H.J. Lu <[email protected]> | |
494 | ||
495 | * elf-bfd.h (elf_dyn_relocs): New. | |
496 | ||
497 | * elf32-i386.c (elf_i386_dyn_relocs): Removed. | |
498 | (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with | |
499 | elf_dyn_relocs. | |
500 | (elf_i386_copy_indirect_symbol): Likewise. | |
501 | (elf_i386_check_relocs): Likewise. | |
502 | (elf_i386_gc_sweep_hook): Likewise. | |
503 | (elf_i386_allocate_dynrelocs): Likewise. | |
504 | (elf_i386_readonly_dynrelocs): Likewise. | |
505 | (elf_i386_size_dynamic_sections): Likewise. | |
506 | ||
507 | * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed. | |
508 | (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs | |
509 | with elf_dyn_relocs. | |
510 | (elf64_x86_64_copy_indirect_symbol): Updated. | |
511 | (elf64_x86_64_check_relocs): Likewise. | |
512 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
513 | (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
514 | (elf64_x86_64_allocate_dynrelocs): Likewise. | |
515 | (elf64_x86_64_readonly_dynrelocs): Likewise. | |
516 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
517 | ||
64e77c6d L |
518 | 2009-06-17 H.J. Lu <[email protected]> |
519 | ||
520 | * elf32-arm.c (create_got_section): Get existing .rela.got | |
521 | section. | |
522 | * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise. | |
523 | * elf32-lm32.c (create_got_section): Likewise. | |
524 | * elf32-m32r.c (create_got_section): Likewise. | |
525 | * elf32-ppc.c (ppc_elf_create_got): Likewise. | |
526 | * elf32-s390.c (create_got_section): Likewise. | |
527 | * elf32-sh.c (create_got_section): Likewise. | |
528 | * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise. | |
529 | * elf64-s390.c (create_got_section): Likewise. | |
530 | * elfxx-sparc.c (create_got_section): Likewise. | |
531 | ||
532 | * elflink.c (_bfd_elf_create_got_section): Properly initialize | |
533 | the GOT size. | |
534 | ||
d2149d72 L |
535 | 2009-06-16 H.J. Lu <[email protected]> |
536 | ||
537 | * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New. | |
538 | ||
539 | * elf32-i386.c (elf_i386_local_hash): Removed. | |
540 | (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH. | |
541 | (elf_i386_get_local_sym_hash): Likewise. | |
542 | ||
543 | * elf64-x86-64.c (elf64_x86_64_local_hash): Removed. | |
544 | (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH. | |
545 | (elf64_x86_64_get_local_sym_hash): Likewise. | |
546 | * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise. | |
547 | (get_local_sym_hash): Likewise. | |
548 | ||
cc3bd654 L |
549 | 2009-06-16 H.J. Lu <[email protected]> |
550 | ||
551 | * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec, | |
552 | rel_got_sec and plt_sec. | |
553 | (elfNN_ia64_relax_section): Updated. | |
554 | (elfNN_ia64_create_dynamic_sections): Likewise. | |
555 | (get_got): Likewise. | |
556 | (allocate_dynrel_entries): Likewise. | |
557 | (elfNN_ia64_size_dynamic_sections): Likewise. | |
558 | (set_got_entry): Likewise. | |
559 | (elfNN_ia64_choose_gp): Likewise. | |
560 | (elfNN_ia64_relocate_section): Likewise. | |
561 | (elfNN_ia64_finish_dynamic_symbol): Likewise. | |
562 | (elfNN_ia64_finish_dynamic_sections): Likewise. | |
563 | ||
be3e406d UW |
564 | 2009-06-16 Ulrich Weigand <[email protected]> |
565 | ||
566 | * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits | |
567 | also for calls. | |
568 | ||
6de2ae4a L |
569 | 2009-06-16 H.J. Lu <[email protected]> |
570 | ||
571 | * configure.in (elf): Add elf-ifunc.lo. | |
572 | ||
573 | * configure: Regenerated. | |
574 | * Makefile.in: Likewise. | |
575 | ||
576 | * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt, | |
577 | srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc. | |
578 | ||
579 | * elf32-i386.c (elf_i386_link_hash_table): Remove sgot, | |
580 | sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and | |
581 | irelifunc. | |
582 | (elf_i386_link_hash_table_create): Likewise. | |
583 | (elf_i386_create_dynamic_sections): Likewise. | |
584 | (elf_i386_check_relocs): Likewise. | |
585 | (elf_i386_allocate_dynrelocs): Likewise. | |
586 | (elf_i386_size_dynamic_sections): Likewise. | |
587 | (elf_i386_relocate_section): Likewise. | |
588 | (elf_i386_finish_dynamic_symbol): Likewise. | |
589 | (elf_i386_finish_dynamic_sections): Likewise. | |
590 | (elf_i386_create_got_section): Removed. | |
591 | ||
592 | * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot, | |
593 | sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and | |
594 | irelifunc. | |
595 | (elf64_x86_64_compute_jump_table_size): Updated. | |
596 | (elf64_x86_64_link_hash_table_create): Likewise. | |
597 | (elf64_x86_64_create_dynamic_sections): Likewise. | |
598 | (elf64_x86_64_check_relocs): Likewise. | |
599 | (elf64_x86_64_allocate_dynrelocs): Likewise. | |
600 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
601 | (elf64_x86_64_relocate_section): Likewise. | |
602 | (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
603 | (elf64_x86_64_finish_dynamic_sections): Likewise. | |
604 | (elf64_x86_64_create_got_section): Removed. | |
605 | ||
606 | * elflink.c (_bfd_elf_create_got_section): Use log_file_align | |
607 | for pointer alignment. Set up section pointers. | |
608 | (_bfd_elf_create_dynamic_sections): Likewise. | |
609 | (_bfd_elf_create_ifunc_sections): Moved to ... | |
610 | * elf-ifunc.c: Here. New. | |
611 | ||
612 | * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo. | |
613 | (BFD32_BACKENDS_CFILES): Add elf-ifunc.c. | |
614 | Run "make dep-am". | |
615 | ||
81694485 NC |
616 | 2009-06-16 Doug Kwan <[email protected]> |
617 | ||
6de2ae4a L |
618 | * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset |
619 | to bfd_signed_vma. Cast constant operands which are used in | |
620 | offset related expressions to bfd_signed_vma type as appropriate. | |
81694485 | 621 | |
6db7e006 MR |
622 | 2009-06-16 Maciej W. Rozycki <[email protected]> |
623 | ||
624 | * elf32-vax.c (elf_vax_plt_sym_val): New function. | |
625 | (elf_backend_plt_sym_val): Define. | |
626 | ||
9b90d8fd MR |
627 | 2009-06-16 Maciej W. Rozycki <[email protected]> |
628 | ||
629 | * elf32-vax.c (elf_vax_reloc_type_class): New function. | |
630 | (elf_backend_reloc_type_class): Define. | |
631 | ||
04981bc1 MR |
632 | 2009-06-16 Maciej W. Rozycki <[email protected]> |
633 | ||
634 | * elf32-vax.c (elf_vax_relocate_section): For symbol references | |
635 | from an executable to a shared library treat R_VAX_PC32 | |
636 | relocations as R_VAX_PLT32 ones. | |
637 | ||
886815b2 MR |
638 | 2009-06-16 Maciej W. Rozycki <[email protected]> |
639 | ||
640 | * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local | |
641 | symbols in GOT space calculation. | |
642 | (elf_vax_relocate_section): Adjust accordingly. | |
643 | ||
6c4fb25a MR |
644 | 2009-06-16 Maciej W. Rozycki <[email protected]> |
645 | ||
646 | * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to | |
647 | include <R11:R2>. | |
648 | ||
7b6021f1 MR |
649 | 2009-06-16 Maciej W. Rozycki <[email protected]> |
650 | ||
651 | * elf32-vax.c (elf_vax_check_relocs): Handle the visibility | |
652 | attribute. | |
653 | (elf_vax_relocate_section): Likewise. | |
654 | ||
188dbb07 L |
655 | 2009-06-15 H.J. Lu <[email protected]> |
656 | ||
657 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments. | |
658 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. | |
659 | ||
048cbda4 L |
660 | 2009-06-15 H.J. Lu <[email protected]> |
661 | ||
662 | * elf32-i386.c (elf_i386_check_relocs): Reformat. | |
663 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
664 | ||
482c6ce9 L |
665 | 2009-06-15 H.J. Lu <[email protected]> |
666 | ||
667 | * Makefile.am: Run "make dep-am". | |
668 | * Makefile.in: Regenerated. | |
669 | ||
eba077f2 L |
670 | 2009-06-15 H.J. Lu <[email protected]> |
671 | ||
672 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo. | |
673 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. | |
674 | ||
ec68b083 NC |
675 | 2009-06-15 Nick Clifton <[email protected]> |
676 | ||
677 | * po/ru.po: New Russian translation. | |
678 | * configure.in (ALL_LINGUAS): Add ru. | |
679 | * configure: Regenerate. | |
680 | ||
b80ee1aa L |
681 | 2009-06-14 H.J. Lu <[email protected]> |
682 | ||
683 | * elf32-i386.c: Remove duplicated comments. | |
684 | ||
44c4ea11 L |
685 | 2009-06-14 H.J. Lu <[email protected]> |
686 | ||
687 | PR ld/10270 | |
688 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow | |
689 | dynamic IFUNC pointer in non-shared object. Use .got.plt | |
690 | for IFUNC definition in PIE. | |
691 | (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in | |
692 | PIE locally. | |
693 | ||
694 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow | |
695 | dynamic IFUNC pointer in non-shared object. Use .got.plt | |
696 | for IFUNC definition in PIE. | |
697 | (elf64_x86_64_relocate_section): Resolve IFUNC definition in | |
698 | PIE locally. | |
699 | ||
8b7e2992 L |
700 | 2009-06-13 H.J. Lu <[email protected]> |
701 | ||
702 | * elf32-i386.c (elf_i386_check_relocs): Properly report | |
703 | local symbol for unhandled relocation against STT_GNU_IFUNC | |
704 | symbol. | |
637fa7af | 705 | (elf_i386_relocate_section): Likewise. |
8b7e2992 | 706 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. |
637fa7af | 707 | (elf64_x86_64_relocate_section): Likewise. |
8b7e2992 | 708 | |
c25bc9fc L |
709 | 2009-06-13 H.J. Lu <[email protected]> |
710 | ||
711 | PR ld/10269 | |
712 | * elf32-i386.c: Include "objalloc.h" and "hashtab.h". | |
713 | (elf_i386_link_hash_table): Add loc_hash_table and | |
714 | loc_hash_memory. | |
715 | (elf_i386_local_hash): New. | |
716 | (elf_i386_local_htab_hash): Likewise. | |
717 | (elf_i386_local_htab_eq): Likewise. | |
718 | (elf_i386_get_local_sym_hash): Likewise. | |
719 | (elf_i386_link_hash_table_free): Likewise. | |
720 | (elf_i386_allocate_local_dynrelocs): Likewise. | |
721 | (elf_i386_finish_local_dynamic_symbol): Likewise. | |
722 | (bfd_elf64_bfd_link_hash_table_free): Likewise. | |
723 | (elf_i386_link_hash_table_create): Create loc_hash_table and | |
724 | loc_hash_memory. | |
725 | (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols. | |
726 | (elf_i386_size_dynamic_sections): Likewise. | |
727 | (elf_i386_relocate_section): Likewise. | |
728 | (elf_i386_finish_dynamic_sections): Likewise. | |
729 | (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym | |
730 | isn't NULL. | |
731 | ||
732 | * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h". | |
733 | (elf64_x86_64_link_hash_table): Add loc_hash_table and | |
734 | loc_hash_memory. | |
735 | (elf64_x86_64_local_hash): New. | |
736 | (elf64_x86_64_local_htab_hash): Likewise. | |
737 | (elf64_x86_64_local_htab_eq): Likewise. | |
738 | (elf64_x86_64_get_local_sym_hash): Likewise. | |
739 | (elf64_x86_64_link_hash_table_free): Likewise. | |
740 | (elf64_x86_64_allocate_local_dynrelocs): Likewise. | |
741 | (elf64_x86_64_finish_local_dynamic_symbol): Likewise. | |
742 | (bfd_elf64_bfd_link_hash_table_free): Likewise. | |
743 | (elf64_x86_64_link_hash_table_create): Create loc_hash_table | |
744 | and loc_hash_memory. | |
745 | (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC | |
746 | symbols. | |
747 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
748 | (elf64_x86_64_relocate_section): Likewise. | |
749 | (elf64_x86_64_finish_dynamic_sections): Likewise. | |
750 | (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if | |
751 | sym isn't NULL. | |
752 | ||
dec9d5df PB |
753 | 2009-06-10 Philip Blundell <[email protected]> |
754 | ||
755 | * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if | |
756 | elf_sec->this_hdr == NULL. | |
757 | ||
92bc0e80 TG |
758 | 2009-06-12 Tristan Gingold <[email protected]> |
759 | ||
760 | * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR. | |
761 | * bfd-in2.h: Regenerated. | |
762 | * libbfd.h: Regenerated. | |
763 | ||
764 | * mach-o.c (FILE_ALIGN): New macro. | |
765 | (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol. | |
766 | (bfd_mach_o_print_symbol): Ditto. | |
767 | (bfd_mach_o_scan_write_thread): Adjust type of variable offset. | |
768 | (bfd_mach_o_get_reloc_upper_bound): New function. | |
769 | (bfd_mach_o_canonicalize_reloc): Ditto. | |
770 | (bfd_mach_o_scan_write_relocs): Ditto. | |
771 | (bfd_mach_o_scan_write_section_32): Remove offset argument. | |
772 | (bfd_mach_o_scan_write_section_64): Ditto. | |
773 | (bfd_mach_o_scan_write_segment_32): Write relocs. Fix size of data | |
774 | written for load command. Do not compute section file offset. | |
775 | (bfd_mach_o_scan_write_segment_64): Ditto. | |
776 | (bfd_mach_o_scan_write_symtab): Compute file offset first. | |
777 | Adjust for bfd_mach_o_asymbol. Move code to convert from BFD to | |
778 | Mach-O to ... | |
779 | (bfd_mach_o_mangle_symbols): ... this new function. | |
046b007d | 780 | (bfd_mach_o_write_contents): Be sure to have load commands built. |
92bc0e80 TG |
781 | Call bfd_mach_o_mangle_symbols. |
782 | (bfd_mach_o_build_commands): Adjust for filelen field. | |
783 | Use FILE_ALIGN macro. Clear section file offset if section is empty. | |
784 | Do not set symtab file offset anymore here. | |
785 | (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol. | |
786 | (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc. | |
787 | Set reloc_count and rel_filepos section fields. | |
788 | (bfd_mach_o_scan_read_section_32): Type of argument offset is now | |
789 | unsigned int. | |
790 | (bfd_mach_o_scan_read_section_64): Ditto. | |
791 | (bfd_mach_o_scan_read_section): Ditto. | |
792 | (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now | |
793 | bfd_mach_o_asymbol. Use unsigned int for file offset type. | |
794 | (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol. | |
795 | Handle weak-ref symbols. | |
796 | (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol. | |
797 | (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. | |
798 | (bfd_mach_o_scan): Remove assignment to removed field. | |
799 | (bfd_mach_o_mkobject_init): Ditto. | |
800 | (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter. | |
801 | (bfd_mach_o_bfd_reloc_type_lookup): New macro. | |
802 | (bfd_mach_o_bfd_reloc_name_lookup): Ditto. | |
803 | (bfd_mach_o_swap_reloc_in): Ditto. | |
804 | (bfd_mach_o_swap_reloc_out): Ditto. | |
805 | ||
806 | * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY) | |
807 | (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY) | |
808 | (BFD_MACH_O_REFERENCE_FLAG_DEFINED) | |
809 | (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED) | |
810 | (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY) | |
811 | (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY) | |
812 | (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED) | |
813 | (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF) | |
814 | (BFD_MACH_O_N_WEAK_DEF): New macros. | |
815 | Add comments. | |
816 | (bfd_mach_o_section_type): Add new enumeration values. | |
817 | (BFD_MACH_O_S_SELF_MODIFYING_CODE) | |
818 | (BFD_MACH_O_S_ATTR_LIVE_SUPPORT) | |
819 | (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP) | |
820 | (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New | |
821 | macros. | |
822 | (BFD_MACH_O_GENERIC_RELOC_VANILLA) | |
823 | (BFD_MACH_O_GENERIC_RELOC_PAIR) | |
824 | (BFD_MACH_O_GENERIC_RELOC_SECTDIFF) | |
825 | (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR) | |
826 | (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto. | |
827 | (BFD_MACH_O_RELENT_SIZE): Ditto. | |
828 | (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH) | |
829 | (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE) | |
830 | (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH) | |
831 | (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto. | |
832 | (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL) | |
833 | (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE) | |
834 | (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH) | |
835 | (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto. | |
836 | (bfd_mach_o_reloc_info): New struct. | |
837 | (bfd_mach_o_asymbol): New struct. | |
838 | (bfd_mach_o_symtab_command): The symbols field is now of type | |
839 | bfd_mach_o_asymbol. | |
840 | (bfd_mach_o_load_command): The offset and len fields are now of type | |
841 | unsigned int. | |
842 | (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields. | |
843 | Add a filelen field. Add comments. | |
844 | (bfd_mach_o_backend_data): New struct. | |
845 | (bfd_mach_o_get_backend_data): New macro. | |
846 | (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type | |
847 | bfd_mach_o_asymbol. | |
848 | (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. | |
849 | (bfd_mach_o_get_reloc_upper_bound): New prototype. | |
850 | (bfd_mach_o_canonicalize_reloc): Ditto. | |
851 | ||
852 | * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove | |
853 | duplicated macro. Now defined to _bfd_generic_is_local_label. | |
854 | (TARGET_NAME_BACKEND): New macro... | |
855 | (TARGET_NAME_BACKEND): ... used to name a new variable. | |
856 | (TARGET_NAME): Define relocs table using bfd_mach_o, reference | |
857 | Mach-O backend data. | |
858 | ||
859 | * mach-o-i386.c (i386_howto_table): New variable. | |
860 | (bfd_mach_o_i386_swap_reloc_in): New function. | |
861 | (bfd_mach_o_i386_swap_reloc_out): Ditto. | |
862 | (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto. | |
863 | (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto. | |
864 | (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros. | |
865 | (bfd_mach_o_bfd_reloc_type_lookup) | |
866 | (bfd_mach_o_bfd_reloc_name_lookup): Ditto. | |
867 | ||
8c7d38e8 NC |
868 | 2009-06-11 Eric Paris <[email protected]> |
869 | Nick Clifton <[email protected]> | |
870 | ||
871 | * opncls.c (_maybe_make_executable): New function. Gives execute | |
872 | permission to an executable bfd that was opened for writing | |
873 | provided that it is a regular file. Replaces common code found in... | |
874 | (bfd_close): here and ... | |
875 | (bfd_close_all_done): here. | |
876 | ||
f865a31d AG |
877 | 2009-06-11 Anthony Green <[email protected]> |
878 | ||
879 | * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL. | |
880 | * bfd-in2.h: Rebuilt. | |
881 | * libbfd.h: Rebuilt. | |
882 | * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10 | |
883 | relocation support. | |
884 | (moxie_reloc_map): Ditto. | |
885 | Clean up copyright notice. | |
886 | ||
25b88f33 PP |
887 | 2009-06-10 Paul Pluzhnikov <[email protected]> |
888 | ||
1372b818 | 889 | * bfd-in2.h: bfd_mmap prototype. |
25b88f33 PP |
890 | * bfdio.c (bfd_mmap): New function. |
891 | * libbfd.h (bfd_iovec): Add bmmap. | |
1372b818 | 892 | * cache.c (cache_bmmap): New function. |
25b88f33 PP |
893 | (cache_iovec): Initialize bmmap member. |
894 | * opencls.c (opncls_bmmap): New function. | |
895 | (opncls_iovec): Initialize bmmap member. | |
896 | ||
c2f09c75 TG |
897 | 2009-06-09 Tristan Gingold <[email protected]> |
898 | ||
899 | * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment | |
900 | and stabstr_segment fields. | |
901 | (mach_o_be_vec, mach_o_le_vec): Removed | |
902 | (bfd_mach_o_version): New prototype. | |
903 | ||
904 | * mach-o.c (bfd_mach_o_version): Make this function public. | |
905 | (mach_o_wide_p): New function. | |
906 | (bfd_mach_o_wide_p): Ditto. | |
907 | (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for | |
908 | weird names. | |
909 | (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment. | |
910 | Search in the list only if the name starts with a dot. | |
911 | (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded | |
912 | test. Check bfd_seek status. | |
913 | (bfd_mach_o_scan_write_thread): Check bfd_seek status. | |
914 | (bfd_mach_o_scan_write_section_32): Ditto. | |
915 | (bfd_mach_o_scan_write_section_64): Ditto. | |
916 | (bfd_mach_o_scan_write_section): Removed. | |
917 | (bfd_mach_o_scan_write_segment): Split into ... | |
918 | (bfd_mach_o_scan_write_segment_32): ... this and ... | |
919 | (bfd_mach_o_scan_write_segment_64): ... this. Check bfd_seek status. | |
920 | (bfd_mach_o_scan_write_symtab_symbols): Moved into ... | |
921 | (bfd_mach_o_scan_write_symtab): ... this. Write symtab from BFD | |
922 | symbol table. Now returns a boolean. | |
923 | (bfd_mach_o_write_contents): Set filetype. Check bfd_seek status. | |
924 | Adjust for status type. | |
925 | (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded | |
926 | test. Write symbol table. Numbers the sections. | |
927 | (bfd_mach_o_read_header): Check bfd_seek status. | |
928 | Use mach_o_wide_p instead of hard-coded test. | |
929 | (bfd_mach_o_scan_read_section_32): Check bfd_seek status. | |
930 | (bfd_mach_o_scan_read_section_64): Ditto. | |
931 | (bfd_mach_o_scan_read_symtab_symbol): Ditto. Check bfd_seek status. | |
932 | Use BFD_MACH_O_N_TYPE instead of hard-coded value. Correctly | |
933 | handled common symbols. | |
934 | (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status. | |
935 | (bfd_mach_o_scan_read_dysymtab_symbol): Ditto. | |
936 | (bfd_mach_o_scan_read_dylinker): Ditto. | |
937 | (bfd_mach_o_scan_read_dylib): Ditto. | |
938 | (bfd_mach_o_scan_read_thread): Ditto. | |
939 | (bfd_mach_o_scan_read_symtab): Ditto. | |
940 | Do not create a section for the stabs. | |
941 | (bfd_mach_o_scan_read_uuid): Check bfd_seek status. | |
942 | (bfd_mach_o_scan_read_segment): Ditto. | |
943 | (bfd_mach_o_scan_read_command): Ditto. | |
944 | (bfd_mach_o_scan_start_address): Ditto. | |
945 | (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test. | |
946 | (bfd_mach_o_archive_p): Check bfd_seek status. | |
947 | (bfd_mach_o_core_fetch_environment): Ditto. | |
948 | ||
949 | * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype. | |
950 | ||
2a81c24a L |
951 | 2009-06-06 H.J. Lu <[email protected]> |
952 | ||
953 | * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc. | |
954 | (elf_i386_link_hash_table_create): Initialize irelifunc. | |
955 | (elf_i386_check_relocs): Updated. Set up irelifunc for | |
956 | shared objects. | |
957 | (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic | |
958 | relocation for non-GOT reference of STT_GNU_IFUNC symbol in | |
959 | shared objects. | |
960 | (elf_i386_relocate_section): Likewise. | |
961 | ||
962 | * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc. | |
963 | (elf64_x86_64_link_hash_table_create): Initialize irelifunc. | |
964 | (elf64_x86_64_check_relocs): Updated. Set up irelifunc for | |
965 | shared objects. | |
966 | (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic | |
967 | relocation for non-GOT reference of STT_GNU_IFUNC symbol in | |
968 | shared objects. | |
969 | (elf64_x86_64_relocate_section): Likewise. | |
970 | ||
971 | * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to | |
972 | ... | |
973 | (_bfd_elf_create_ifunc_sections): This. | |
974 | ||
c2f09c75 | 975 | * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to |
2a81c24a L |
976 | ... |
977 | (_bfd_elf_create_ifunc_sections): This. Create .rel[a].ifunc | |
978 | for shared objects. | |
979 | ||
710ab287 L |
980 | 2009-06-06 H.J. Lu <[email protected]> |
981 | ||
982 | * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic | |
983 | relocation for R_386_32 against STT_GNU_IFUNC symbol when | |
984 | building shared object. Check info->executable instead of | |
985 | !info->shared when setting non_got_ref. | |
986 | (elf_i386_allocate_dynrelocs): Allocate dynamic relocation | |
987 | for non-GOT reference of STT_GNU_IFUNC symbol in shared | |
988 | object. Allocate GOT relocation agsinst STT_GNU_IFUNC | |
989 | symbol if needed. | |
990 | (elf_i386_relocate_section): Output dynamic relocation for | |
991 | R_386_32 against STT_GNU_IFUNC symbol to get the real | |
992 | function address when building shared object. | |
993 | (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT | |
994 | relocation for STT_GNU_IFUNC symbol in shared object. | |
995 | ||
996 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for | |
997 | dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC | |
998 | symbol when building shared object. Check info->executable | |
999 | instead of !info->shared when setting non_got_ref. | |
1000 | (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation | |
1001 | for non-GOT reference of STT_GNU_IFUNC symbol in shared | |
1002 | library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol | |
1003 | if needed. | |
1004 | (elf64_x86_64_relocate_section): Output dynamic relocation | |
1005 | for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real | |
1006 | function address when building shared object. | |
1007 | (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT | |
1008 | relocation for STT_GNU_IFUNC symbol in shared object. | |
1009 | ||
9e93c730 JK |
1010 | 2009-06-06 Jan Kratochvil <[email protected]> |
1011 | ||
1012 | * Makefile.am: Run "make dep-am". | |
1013 | (BFD32_BACKENDS): Add mach-o-i386.lo. | |
1014 | (BFD32_BACKENDS_CFILES): Add mach-o-i386.c. | |
1015 | * Makefile.in: Regenerate. | |
1016 | ||
74681fc4 AM |
1017 | 2009-06-06 Alan Modra <[email protected]> |
1018 | ||
1019 | * elf32-spu.c (spu_elf_relocate_section): Match overlay number | |
1020 | when looking for soft-icache stubs. | |
1021 | ||
154a1ee5 TG |
1022 | 2009-06-05 Tristan Gingold <[email protected]> |
1023 | ||
1024 | * mach-o.h: Update copyright year. | |
1025 | (bfd_mach_o_mach_header_magic): New enum. | |
1026 | (bfd_mach_o_cpu_subtype): Now an enum. | |
1027 | (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros. | |
1028 | (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto. | |
1029 | (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto. | |
1030 | (bfd_mach_o_load_command): Field type_required is now a boolean. | |
1031 | Reindent prototypes. | |
1032 | (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove. | |
1033 | (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype. | |
1034 | (bfd_mach_o_bfd_copy_private_section_data): Ditto. | |
1035 | (bfd_mach_o_bfd_copy_private_bfd_data): Ditto. | |
1036 | (bfd_mach_o_get_symtab_upper_bound): Ditto. | |
1037 | (bfd_mach_o_canonicalize_symtab): Ditto. | |
1038 | (bfd_mach_o_get_symbol_info): Ditto. | |
1039 | (bfd_mach_o_print_symbol): Ditto. | |
1040 | (bfd_mach_o_bfd_print_private_bfd_data): Ditto. | |
1041 | (bfd_mach_o_make_empty_symbol): Ditto. | |
1042 | (bfd_mach_o_write_contents): Ditto. | |
1043 | ||
1044 | * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p, | |
1045 | bfd_mach_o_mkobject): Defines. | |
1046 | (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1. | |
1047 | Do not check with target vector but with flavour. | |
1048 | (struct mach_o_section_name_xlat): New declaration. | |
1049 | (dwarf_section_names_xlat): Ditto. | |
1050 | (text_section_names_xlat): Ditto. | |
1051 | (data_section_names_xlat): Ditto. | |
1052 | (struct mach_o_segment_name_xlat): Ditto. | |
1053 | (segsec_names_xlat): Ditto. | |
1054 | (bfd_mach_o_convert_section_name_to_bfd): New function. | |
1055 | (bfd_mach_o_convert_section_name_to_mach_o): Ditto. | |
1056 | (bfd_mach_o_bfd_copy_private_symbol_data): Make it public. | |
1057 | (bfd_mach_o_bfd_copy_private_section_data): Ditto. | |
1058 | (bfd_mach_o_bfd_copy_private_bfd_data): Ditto. | |
1059 | Accept any input and output flavour. Do not share private data | |
1060 | anymore. | |
1061 | (bfd_mach_o_count_symbols): Add a comment. | |
1062 | (bfd_mach_o_get_symtab_upper_bound): Make it public. | |
1063 | (bfd_mach_o_canonicalize_symtab): Ditto. | |
1064 | (bfd_mach_o_get_symbol_info): Ditto. | |
1065 | (bfd_mach_o_print_symbol): Ditto. | |
1066 | (bfd_mach_o_write_header): Now returns a boolean instead of an int. | |
1067 | Use constants instead of hard-coded values. | |
1068 | (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded | |
1069 | values. | |
1070 | (bfd_mach_o_scan_write_section_64): Ditto. | |
1071 | (bfd_mach_o_scan_write_segment): Ditto. | |
1072 | Do not copy sections anymore. | |
1073 | (bfd_mach_o_write_contents): Make it public. | |
1074 | Remove dead code. Rewrite typeflag assignment. | |
1075 | (bfd_mach_o_build_commands): New function. | |
1076 | (bfd_mach_o_set_section_contents): Ditto. | |
1077 | (bfd_mach_o_make_empty_symbol): Make it public. | |
1078 | (bfd_mach_o_read_header): Make it static. | |
1079 | Convert to bfd_boolean. | |
1080 | Use constants instead of hard-coded values. | |
1081 | (bfd_mach_o_make_bfd_section): Call | |
1082 | bfd_mach_o_convert_section_name_to_bfd to create name. | |
1083 | (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded | |
1084 | values. | |
1085 | (bfd_mach_o_scan_read_section_64): Ditto. | |
1086 | (bfd_mach_o_scan_read_segment): Do not create a bfd section for | |
1087 | a segment anymore. Use constants instead of hard-coded values. | |
1088 | (bfd_mach_o_scan_read_command): Fix style. | |
1089 | (bfd_mach_o_scan): Use constants instead of hard-coded values. | |
1090 | Get rid of BFD_IO_FUNCS. | |
1091 | (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject. | |
1092 | (bfd_mach_o_header_p): Created from bfd_mach_o_object_p. | |
1093 | (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p. | |
1094 | (bfd_mach_o_object_p): Removed. | |
1095 | (bfd_mach_o_gen_core_p): New function, replaces ... | |
1096 | (bfd_mach_o_core_p): ... deleted. | |
1097 | (bfd_mach_o_bfd_print_private_bfd_data): Make it public. | |
1098 | ||
1099 | * mach-o-i386.c: New file. | |
1100 | * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin. | |
1101 | * configure.in (TDEFINES): Add mach_o_i386_vec. | |
1102 | * configure: Regenerated. | |
1103 | * targets.c: Add mach_o_i386_vec. | |
1104 | ||
1105 | * mach-o.c: Update copyright years. | |
1106 | (BFD_IO_FUNCS): Remove (was not used). | |
1107 | (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap | |
1108 | bfd_mach_o_slurp_extended_name_table, | |
1109 | bfd_mach_o_construct_extended_name_table, | |
1110 | bfd_mach_o_truncate_arname, bfd_mach_o_write_armap, | |
1111 | bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt, | |
1112 | bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup, | |
1113 | bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook, | |
1114 | bfd_mach_o_get_section_contents_in_window, | |
1115 | bfd_mach_o_bfd_is_local_label_name, | |
1116 | bfd_mach_o_bfd_is_target_special_symbol, | |
1117 | bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno, | |
1118 | bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info, | |
1119 | bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols, | |
1120 | bfd_mach_o_minisymbol_to_symbol, | |
1121 | bfd_mach_o_bfd_get_relocated_section_contents, | |
1122 | bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create, | |
1123 | bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols, | |
1124 | bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link, | |
1125 | bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach, | |
1126 | bfd_mach_o_bfd_merge_private_bfd_data, | |
1127 | bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents, | |
1128 | bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections, | |
1129 | bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group, | |
1130 | bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol, | |
1131 | bfd_mach_o_bfd_copy_private_header_data, | |
1132 | bfd_mach_o_core_file_matches_executable_p): Move these defines ... | |
1133 | * mach-o-target.c: ... here. | |
1134 | Update copyright years. | |
1135 | ||
a1ef399e AM |
1136 | 2009-06-04 Alan Modra <[email protected]> |
1137 | ||
1138 | * dep-in.sed: Don't use \n in replacement part of s command. | |
1139 | * Makefile.am (DEP1): LC_ALL for uniq. | |
1140 | Run "make dep-am". | |
1141 | * Makefile.in: Regenerate. | |
1142 | ||
2e75bb35 L |
1143 | 2009-06-03 H.J. Lu <[email protected]> |
1144 | ||
1145 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of | |
1146 | h->plt.refcount > 0 on STT_GNU_IFUNC symbol. | |
1147 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise. | |
1148 | ||
0018b0a3 L |
1149 | 2009-06-03 H.J. Lu <[email protected]> |
1150 | ||
1151 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate | |
1152 | GOT entry for STT_GNU_IFUNC symbol with pointer equality. | |
1153 | (elf_i386_relocate_section): Adjust R_386_GOT32 relocation | |
1154 | against STT_GNU_IFUNC symbols for static executables. | |
1155 | (elf_i386_finish_dynamic_symbol): Load GOT entry with | |
1156 | PLT entry for STT_GNU_IFUNC symbol with pointer equality. | |
1157 | ||
1158 | * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate | |
1159 | GOT entry for STT_GNU_IFUNC symbol with pointer equality. | |
1160 | (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with | |
1161 | PLT entry for STT_GNU_IFUNC symbol with pointer equality. | |
1162 | ||
94313f36 RS |
1163 | 2009-06-02 Richard Sandiford <[email protected]> |
1164 | ||
1165 | * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined | |
1166 | symbols to be left unimported when linking statically. | |
1167 | * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage | |
1168 | code when linking statically. | |
1169 | ||
7afd84dc L |
1170 | 2009-06-02 H.J. Lu <[email protected]> |
1171 | ||
1172 | * elf32-i386.c (elf_i386_check_relocs): Increment | |
1173 | got.refcount for R_386_GOT32/R_386_GOTOFF relocations | |
1174 | against STT_GNU_IFUNC symbol. | |
1175 | (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if | |
1176 | local STT_GNU_IFUNC definition is used. | |
1177 | (elf_i386_relocate_section): Handle got.offset != -1 for | |
1178 | R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC | |
1179 | symbol. | |
1180 | ||
1181 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment | |
1182 | got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 | |
1183 | relocations against STT_GNU_IFUNC symbol. | |
1184 | (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if | |
1185 | local STT_GNU_IFUNC definition is used. | |
1186 | (elf64_x86_64_relocate_section): Handle got.offset != -1 | |
1187 | for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against | |
1188 | STT_GNU_IFUNC symbol. | |
1189 | ||
cbe950e9 L |
1190 | 2009-06-01 H.J. Lu <[email protected]> |
1191 | ||
1192 | PR ld/10205 | |
1193 | * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE. | |
1194 | (elf_i386_reloc_type_lookup): Likewise. | |
1195 | (R_386_tls): Removed. | |
1196 | (R_386_irelative): New. | |
1197 | (R_386_vt_offset): Updated. | |
1198 | (elf_i386_rtype_to_howto): Likewise. | |
1199 | (elf_i386_link_hash_table): Add igotplt, iplt and irelplt. | |
1200 | (elf_i386_link_hash_table_create): Initialize igotplt, | |
1201 | iplt and irelplt. | |
1202 | (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first. | |
1203 | (elf_i386_adjust_dynamic_symbol): Likewise. | |
1204 | (elf_i386_allocate_dynrelocs): Likewise. | |
1205 | (elf_i386_relocate_section): Likewise. | |
1206 | (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt | |
1207 | sections. | |
1208 | (elf_i386_finish_dynamic_symbol): When building a static | |
1209 | executable, use .iplt, .igot.plt and .rel.iplt sections for | |
1210 | STT_GNU_IFUNC symbols. Generate R_386_IRELATIVE relocation for | |
1211 | locally defined STT_GNU_IFUNC symbol. | |
1212 | ||
1213 | * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE. | |
1214 | (x86_64_reloc_map): Likewise. | |
1215 | (R_X86_64_standard): Updated. | |
1216 | (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt. | |
1217 | (elf64_x86_64_link_hash_table_create): Initialize igotplt, | |
1218 | iplt and irelplt. | |
1219 | (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first. | |
1220 | (elf64_x86_64_adjust_dynamic_symbol): Likewise. | |
1221 | (elf64_x86_64_allocate_dynrelocs): Likewise. | |
1222 | (elf64_x86_64_relocate_section): Likewise. | |
1223 | (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt | |
1224 | sections. | |
1225 | (elf64_x86_64_finish_dynamic_symbol): When building a static | |
1226 | executable, use .iplt, .igot.plt and .rela.iplt sections for | |
1227 | STT_GNU_IFUNC symbols. Generate R_X86_64_IRELATIVE relocation | |
1228 | for locally defined STT_GNU_IFUNC symbol. | |
1229 | ||
1230 | * reloc.c (BFD_RELOC_386_IRELATIVE): New. | |
1231 | (BFD_RELOC_X86_64_IRELATIVE): Likewise. | |
1232 | ||
1233 | * bfd-in2.h: Regenerated. | |
1234 | * libbfd.h: Likewise. | |
1235 | ||
3aa14d16 L |
1236 | 2009-06-01 H.J. Lu <[email protected]> |
1237 | ||
1238 | * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs. | |
1239 | (_bfd_elf_make_ifunc_reloc_section): Removed. | |
1240 | (_bfd_elf_is_ifunc_symbol): Likewise. | |
1241 | (_bfd_elf_create_static_ifunc_sections): New. | |
1242 | ||
1243 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC | |
1244 | symbol check to ... | |
1245 | (elf_link_add_object_symbols): Here. | |
1246 | (_bfd_elf_link_hash_hide_symbol): Don't clean plt on | |
1247 | STT_GNU_IFUNC symbol. | |
1248 | (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol | |
1249 | if a STT_GNU_IFUNC symbol is referenced in a non-shared object. | |
1250 | (IFUNC_INFIX): Removed. | |
1251 | (get_ifunc_reloc_section_name): Likewise. | |
1252 | (_bfd_elf_make_ifunc_reloc_section): Likewise. | |
1253 | (_bfd_elf_is_ifunc_symbol): Likewise. | |
1254 | (_bfd_elf_create_static_ifunc_sections): New. | |
1255 | ||
eb4ff4d6 L |
1256 | 2009-05-29 H.J. Lu <[email protected]> |
1257 | ||
1258 | * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix. | |
1259 | (create_got_section): Likewise. | |
1260 | (allocate_dynrelocs): Likewise. | |
1261 | (readonly_dynrelocs): Likewise. | |
1262 | (set_tls_module_base): Likewise. | |
1263 | (dtpoff_base): Likewise. | |
1264 | (tpoff): Likewise. | |
1265 | (elf_i386_link_hash_table_create): Updated. | |
1266 | (elf_i386_create_dynamic_sections): Likewise. | |
1267 | (elf_i386_check_relocs): Likewise. | |
1268 | (elf_i386_size_dynamic_sections): Likewise. | |
1269 | (elf_i386_relocate_section): Likewise. | |
1270 | ||
1271 | * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix. | |
1272 | (create_got_section): Likewise. | |
1273 | (allocate_dynrelocs): Likewise. | |
1274 | (readonly_dynrelocs): Likewise. | |
1275 | (set_tls_module_base): Likewise. | |
1276 | (dtpoff_base): Likewise. | |
1277 | (tpoff): Likewise. | |
1278 | (elf64_x86_64_link_hash_table_create): Updated. | |
1279 | (elf64_x86_64_create_dynamic_sections): Likewise. | |
1280 | (elf64_x86_64_check_relocs): Likewise. | |
1281 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
1282 | (elf64_x86_64_relocate_section): Likewise. | |
1283 | ||
fc579192 NC |
1284 | 2009-05-28 Nick Clifton <[email protected]> |
1285 | ||
1286 | * targets.c (_bfd_target_vector): Only include plugin target in | |
1287 | all-targets build if BFD_SUPPORTS_PLUGINS is non-zero. | |
1288 | ||
5ebe2858 UW |
1289 | 2009-05-28 Ulrich Weigand <[email protected]> |
1290 | ||
1291 | * elf32-spu.c (struct call_info): New member broken_cycle. | |
1292 | (remove_cycle): Instead of physically removing call_info structures | |
1293 | to break call graph cycles, mark them using the broken_cycle flag. | |
1294 | (mark_overlay_section): Respect broken_cycle flag. | |
1295 | (unmark_overlay_section): Likewise. | |
1296 | (collect_lib_sections): Likewise. | |
1297 | (collect_overlays): Likewise. | |
1298 | (sum_stack): Likewise. | |
1299 | ||
34ad4cb0 UW |
1300 | 2009-05-28 Ulrich Weigand <[email protected]> |
1301 | ||
1302 | * elf32-spu.c (insert_callee): Accumulate incoming callee->count. | |
1303 | (mark_functions_via_relocs): Initialize callee->count to 1. | |
1304 | (pasted_function): Likewise. | |
1305 | (spu_elf_auto_overlay): Honor call counts when determining number | |
1306 | of stubs required in software i-cache mode. | |
1307 | ||
fc579192 NC |
1308 | 2009-05-27 Rafael Avila de Espindola <[email protected]> |
1309 | ||
1310 | * plugin.c (program_name): Remove. | |
1311 | (plugin_program_name): New. | |
1312 | (bfd_plugin_set_program_name): New. | |
1313 | (try_load_plugin): Use plugin_program_name. | |
1314 | * plugin.h (bfd_plugin_set_program_name): New. | |
1315 | ||
1316 | 2009-05-27 Rafael Avila de Espindola <[email protected]> | |
5691d22d NC |
1317 | |
1318 | * aclocal.m4: Include ../config/plugins.m4. | |
1319 | * configure.in: Use AC_PLUGINS. | |
1320 | * configure: Regenerate. | |
1321 | * Makefile.in: Regenerate. | |
1322 | * doc/Makefile.in: Regenerate. | |
1323 | ||
c8a1f254 NS |
1324 | 2009-05-27 Nathan Sidwell <[email protected]> |
1325 | ||
1326 | * elf32-ppc.c (ppc_elf_relax_section): Work with a partial | |
1327 | link. | |
1328 | * bout.c (b_out_bfd_relax_section): Reject relocatable links. | |
1329 | * elf32-m10300.c (mn10300_elf_relax_section): Likewise. | |
1330 | * elf32-avr.c (elf32_avr_relax_section): Likewise. | |
1331 | * elf32-frv.c (elf32_avr_relax_section): Likewise. | |
1332 | * elf32-xtensa.c (elf_xtensa_relax_section): Likewise. | |
1333 | * elf64-mmix.c (mmix_elf_relax_section): Likewise. | |
1334 | * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise. | |
1335 | * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise. | |
1336 | * reloc.c (bfd_generic_relax_section): Likewise. | |
1337 | * reloc16.c (bfd_coff_reloc16_relax_section): Likewise. | |
1338 | * vms.c (vms_bfd_relax_section): Likewise. | |
1339 | ||
68d7e96a L |
1340 | 2009-05-26 H.J. Lu <[email protected]> |
1341 | ||
1342 | * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New. | |
1343 | ||
1344 | * elf32-i386.c (is_indirect_symbol): Renamed to ... | |
1345 | * elflink.c (_bfd_elf_is_ifunc_symbol): This. | |
1346 | ||
1347 | * elf32-i386.c (allocate_dynrelocs): Updated. | |
1348 | (elf_i386_relocate_section): Likewise. | |
1349 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
1350 | (elf64_x86_64_relocate_section): Likewise. | |
1351 | ||
1352 | * elf64-x86-64.c (is_indirect_symbol): Removed. | |
1353 | ||
f12e7348 NC |
1354 | 2009-05-26 Nick Clifton <[email protected]> |
1355 | ||
1356 | * po/id.po: Updated Indonesian translation. | |
1357 | ||
ce3c775b NC |
1358 | 2009-05-26 Rafael Avila de Espindola <[email protected]> |
1359 | ||
1360 | * Makefile.am: Run "make dep-am". | |
1361 | (AM_CPPFLAGS): New. | |
1362 | (LIBDL): New. | |
1363 | (ALL_MACHINES): Add cpu-plugin.lo. | |
1364 | (ALL_MACHINES_CFILES): Add cpu-plugin.c. | |
1365 | (BFD32_BACKENDS): Add plugin.lo. | |
1366 | (BFD32_BACKENDS_CFILES): Add plugin.c. | |
1367 | (libbfd_la_LIBADD): Add LIBDL | |
1368 | * archures.c (bfd_architecture): Add bfd_arch_plugin. | |
1369 | (bfd_plugin_arch): Declare. | |
1370 | * bfd-in.h (BFD_SUPPORTS_PLUGINS): New. | |
1371 | * bfd.c (bfd): Add plugin_data. | |
1372 | * config.bfd: Handle the plugin target. | |
1373 | * configure.in: Check for --enable-plugins. | |
1374 | (LT_INIT): Use the dlopen option. | |
1375 | * cpu-plugin.c: New. | |
1376 | * plugin.c: New. | |
1377 | * plugin.h: New. | |
1378 | * targets.c (plugin_vec): Declare. | |
1379 | (_bfd_target_vector): Add plugin_vec. | |
1380 | * Makefile.in: Regenerate. | |
1381 | * bfd-in2.h: Regenerate. | |
1382 | * configure: Regenerate. | |
1383 | ||
9e097a72 AM |
1384 | 2009-05-26 Alan Modra <[email protected]> |
1385 | ||
1386 | * dep-in.sed: Don't modify .o to .lo here. Output one filename | |
1387 | per line with all lines having continuation backslash. Prefix | |
1388 | first line with "A", following lines with "B". | |
1389 | * Makefile.am (DEP): Don't use dep.sed here. | |
1390 | (DEP1): Run $MKDEP on single files, modify .o to .lo here. Use | |
1391 | dep.sed here on dependencies, sort and uniq. | |
1392 | * Makefile.in: Regenerate. | |
1393 | ||
d5acff2f TG |
1394 | 2009-05-25 Tristan Gingold <[email protected]> |
1395 | ||
1396 | * makefile.vms: Add verilog.obj to object list OBJS. | |
1397 | ||
5c93f09b AM |
1398 | 2009-05-24 Alan Modra <[email protected]> |
1399 | ||
1400 | * bfdio.c (bfd_seek): Formatting. Ensure newly allocated memory | |
1401 | for BFD_IN_MEMORY is cleared. | |
1402 | (bfd_bwrite): Zero excess memory allocated. | |
1403 | ||
48229727 JB |
1404 | 2009-05-22 Julian Brown <[email protected]> |
1405 | ||
1406 | * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New | |
1407 | macros. | |
1408 | (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b) | |
1409 | (elf32_arm_stub_a8_veneer_blx): New stub sequences. | |
1410 | (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond, | |
1411 | arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx. | |
1412 | (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields. | |
1413 | (a8_erratum_fix, a8_erratum_reloc): New structs. | |
1414 | (elf32_arm_link_hash_table): Add a8_erratum_fixes, | |
1415 | num_a8_erratum_fixes, fix_cortex_a8 fields. | |
1416 | (elf32_arm_link_hash_table_create): Zero fix_cortex_a8. | |
1417 | (elf32_arm_add_stub): Split into two parts, creating... | |
1418 | (elf32_arm_create_or_find_stub_sec): New function. | |
1419 | (elf32_arm_final_link_relocate): Add forward declaration. | |
1420 | (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2 | |
1421 | relocations, multiple relocations per stub. | |
1422 | (find_stub_size_and_template): New (using parts of arm_size_one_stub). | |
1423 | (arm_size_one_stub): Use find_stub_size_and_template. | |
1424 | (a8_reloc_compare): New. | |
1425 | (find_thumb_glue): Add forward declaration. | |
1426 | (cortex_a8_erratum_scan): New. | |
1427 | (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support. | |
1428 | (bfd_elf32_arm_set_cortex_a8_fix): New. | |
1429 | (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument. | |
1430 | (arm_map_one_stub): Add THUMB32_TYPE support. | |
1431 | (a8_branch_to_stub_data): New. | |
1432 | (make_branch_to_a8_stub): New. | |
1433 | (elf32_arm_write_section): Add Cortex-A8 erratum workaround support. | |
1434 | * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New. | |
1435 | (bfd_elf32_arm_set_target_relocs): Add argument for controlling | |
1436 | Cortex-A8 erratum workaround. | |
1437 | * bfd-in2.h: Regenerate. | |
1438 | ||
2b3decb5 AM |
1439 | 2009-05-22 Alan Modra <[email protected]> |
1440 | ||
1441 | * Makefile.am: Run "make dep-am". | |
1442 | * Makefile.in: Regenerate. | |
1443 | * po/SRC-POTFILES.in: Regenerate. | |
1444 | ||
930e005c AM |
1445 | 2009-05-21 Alan Modra <[email protected]> |
1446 | ||
1447 | * elflink.c (elf_link_input_bfd): Correct *pindex change in last | |
1448 | commit. | |
1449 | ||
6e0b88f1 AM |
1450 | 2009-05-21 Alan Modra <[email protected]> |
1451 | ||
1452 | * elf-bfd.h (struct elf_backend_data | |
1453 | <elf_backend_link_output_symbol_hook>): Return an int. | |
1454 | * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop | |
1455 | symbols on deleted .opd entries. | |
1456 | * elflink.c (elf_link_output_sym): Return without outputting sym | |
1457 | if output_symbol_hook returns 2. | |
1458 | (elf_link_output_extsym): Don't assign h->indx when symbol discarded. | |
1459 | Abort if we must not discard sym. | |
1460 | (elf_link_input_bfd): Similarly, don't set finfo->indices for | |
1461 | local syms. | |
1462 | (bfd_elf_final_link): Adjust elf_link_output_sym calls. | |
1463 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for | |
1464 | elf_backend_link_output_symbol_hook return type change. | |
1465 | * elf32-arm.c (output_arch_syminfo): Likewise. | |
1466 | (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise. | |
1467 | (elf32_arm_output_arch_local_syms): Likewise. | |
1468 | * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise. | |
1469 | * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise. | |
1470 | (bfd_score_elf_link_output_symbol_hook): Likewise. | |
1471 | * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise. | |
1472 | * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise. | |
1473 | * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise. | |
1474 | * elf32-spu.c (spu_elf_output_symbol_hook): Likewise. | |
1475 | * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise. | |
1476 | * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise. | |
1477 | * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise. | |
1478 | * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise. | |
1479 | * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise. | |
1480 | * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise. | |
1481 | * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise. | |
1482 | ||
5ef11c02 AM |
1483 | 2009-05-21 Alan Modra <[email protected]> |
1484 | ||
1485 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on | |
1486 | out of range .opd symbols. | |
1487 | ||
ebf12fbe DK |
1488 | 2009-05-21 Dave Korn <[email protected]> |
1489 | ||
1490 | * coffgen.c (coff_print_symbol): Use bfd_fprintf_vma, not | |
1491 | fprintf_vma directly. | |
1492 | * peXXigen.c (pe_print_edata): Likewise. | |
1493 | (pe_print_pdata): Likewise. | |
1494 | (_bfd_XX_print_ce_compressed_pdata): Likewise. | |
1495 | (_bfd_XX_print_private_bfd_data_common): Likewise. | |
1496 | ||
c1711530 DK |
1497 | 2009-05-19 Dave Korn <[email protected]> |
1498 | ||
1499 | * cofflink.c (process_embedded_commands): Ignore "-aligncomm". | |
1500 | ||
22a8f80e | 1501 | 2009-05-15 Andrew Stubbs <[email protected]> |
164e7efc | 1502 | Paul Brook <[email protected]> |
22a8f80e PB |
1503 | |
1504 | * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to | |
1505 | fix discarded sections. | |
1506 | ||
335bd8f2 UW |
1507 | 2009-05-14 Ulrich Weigand <[email protected]> |
1508 | ||
1509 | * elf32-spu.c (mark_overlay_section): Move .init and .fini | |
1510 | sections into the software icache. | |
1511 | ||
cdc83fba UW |
1512 | 2009-05-14 Ulrich Weigand <[email protected]> |
1513 | ||
1514 | * elf32-spu.c (build_stub): Always build "compact" sofware | |
1515 | i-cache stubs. | |
1516 | ||
97fc8d84 UW |
1517 | 2009-05-14 Ulrich Weigand <[email protected]> |
1518 | ||
1519 | * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2. | |
1520 | (spu_elf_setup): Initialize it. | |
1521 | (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache. | |
1522 | Update to new-sytle cache manager data structures. | |
1523 | (spu_elf_build_stubs): Generate new-style cache manager data | |
1524 | structures and symbols. | |
1525 | (spu_elf_auto_overlay): Update size computation. | |
1526 | ||
452de53c UW |
1527 | 2009-05-14 Ulrich Weigand <[email protected]> |
1528 | ||
1529 | * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY | |
1530 | segments first amongst the program headers. | |
1531 | ||
d342a8b1 UW |
1532 | 2009-05-14 Ulrich Weigand <[email protected]> |
1533 | ||
1534 | * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index | |
1535 | into addresses for relocation types that look at high bits. Remove | |
1536 | special handling of relocation overflow warnings. | |
1537 | ||
cc210763 UW |
1538 | 2009-05-14 Ulrich Weigand <[email protected]> |
1539 | ||
1540 | * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the | |
1541 | control flow graph between fragments of a function. | |
1542 | ||
c1ea05bb UW |
1543 | 2009-05-14 Ulrich Weigand <[email protected]> |
1544 | ||
1545 | * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode, | |
1546 | generate only a 16-byte .toe section. | |
1547 | (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise. | |
1548 | ||
bbb0fc04 AM |
1549 | 2009-05-14 Alan Modra <[email protected]> |
1550 | ||
1551 | * elf32-spu.c (spu_elf_size_stubs): Split out section placement to.. | |
1552 | (spu_elf_place_overlay_data): ..here. New function. | |
1553 | * elf32-spu.h (spu_elf_place_overlay_data): Declare. | |
1554 | ||
6e6718a3 AJ |
1555 | 2009-05-13 Andrew Jenner <[email protected]> |
1556 | ||
1557 | * elf32-arm.c: Move sysdep.h to start of file. | |
1558 | ||
77ae44b0 AM |
1559 | 2009-05-11 Ulrich Weigand <[email protected]> |
1560 | ||
1561 | * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as | |
1562 | start of overlays. | |
1563 | (spu_elf_build_stubs): Don't define __icache_tagbase. Define | |
1564 | __icache_tag_array and __icache_tag_array_size. | |
1565 | ||
51408ec2 AM |
1566 | 2009-05-11 Masaki Muranaka <[email protected]> |
1567 | ||
1568 | * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary | |
1569 | ATTRIBUTE_UNUSED. | |
1570 | (bfinfdpic_link_omit_section_dynsym): Likewise. | |
1571 | (elf32_bfinfdpic_finish_dynamic_sections): Likewise. | |
1572 | ||
2468f9c9 PB |
1573 | 2009-05-05 Paul Brook <[email protected]> |
1574 | ||
1575 | * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype. | |
1576 | * bfd-in2.h: Regenerate. | |
1577 | * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define. | |
1578 | (_arm_elf_section_data): Add text and exidx fields. | |
1579 | (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size, | |
1580 | insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31, | |
1581 | copy_exidx_entry): New functions. | |
1582 | (elf32_arm_write_section): Fixup .ARM.exidx contents. | |
1583 | ||
738a79f6 CL |
1584 | 2009-05-05 Christophe lyon <[email protected]> |
1585 | ||
1586 | * elf32-arm.c (DEF_STUBS): New helper define. | |
1587 | (DEF_STUB): Likewise. | |
1588 | (stub_def): New type. | |
1589 | (stub_definitions): New array, containing stub template pointers | |
1590 | and sizes. | |
1591 | (arm_size_one_stub): Make use of stub_definitions. | |
1592 | ||
09e2aba4 DK |
1593 | 2009-05-04 Dave Korn <[email protected]> |
1594 | ||
1595 | * elflink.c (find_version_for_sym): Remove from here, ... | |
1596 | * linker.c (bfd_find_version_for_sym): ... rename, replace | |
1597 | here, make public and update all callers. | |
1598 | * bfd-in2.h: Regenerate. | |
1599 | ||
d8045f23 NC |
1600 | 2009-04-30 Nick Clifton <[email protected]> |
1601 | ||
1602 | * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs | |
1603 | section pointer. | |
1604 | (struct elf_obj_data): Add has_ifunc_symbols boolean. | |
1605 | * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags | |
1606 | into a STT_GNU_IFUNC symbol type. | |
1607 | (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function | |
1608 | type. | |
1609 | (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if | |
1610 | the binary contains ifunc symbols. | |
1611 | * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC | |
1612 | symbol type into a BSF_GNU_INDIRECT_FUNCTION flag. | |
1613 | * elf32-i386.c (is_indirect_function): New function. | |
1614 | (elf_i386_check_relocs): Create an ifunc output section. | |
1615 | (allocate_dynrelocs): Create dynamic relocs in the ifunc output | |
1616 | section if necessary. | |
1617 | (elf_i386_relocate_section): Emit a reloc against an ifunc symbol | |
1618 | if necessary. | |
1619 | (elf_i386_add_symbol_hook): New function. Set the | |
1620 | has_ifunc_symbols field of the elf_obj_data structure if an ifunc | |
1621 | symbol is encountered. | |
1622 | (elf_backend_post_process_headers): Define. | |
1623 | (elf_backend_add_symbol_hook): Define. | |
1624 | (elf_i386_post_process_headers): Rename to | |
1625 | elf_i388_fbsd_post_process_headers. | |
1626 | * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro. | |
1627 | (is_indirect_function): New function. | |
1628 | (elf64_x86_64_check_relocs): Create an ifunc output section. | |
1629 | (allocate_dynrelocs): Create dynamic relocs in the ifunc output | |
1630 | section if necessary. | |
1631 | (elf64_x86_64_relocate_section): Emit a reloc against an ifunc | |
1632 | symbol if necessary. | |
1633 | (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the | |
1634 | elf_obj_data structure if an ifunc symbol is encountered. | |
1635 | (elf_backend_post_process_headers): Define. | |
1636 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT | |
1637 | if we have ifunc symbols to handle. | |
1638 | (get_ifunc_reloc_section_name): New function. Computes the name | |
1639 | for an ifunc section. | |
1640 | (_bfd_elf_make_ifunc_reloc_section): New function. Creates a | |
1641 | section to hold ifunc relocs. | |
1642 | * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define. | |
1643 | (bfd_print_symbol_vandf): Handle ifunc symbols. | |
1644 | (bfd_decode_symclass): Likewise. | |
1645 | * bfd-in2.h: Regenerate. | |
1646 | ||
96c23d59 JM |
1647 | 2009-04-30 Joseph Myers <[email protected]> |
1648 | ||
1649 | * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute | |
1650 | MOVW and MOVT relocations in a shared library link. | |
1651 | ||
c067354b NC |
1652 | 2009-04-27 Anthony Green <[email protected]> |
1653 | ||
1654 | * verilog.c: New file. | |
1655 | * Makefile.am (BFD32_LIBS): Add verilog.c. | |
1656 | (BFD32_LIBS_CFILES): Add verilog.c. | |
1657 | (verilog.lo): New build rule. | |
1658 | * Makefile.in: Rebuilt. | |
1659 | * targets.c: Add verilog support. | |
1660 | * bfd.c (tdata union): Add Verilog private data field. | |
1661 | * bfd-in2.h: Regenerate. | |
1662 | ||
325c681d L |
1663 | 2009-04-27 H.J. Lu <[email protected]> |
1664 | ||
1665 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't | |
1666 | copy pe_opthdr. | |
1667 | ||
ba775898 DK |
1668 | 2009-04-23 Matthias Klose <[email protected]> |
1669 | ||
2e28a5fc | 1670 | * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'. |
ba775898 | 1671 | |
155d87d7 CL |
1672 | 2009-04-22 Christophe Lyon <[email protected]> |
1673 | ||
1674 | PR9743 | |
1675 | * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24, | |
1676 | R_ARM_JUMP24 and R_ARM_PLT32 relocations. | |
1677 | (elf32_arm_size_stubs): Likewise. | |
1678 | (record_thumb_to_arm_glue): Deleted unused function. | |
1679 | (bfd_elf32_arm_process_before_allocation): No longer handle | |
1680 | R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here. | |
1681 | (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24, | |
1682 | R_ARM_JUMP24 and R_ARM_PLT32 relocations. | |
1683 | ||
3e6b1042 DJ |
1684 | 2009-04-21 Daniel Jacobowitz <[email protected]> |
1685 | ||
1686 | * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED. | |
1687 | (elf32_arm_write_section): Declare early. | |
1688 | (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD. | |
1689 | (arm_allocate_glue_section_space): Exclude empty sections. | |
1690 | (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED. | |
1691 | (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub | |
1692 | BFD. | |
1693 | (elf32_arm_output_glue_section, elf32_arm_final_link): New. | |
1694 | (elf32_arm_merge_eabi_attributes): Skip the stub BFD. | |
1695 | (elf32_arm_size_dynamic_sections): Allocate interworking | |
1696 | sections here. | |
1697 | (bfd_elf32_bfd_final_link): Define. | |
1698 | ||
4f360784 L |
1699 | 2009-04-21 H.J. Lu <[email protected]> |
1700 | ||
1701 | * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K. | |
154a1ee5 | 1702 | |
4f360784 L |
1703 | * coffcode.h (coff_compute_section_file_positions): Clear |
1704 | D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE. | |
1705 | ||
1706 | * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and | |
1707 | force_minimum_alignment. | |
1708 | ||
1709 | * libcoff.h: Regenerated. | |
1710 | ||
1711 | * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed. | |
1712 | (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise. | |
1713 | ||
1714 | * peicode.h (pe_mkobject): Don't set force_minimum_alignment | |
1715 | nor target_subsystem. | |
1716 | ||
1717 | * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check | |
1718 | force_minimum_alignment nor target_subsystem. | |
1719 | ||
e48570bb DK |
1720 | 2009-04-21 Kai Tietz <[email protected]> |
1721 | ||
1722 | * coff-x86_64.c (PEI_HEADERS): Protect includes. | |
1723 | (bfd_pe_print_pdata): Remove #ifdef PE variation. | |
1724 | * pei-x86_64.c (PEI_HEADERS): Define to prevent double | |
1725 | include in coff-x86_64.c of headers. | |
1726 | (PDATA_ROW_SIZE): New define. | |
1727 | (pex_regs[]): New static array. | |
1728 | (pex64_get_runtime_function): New static function. | |
1729 | (pex64_get_unwind_info): Likewise. | |
1730 | (pex64_get_scope_entry): Likewise. | |
1731 | (pex64_xdata_print_uwd_codes): Likewise. | |
1732 | (pex64_get_section_by_rva): Likewise. | |
1733 | (pex64_dump_xdata): Likewise. | |
1734 | (pex64_bfd_print_pdata): Likewise. | |
1735 | (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata. | |
1736 | * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation. | |
1737 | * libpei.h (_bfd_pex64_print_pdata): Removed declaration. | |
1738 | ||
383c383f | 1739 | 2009-04-19 Peter O'Gorman <[email protected]> |
4f360784 L |
1740 | Alan Modra <[email protected]> |
1741 | Dave Korn <[email protected]> | |
383c383f AM |
1742 | |
1743 | * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t | |
1744 | long names and non-NUL-terminated strings. | |
1745 | ||
b6b450f1 L |
1746 | 2009-04-17 H.J. Lu <[email protected]> |
1747 | ||
1748 | * bfd-in2.h: Regenerated. | |
1749 | ||
d9118602 L |
1750 | 2009-04-17 H.J. Lu <[email protected]> |
1751 | ||
1752 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace | |
1753 | IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER. | |
1754 | ||
92dd4511 L |
1755 | 2009-04-17 H.J. Lu <[email protected]> |
1756 | ||
1757 | PR binutils/10074 | |
1758 | * coffcode.h (bfd_pei_p): New. | |
1759 | ||
1760 | * config.bfd: Remove bfd_efi_bsdrv_ia32_vec, | |
1761 | bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec, | |
1762 | bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and | |
1763 | bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec, | |
1764 | bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with | |
1765 | i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively. | |
1766 | ||
1767 | * configure.in: Remove bfd_efi_bsdrv_ia32_vec, | |
1768 | bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec, | |
1769 | bfd_efi_rtdrv_x86_64_vec, | |
1770 | bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace | |
1771 | bfd_efi_ia64_vec with bfd_pei_ia64_vec. | |
1772 | * targets.c: Likewise. | |
1773 | ||
1774 | * configure: Regenerated. | |
1775 | * libcoff.h: Likewise. | |
1776 | * Makefile.in: Likewise. | |
1777 | ||
1778 | * efi-app-ia32.c: Removed. | |
1779 | * efi-app-x86_64.c: Likewise. | |
1780 | * efi-bsdrv-ia32.c: Likewise. | |
1781 | * efi-bsdrv-ia64.c: Likewise. | |
1782 | * efi-bsdrv-x86_64.c: Likewise. | |
1783 | * efi-rtdrv-ia32.c: Likewise. | |
1784 | * efi-rtdrv-ia64.c: Likewise. | |
1785 | * efi-rtdrv-x86_64.c: Likewise. | |
1786 | * efi-rtdrv-ia32.c: Likewise. | |
1787 | ||
1788 | * efi-app-ia64.c: Moved to ... | |
1789 | * pei-ia64.c: This. | |
1790 | (TARGET_SYM): Set to bfd_pei_ia64_vec. | |
1791 | (TARGET_NAME): Set to pei-ia64. | |
1792 | ||
1793 | * libpei.h (bfd_target_pei_p): Removed. | |
1794 | (bfd_target_pei_arch): Likewise. | |
1795 | (bfd_target_efi_app_p): Likewise. | |
1796 | (bfd_target_efi_app_arch): Likewise. | |
1797 | (bfd_target_efi_bsdrv_p): Likewise. | |
1798 | (bfd_target_efi_bsdrv_arch): Likewise. | |
1799 | (bfd_target_efi_rtdrv_p): Likewise. | |
1800 | (bfd_target_efi_rtdrv_arch): Likewise. | |
1801 | (bfd_pe_executable_p): Likewise. | |
1802 | ||
1803 | * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo, | |
1804 | efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo. | |
1805 | (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c | |
1806 | and efi-rtdrv-ia32.c. | |
1807 | (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo, | |
1808 | efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and | |
1809 | efi-rtdrv-x86_64.lo. Add pei-ia64.lo. | |
1810 | (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c, | |
1811 | efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and | |
1812 | efi-rtdrv-x86_64.c. Add pei-ia64.c. | |
1813 | (efi-app-ia64.lo): Removed. | |
1814 | (efi-bsdrv-ia32.lo): Likewise. | |
1815 | (efi-rtdrv-ia32.lo): Likewise. | |
1816 | (efi-app-ia64.lo): Likewise. | |
1817 | (efi-bsdrv-ia64.lo): Likewise. | |
1818 | (efi-rtdrv-ia64.lo): Likewise. | |
1819 | (efi-app-x86_64.lo): Likewise. | |
1820 | (efi-bsdrv-x86_64.lo): Likewise. | |
1821 | (efi-rtdrv-x86_64.lo): Likewise. | |
1822 | (pei-ia64.lo): New. | |
1823 | ||
1824 | * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p | |
1825 | with bfd_pei_p. | |
1826 | (arch_type): Removed. | |
1827 | (pe_arch): Likewise. | |
1828 | (pe_bfd_object_p): Just return coff_object_p. | |
1829 | ||
1830 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace | |
1831 | bfd_pe_executable_p with bfd_pei_p. | |
1832 | ||
69c5861e CL |
1833 | 2009-04-17 Christophe Lyon <[email protected]> |
1834 | ||
1835 | * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through | |
1836 | PLT entries to an undefined symbol when generating a shared | |
1837 | library. | |
1838 | ||
e9cd0660 NC |
1839 | 2009-04-17 Nick Clifton <[email protected]> |
1840 | ||
1841 | PR 9909 | |
1842 | * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols. | |
1843 | ||
3023e3f6 RS |
1844 | 2009-04-16 Richard Sandiford <[email protected]> |
1845 | ||
1846 | * aout-adobe.c (aout_32_bfd_define_common_symbol): Define. | |
1847 | * aout-target.h (MY_bfd_define_common_symbol): Likewise. | |
1848 | * aout-tic30.c (MY_bfd_define_common_symbol): Likewise. | |
1849 | * binary.c (binary_bfd_define_common_symbol): Likewise. | |
1850 | * bout.c (b_out_bfd_define_common_symbol): Likewise. | |
1851 | * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise. | |
1852 | * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise. | |
1853 | * coffcode.h (coff_bfd_define_common_symbol): Likewise. | |
1854 | * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise. | |
1855 | * i386msdos.c (msdos_bfd_define_common_symbol): Likewise. | |
1856 | * i386os9k.c (os9k_bfd_define_common_symbol): Likewise. | |
1857 | * ieee.c (ieee_bfd_define_common_symbol): Likewise. | |
1858 | * ihex.c (ihex_bfd_define_common_symbol): Likewise. | |
1859 | * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise. | |
1860 | * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise. | |
1861 | * mmo.c (mmo_bfd_define_common_symbol): Likewise. | |
1862 | * nlm-target.h (nlm_bfd_define_common_symbol): Likewise. | |
1863 | * oasys.c (oasys_bfd_define_common_symbol): Likewise. | |
1864 | * pef.c (bfd_pef_bfd_define_common_symbol): Likewise. | |
1865 | * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise. | |
1866 | * som.c (som_bfd_define_common_symbol): Likewise. | |
1867 | * srec.c (srec_bfd_define_common_symbol): Likewise. | |
1868 | * tekhex.c (tekhex_bfd_define_common_symbol): Likewise. | |
1869 | * versados.c (versados_bfd_define_common_symbol): Likewise. | |
1870 | * vms.c (vms_bfd_define_common_symbol): Likewise. | |
1871 | * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise. | |
1872 | * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise. | |
1873 | * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol. | |
1874 | (pmac_xcoff_vec): Likewise. | |
1875 | * coff64-rs6000.c (rs6000coff64_vec): Likewise. | |
1876 | (aix5coff64_vec): Likewise. | |
1877 | * linker.c (bfd_generic_define_common_symbol): New function. | |
1878 | * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol. | |
1879 | (_bfd_define_common_symbol): New field. | |
1880 | * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare. | |
1881 | * xcofflink.c (_bfd_xcoff_define_common_symbol): New function. | |
1882 | (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common | |
1883 | symbols here. | |
1884 | * bfd-in2.h: Regenerate. | |
1885 | * libbfd.h: Likewise. | |
1886 | * libcoff.h: Likewise. | |
1887 | ||
20135e4c NC |
1888 | 2009-04-15 Anthony Green <[email protected]> |
1889 | ||
1890 | * targets.c: Add moxie support. | |
1891 | * Makefile.am: Ditto. | |
1892 | * Makefile.in: Rebuilt. | |
1893 | * cpu-moxie.c, elf32-moxie.c: New files. | |
1894 | * archures.c: Add moxie support. | |
1895 | * configure.in: Add moxie support. | |
1896 | * configure: Rebuilt. | |
1897 | * config.bfd, archures.c: Add moxie support. | |
1898 | * bfd-in2.h: Rebuilt. | |
1899 | ||
82b5c97a CL |
1900 | 2009-04-15 Christophe Lyon <[email protected]> |
1901 | ||
1902 | * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM | |
1903 | branch to an undef weak symbol into a jump to next instruction if | |
1904 | a PLT entry will be created. | |
1905 | ||
0408dee6 DK |
1906 | 2009-04-14 Dave Korn <[email protected]> |
1907 | ||
1908 | * coffgen.c (make_a_section_from_file): Set the backend long | |
1909 | section names enable if long section names found on input. | |
1910 | * coffcode.h: Extend long section names documentation to match. | |
1911 | ||
a0c402a5 L |
1912 | 2009-04-08 H.J. Lu <[email protected]> |
1913 | ||
1914 | * elflink.c (elf_link_add_object_symbols): Warn alternate ELF | |
1915 | machine code. | |
1916 | ||
4d28413b DD |
1917 | 2009-04-07 DJ Delorie <[email protected]> |
1918 | ||
1919 | * archures.c: Add bfd_mach_mep_c5. | |
1920 | * bfd-in2.h: Likewise. | |
1921 | * cpu-mep.c: Add bfd_c5_arch. | |
1922 | * elf32-mep.c: Support it. | |
1923 | ||
bb6198d2 L |
1924 | 2009-04-07 H.J. Lu <[email protected]> |
1925 | ||
1926 | * elflink.c (_bfd_elf_section_already_linked): Add `\n' for | |
1927 | info->callbacks->einfo. | |
1928 | * linker.c (_bfd_generic_section_already_linked): Likewise. | |
1929 | ||
bcb012d3 DD |
1930 | 2009-04-06 DJ Delorie <[email protected]> |
1931 | ||
1932 | * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes. | |
1933 | ||
db1fe6e9 L |
1934 | 2009-04-06 H.J. Lu <[email protected]> |
1935 | ||
1936 | * coff-x86_64.c (bfd_pe_print_pdata): Defined to | |
1937 | _bfd_pex64_print_pdata only if PE is defined. | |
1938 | ||
1939 | * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ... | |
1940 | (_bfd_pex64_print_pdata): This. | |
1941 | ||
1942 | * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ... | |
1943 | (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64 | |
1944 | is defined. | |
1945 | ||
c7c7219d KT |
1946 | 2009-04-05 Kai Tietz <[email protected]> |
1947 | ||
1948 | * coff-x86_64.c (bfd_pe_print_pdata): Define as | |
1949 | _bfd_pep_print_x64_pdata. | |
1950 | * libpei.h (_bfd_pep_print_x64_pdata): Add prototype. | |
1951 | * peXXigen.c (_bfd_pep_print_x64_pdata): New. | |
1952 | ||
3df502ae SA |
1953 | 2009-04-02 Sterling Augustine <[email protected]> |
1954 | ||
154a1ee5 | 1955 | * elf32-xtensa.c (relax_property_section): Always set r_offset |
3df502ae SA |
1956 | to zero. |
1957 | ||
d3626fb0 CL |
1958 | 2009-04-02 Christophe Lyon <[email protected]> |
1959 | ||
1960 | * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb, | |
1961 | elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long | |
1962 | branch stubs. | |
1963 | (elf32_arm_stub_type): New enum values for the two new stubs. | |
1964 | (arm_type_of_stub): Make use of the two new stubs. | |
1965 | (arm_size_one_stub): Handle the two new stubs. | |
1966 | ||
fe723c87 MT |
1967 | 2009-04-01 Matt Thomas <[email protected]> |
1968 | ||
1969 | * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against | |
1970 | hidden symbols into the GOT or PLT.GOT. | |
154a1ee5 | 1971 | (elf_vax_relocate_section): Do not emit a PCREL reloc |
fe723c87 MT |
1972 | into a shared object if it is against a hidden symbol. |
1973 | ||
ee698300 RS |
1974 | 2009-04-01 Richard Sandiford <[email protected]> |
1975 | ||
1976 | * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p | |
1977 | and know_contains_shared_object_p. | |
1978 | (xcoff_archive_contains_shared_object_p): Add an "info" parameter. | |
1979 | Cache the result in the archive_info table. | |
1980 | (xcoff_auto_export_p): Add an "info" parameter and update the | |
1981 | call to xcoff_archive_contains_shared_object_p. | |
1982 | (xcoff_mark_auto_exports): Update accordingly. | |
1983 | (xcoff_post_gc_symbol): Likewise. | |
1984 | ||
54e2dbe0 RS |
1985 | 2009-04-01 Richard Sandiford <[email protected]> |
1986 | ||
1987 | * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT | |
1988 | rather than C_EXT. | |
1989 | ||
2e470849 RS |
1990 | 2009-04-01 Richard Sandiford <[email protected]> |
1991 | ||
1992 | * coff-rs6000.c (member_layout): New structure. | |
1993 | (archive_iterator): Likewise. | |
1994 | (member_layout_init): New function. | |
1995 | (archive_iterator_begin): Likewise. | |
1996 | (archive_iterator_next): Likewise. | |
1997 | (xcoff_write_armap_old): Use the new iterator functions. | |
1998 | (do_shared_object_padding): Delete. | |
1999 | (xcoff_write_armap_big): Use the new iterator functions. Simplify | |
2000 | handling of arch_info. | |
2001 | (xcoff_write_archive_contents_old): Allocate arelt_data in the | |
2002 | first loop rather than the second. Allocate a member header if | |
2003 | there isn't one, then work out the stat information and length | |
2004 | in the first loop too. Use the new iterators for the second loop. | |
2005 | (xcoff_write_archive_contents_big): Likewise. | |
2006 | ||
24c611d1 RS |
2007 | 2009-04-01 Richard Sandiford <[email protected]> |
2008 | ||
2009 | * bfd-in.h (bfd_xcoff_split_import_path): Declare. | |
2010 | (bfd_xcoff_set_archive_import_path): Likewise. | |
2011 | * bfd-in2.h: Regenerate. | |
2012 | * xcofflink.c: Include libiberty.h. | |
2013 | (xcoff_archive_info): New structure. | |
2014 | (xcoff_archive_info_hash): New function. | |
2015 | (xcoff_archive_info_eq): Likewise. | |
2016 | (xcoff_get_archive_info): Likewise. | |
2017 | (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info. | |
2018 | (bfd_xcoff_split_import_path): New function. | |
2019 | (bfd_xcoff_set_archive_import_path): Likewise. | |
2020 | (xcoff_set_import_path): Move earlier in file. | |
2021 | (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive | |
2022 | object to the the directory part of the bfd's filename. Get the | |
2023 | import path and filename of an archive object from the archive's | |
2024 | xcoff_tdata, initializing it if necessary. Update use of | |
2025 | import_file_id. | |
2026 | (bfd_link_input_bfd): Update use of import_file_id. | |
2027 | (xcoff_write_global_symbol): Likewise. | |
2028 | ||
d286971a RS |
2029 | 2009-04-01 Richard Sandiford <[email protected]> |
2030 | ||
2031 | * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h. | |
2032 | ||
2033 | 2009-04-01 Richard Sandiford <[email protected]> | |
2034 | ||
2035 | * xcofflink.c (xcoff_link_create_extra_sections): Don't create | |
2036 | a .loader section for relocatable links. | |
2037 | (xcoff_need_ldrel_p): New function. | |
2038 | (xcoff_mark): Use it. | |
2039 | (bfd_xcoff_link_count_reloc): Only count loader relocs if there's | |
2040 | a loader section. | |
2041 | (xcoff_build_ldsym): New function, split out from... | |
2042 | (xcoff_build_ldsyms): ...here. Rename to... | |
2043 | (xcoff_post_gc_symbol): ...this. Only export symbols, and only | |
2044 | call xcoff_build_ldsym, if there's a loader section. | |
2045 | (xcoff_build_loader_section): New function, extracted verbatim from... | |
2046 | (bfd_xcoff_size_dynamic_sections): ...here. Only call it if | |
2047 | there's a loader section. Only add an __rtinit loader symbol | |
2048 | if there's a loader section. Update after above name change. | |
2049 | (xcoff_symbol_section, xcoff_create_ldrel): New functions. | |
2050 | (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section | |
2051 | and xcoff_create_ldrel. | |
2052 | (xcoff_write_global_symbol): Use xcoff_create_ldrel. | |
2053 | (xcoff_reloc_link_order): Likewise, but only call it if there's | |
2054 | a loader section. Use xcoff_symbol_section. | |
2055 | (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym | |
2056 | if there's a loader section. | |
2057 | ||
8707bb87 RS |
2058 | 2009-04-01 Richard Sandiford <[email protected]> |
2059 | ||
2060 | * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun. | |
2061 | ||
e780aef2 CL |
2062 | 2009-04-01 Christophe Lyon <[email protected]> |
2063 | ||
2064 | * elf32-arm.c (group_sections): Rewrite loops for better | |
2065 | readability. | |
2066 | ||
c301e700 DD |
2067 | 2009-03-30 DJ Delorie <[email protected]> |
2068 | ||
2069 | * elflink.c (elf_link_input_bfd): Don't try to resolve complex | |
2070 | relocs when doing a relocatable link. | |
2071 | ||
3895f852 MM |
2072 | 2009-03-28 Mark Mitchell <[email protected]> |
2073 | ||
2074 | * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not | |
2075 | "ERROR:", in error messages. | |
2076 | * cpu-arm.c (bfd_arm_merge_machines): Likewise. | |
2077 | * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise. | |
2078 | * elf32-arm.c (tag_cpu_arch_combine): Likewise. | |
2079 | (elf32_arm_merge_eabi_attributes): Likewise. | |
2080 | (elf32_arm_merge_private_bfd_data): Likewise. | |
2081 | ||
ea882e87 NC |
2082 | 2009-03-27 Nick Clifton <[email protected]> |
2083 | ||
2084 | * section.c (bfd_get_section_contents): Detect and handle the case | |
2085 | where a section has the SEC_IN_MEMORY flag set but no actual | |
2086 | contents allocated. | |
2087 | ||
9433b9b1 AM |
2088 | 2009-03-26 Alan Modra <[email protected]> |
2089 | ||
2090 | PR 6494 | |
2091 | * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO | |
2092 | p_filesz and p_memsz are equal. Use p_memsz as the segment size. | |
2093 | (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO | |
2094 | if we don't find matching PT_LOAD when copying. | |
2095 | ||
dc1aa734 SR |
2096 | 2009-03-25 M R Swami Reddy <[email protected]> |
2097 | ||
2098 | * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of | |
2099 | the reloc descriptions. | |
2100 | ||
34d3d6b9 HPN |
2101 | 2009-03-25 Hans-Peter Nilsson <[email protected]> |
2102 | ||
2103 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> | |
2104 | <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols. | |
2105 | <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto. | |
2106 | ||
34274ccc L |
2107 | 2009-03-24 H.J. Lu <[email protected]> |
2108 | ||
2109 | * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static. | |
2110 | (bfd_i386_arch_intel_syntax): Likewise. | |
2111 | (i8086_arch): Likewise. | |
2112 | (bfd_x86_64_arch): Likewise. | |
2113 | ||
019c5a2e HPN |
2114 | 2009-03-24 Hans-Peter Nilsson <[email protected]> |
2115 | ||
6718f446 HPN |
2116 | * elf32-cris.c (cris_elf_relocate_section): <case |
2117 | R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local | |
2118 | symbols for non-allocated sections. Don't check whether to | |
2119 | generate R_CRIS_DTPMOD for non-allocated sections. | |
2120 | (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't | |
2121 | handle relocation GC:ing if applied to non-allocated section. | |
2122 | (cris_elf_check_relocs): Similar. | |
2123 | ||
019c5a2e HPN |
2124 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> |
2125 | <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size | |
2126 | when emitting a known TP offset in the GOT. | |
2127 | ||
ffcfec52 AM |
2128 | 2009-03-23 Alan Modra <[email protected]> |
2129 | ||
2130 | * elf64-ppc.c (synthetic_opd): Delete. | |
2131 | (compare_symbols): Look for .opd name rather than section match. | |
2132 | (ppc64_elf_get_synthetic_symtab): Likewise. | |
2133 | ||
c6dd29ce AM |
2134 | 2009-03-21 Alan Modra <[email protected]> |
2135 | ||
2136 | * elf32-ppc.c (is_pic_glink_stub): Delete. | |
2137 | (is_nonpic_glink_stub): New function. | |
2138 | (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather | |
2139 | than first pic one. | |
2140 | (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix. | |
2141 | ||
8c21ca21 AK |
2142 | 2009-03-20 Martin Schwidefsky <[email protected]> |
2143 | Andreas Krebbel <[email protected]> | |
2144 | ||
2145 | * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_* | |
4f360784 | 2146 | macros for visibilty and locality checks. |
8c21ca21 AK |
2147 | (elf_s390_adjust_dynamic_symbol): Likewise. |
2148 | (allocate_dynrelocs): Likewise. | |
2149 | (elf_s390_relocate_section): Likewise. | |
2150 | (elf_s390_finish_dynamic_symbol): Likewise. | |
2151 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
2152 | (elf_s390_adjust_dynamic_symbol): Likewise. | |
2153 | (allocate_dynrelocs): Likewise. | |
2154 | (elf_s390_relocate_section): Likewise. | |
2155 | (elf_s390_finish_dynamic_symbol): Likewise. | |
2156 | ||
156621f3 KT |
2157 | 2009-03-19 Kai Tietz <[email protected]> |
2158 | ||
2159 | * bfd-in2.h: Regenerated. | |
2160 | * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY | |
2161 | for debugging sections and map memory read/write dependent on | |
2162 | SEC_COFF_NOREAD. | |
2163 | (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections | |
2164 | without memory read flags set. | |
2165 | * section.c: Add SEC_COFF_NOREAD to section flags. | |
2166 | ||
d1fa68d3 AS |
2167 | 2009-03-19 Andreas Schwab <[email protected]> |
2168 | ||
2169 | * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long | |
2170 | for format string. | |
2171 | ||
ad2adbc8 AM |
2172 | 2009-03-19 Alan Modra <[email protected]> |
2173 | ||
2174 | * elf32-spu.c (spu_elf_find_overlays): Separate error return from | |
2175 | "no overlays" return. If there are overlays, create overlay | |
2176 | manager entry symbols here, so that.. | |
2177 | (spu_elf_build_stubs): ..we don't need to set them up here. | |
2178 | Simplify entry symbol tests. | |
2179 | * elf32-spu.h (spu_elf_find_overlays): Update prototype. | |
2180 | ||
67cc5033 MK |
2181 | 2009-03-18 Mark Kettenis <[email protected]> |
2182 | ||
d1fa68d3 | 2183 | * elf.c (elfcore_grok_openbsd_procinfo) |
67cc5033 MK |
2184 | (elfcore_grok_openbsd_note): New functions. |
2185 | (elf_parse_notes): Handle notes from OpenBSD ELF core files. | |
2186 | ||
8d25cc3d AM |
2187 | 2009-03-18 Alan Modra <[email protected]> |
2188 | ||
3889c459 | 2189 | * vms-hdr.c: Don't include alloca.h. |
8d25cc3d AM |
2190 | * elf32-m68hc1x.c: Include alloca-conf.h. |
2191 | * xsym.c: Likewise. | |
2192 | * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. | |
2193 | * som.c: Likewise. | |
2194 | * Makefile.am: Run "make dep-am". | |
2195 | * Makefile.in: Regenerate. | |
2196 | ||
a89e6478 DJ |
2197 | 2009-03-17 Daniel Jacobowitz <[email protected]> |
2198 | ||
2199 | * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test. | |
2200 | ||
a7e11ee1 AM |
2201 | 2009-03-17 Alan Modra <[email protected]> |
2202 | ||
2203 | * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit. | |
2204 | Add compact_stub. | |
2205 | (emum _ovly_flavour): Delete ovly_compact, ovly_none. | |
2206 | * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and | |
2207 | ovly_return fields with ovly_entry[2]. Adjust all users. | |
2208 | (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler | |
2209 | when soft-icache. | |
2210 | (spu_elf_build_stubs): Likewise. | |
2211 | (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for | |
2212 | ovly_flavour changes. Update all callers. | |
2213 | (ovl_stub_size_log2): New function. | |
2214 | (build_stub): Handle compact icache stubs. Use different manager | |
2215 | entry point for stubs in non-icache area. | |
2216 | (spu_elf_size_stubs): Don't allocate space for indirect branch | |
2217 | descriptors. | |
2218 | (spu_elf_build_stubs): And don't built them. | |
2219 | ||
607a83c9 AS |
2220 | 2009-03-16 Andrew Stubbs <[email protected]> |
2221 | ||
2222 | * dwarf2.c (read_section): Always use rawsize, if available. | |
2223 | ||
588f62fc AM |
2224 | 2009-03-16 Alan Modra <[email protected]> |
2225 | ||
2226 | * simple.c (bfd_simple_get_relocated_section_contents): Use larger | |
2227 | of rawsize and size for buffer. | |
2228 | ||
a14c90c1 UW |
2229 | 2009-03-15 Ulrich Weigand <[email protected]> |
2230 | ||
2231 | * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay | |
2232 | parameter just because fixed sections fit into local store. | |
2233 | (spu_elf_auto_overlay): Do not declare as "noreturn". Skip | |
2234 | generating overlays if fixed sections plus reserved stack | |
2235 | and heap space fit into local store. | |
2236 | ||
30c665df AM |
2237 | 2009-03-15 Alan Modra <[email protected]> |
2238 | ||
2239 | * elf32-spu.c (build_stub): Correct icache set_id. | |
2240 | (spu_elf_relocate_section): Likewise. | |
2241 | ||
f95942a3 RS |
2242 | 2009-03-14 Richard Sandiford <[email protected]> |
2243 | ||
2244 | * xcofflink.c (xcoff_link_check_archive_element): Only free the | |
2245 | symbol table if it was created by the current call. | |
2246 | ||
670562e9 RS |
2247 | 2009-03-14 Richard Sandiford <[email protected]> |
2248 | ||
2249 | * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors | |
2250 | class XMC_DS rather than XMC_UA. | |
2251 | ||
b64232cc RS |
2252 | 2009-03-14 Richard Sandiford <[email protected]> |
2253 | ||
2254 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the | |
2255 | bfd_boolean export_defineds parameter with an unsigned int | |
2256 | auto_export_flags parameter. | |
2257 | * bfd-in2.h: Regenerate. | |
2258 | * xcofflink.c (xcoff_archive_contains_shared_object_p): New function, | |
2259 | split out from xcoff_build_ldsyms. | |
2260 | (xcoff_covered_by_expall_p): New function. | |
2261 | (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms | |
2262 | but with extra code to handle -bexpfull and -bexpall. | |
2263 | (xcoff_mark_auto_exports): New function. | |
2264 | (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether | |
2265 | a function should be automatically exported. | |
2266 | (bfd_xcoff_size_dynamic_sections): Replace the export_defineds | |
2267 | parameter with an auto_export_flags parameter. Update ldinfo | |
2268 | accordingly. Use xcoff_mark_auto_exports to mark all automatically- | |
2269 | exported symbols. | |
2270 | ||
7d504122 RS |
2271 | 2009-03-14 Richard Sandiford <[email protected]> |
2272 | ||
2273 | * xcofflink.c (xcoff_mark_symbol_by_name): New function. | |
2274 | (bfd_xcoff_size_dynamic_sections): Use it to mark the entry, | |
2275 | init and fini functions. Do garbage collection for objects | |
2276 | without an entry point too. | |
2277 | ||
8602d4fe RS |
2278 | 2009-03-14 Richard Sandiford <[email protected]> |
2279 | ||
2280 | * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to | |
2281 | check whether a symbol has csect information. | |
2282 | (coff_print_aux): Likewise. | |
2283 | * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect | |
2284 | information for C_AIX_WEAKEXT too. | |
2285 | (_bfd_xcoff_swap_aux_out): Likewise. | |
2286 | (xcoff_reloc_type_br): Handle defweak symbols too. | |
2287 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect | |
2288 | information for C_AIX_WEAKEXT too. | |
2289 | (_bfd_xcoff64_swap_aux_out): Likewise. | |
2290 | (xcoff64_reloc_type_br): Handle defweak symbols too. | |
2291 | * coffgen.c (coff_print_symbol): Handle auxillary function | |
2292 | information for C_AIX_WEAKEXT too. | |
2293 | * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK | |
2294 | instead of BSF_GLOBAL if the L_WEAK flag is set. | |
2295 | (xcoff_dynamic_definition_p): New function. | |
2296 | (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym | |
2297 | defines h. Don't change h if ldsym isn't the definition. Otherwise, | |
2298 | always take the symbol class from the ldsym. Use weak bfd symbol | |
2299 | types for weak ldsyms. | |
2300 | (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P. | |
2301 | Fix the check for whether a definition is from a shared object. | |
2302 | Allow redefinitions of weak symbols. | |
2303 | (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P. | |
2304 | (xcoff_keep_symbol_p): Likewise. | |
2305 | (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P. | |
2306 | (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P. | |
2307 | Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols, | |
2308 | but mark them as L_WEAK. | |
2309 | (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT | |
2310 | instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT. | |
2311 | ||
5b49f6dc RS |
2312 | 2009-03-14 Richard Sandiford <[email protected]> |
2313 | ||
2314 | * xcofflink.c (xcoff_mark): When walking the relocations, | |
2315 | only mark the target symbol or the target section, not both. | |
2316 | (xcoff_final_definition_p): New function. | |
2317 | (xcoff_keep_symbol_p): Use it to check whether an external XCOFF | |
2318 | symbol is a valid definition of the associated output symbol. | |
2319 | Use XCOFF_ALLOCATED to stop the same hash table entry having | |
2320 | two output symbols. | |
2321 | (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when | |
2322 | keeping a symbol. | |
2323 | (xcoff_link_input_bfd): Use xcoff_final_definition_p. | |
2324 | ||
c4037431 RS |
2325 | 2009-03-14 Richard Sandiford <[email protected]> |
2326 | ||
2327 | * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute | |
2328 | symbols as XMC_XO. | |
2329 | ||
3df13c4a RS |
2330 | 2009-03-14 Richard Sandiford <[email protected]> |
2331 | ||
2332 | * libcoff-in.h (xcoff_tdata): Add a lineno_counts field. | |
2333 | * libcoff.h: Regenerate. | |
2334 | * xcofflink.c (xcoff_link_add_symbols): Record per-symbol | |
2335 | line-number counts in the bfd's lineno_counts field. | |
2336 | Don't keep per-csect line-number counts. | |
2337 | (xcoff_sweep): Don't update per-csect line-number counts. | |
2338 | (bfd_xcoff_size_dynamic_sections): Count the number of line-number | |
2339 | entries in each output section. | |
2340 | (xcoff_link_input_bfd): Get the number of line numbers from | |
2341 | the bfd's lineno_counts field, rather than recalculating it | |
2342 | from scratch. Fix the range check when updating C_BINCL and | |
2343 | C_EINCL symbols. | |
2344 | (_bfd_xcoff_bfd_final_link): Don't count the output line numbers | |
2345 | here. Don't expect csects to have line-number counts. | |
2346 | ||
e450936a RS |
2347 | 2009-03-14 Richard Sandiford <[email protected]> |
2348 | ||
2349 | * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long. | |
2350 | * libcoff.h: Regenerate. | |
2351 | * xcofflink.c (xcoff_keep_symbol_p): New function, using the | |
2352 | "skip" logic from xcoff_link_input_bfd. | |
2353 | (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic | |
2354 | objects in a dynamic link, rather than checking whether csectpp | |
2355 | is null. Always allocate debug_index for other objects, | |
2356 | and always go through the loop. Update the type of debug_index | |
2357 | after the change above. Read the auxillary csect information | |
2358 | and use xcoff_keep_symbol_p to decide whether a symbol should | |
2359 | be kept. Set its debug_index to -2 if not. | |
2360 | (xcoff_link_input_bfd): Update the type of debug_index after | |
2361 | the change above and always expect it to be nonnull. Use it to | |
2362 | test whether a symbol should be stripped, rather than making the | |
2363 | decision here. Postpone all symbol creation to the second pass. | |
2364 | ||
47dfb2ca RS |
2365 | 2009-03-14 Richard Sandiford <[email protected]> |
2366 | ||
2367 | * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when | |
2368 | creating a descriptor. | |
2369 | (xcoff_sweep): Don't mark toc_section unless it's needed. | |
2370 | (bfd_xcoff_size_dynamic_sections): Skip the toc_section | |
2371 | when marking every bfd. | |
2372 | (xcoff_link_input_bfd): Skip all TOC anchors. | |
2373 | (xcoff_toc_section_p, xcoff_find_tc0): New functions. | |
2374 | (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor | |
2375 | to -1; call xcoff_find_tc0 instead. | |
2376 | ||
4cc02a02 RS |
2377 | 2009-03-14 Richard Sandiford <[email protected]> |
2378 | ||
2379 | * libcoff-in.h (xcoff_section_tdata): Update commentary. | |
2380 | * libcoff.h: Regenerate. | |
2381 | * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER | |
2382 | symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than | |
2383 | the previous symbol's csect. Treat last_symndx as an inclusive value | |
2384 | and simplify its handling. | |
2385 | (xcoff_mark): Treat last_symndx as an inclusive value. Only mark | |
2386 | symbols with the right csect. Don't mark rsec when processing | |
d1fa68d3 | 2387 | relocations against undefined or absolute sections. |
4cc02a02 RS |
2388 | (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag |
2389 | of bfd_und_section_ptr. | |
2390 | (xcoff_link_input_bfd): Likewise. | |
2391 | ||
858ef0ce RS |
2392 | 2009-03-14 Richard Sandiford <[email protected]> |
2393 | ||
2394 | * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations | |
2395 | against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED | |
2396 | flag is set. Assert that all undefined symbols are either | |
2397 | imported or defined by a dynamic object. | |
2398 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise. | |
2399 | * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol | |
2400 | handling to all relocations. Only set XCOFF_CALLED for function | |
2401 | symbols. | |
2402 | (xcoff_find_function): New function, split out from... | |
2403 | (bfd_xcoff_export_symbol) ...here. | |
2404 | (xcoff_set_import_path): New function, split out from... | |
2405 | (bfd_xcoff_import_symbol): ...here. Remove assertion for old | |
2406 | meaning of XCOFF_CALLED. | |
2407 | (xcoff_mark_symbol): If we mark an undefined and unimported | |
2408 | symbol, find some way of defining it. If the symbol is a function | |
2409 | descriptor, fill in its definition automatically. If the symbol | |
2410 | is a function, mark its descriptor and allocate room for global | |
2411 | linkage code. Otherwise mark the symbol as implicitly imported. | |
2412 | Move the code for creating function descriptors from... | |
d1fa68d3 | 2413 | (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to |
858ef0ce RS |
2414 | check for symbols that were implicitly defined. |
2415 | (xcoff_mark): Don't count any dynamic relocations against | |
2416 | function symbols. | |
2417 | (bfd_xcoff_size_dynamic_sections): Save the rtld parameter | |
2418 | in the xcoff link info. | |
2419 | (xcoff_link_input_bfd): Remove handling of undefined and | |
2420 | unexported symbols. | |
2421 | ||
12b2cce9 RS |
2422 | 2009-03-14 Richard Sandiford <[email protected]> |
2423 | ||
2424 | * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute | |
2425 | if the target is absolute. Fix comment typo. | |
2426 | (xcoff_ppc_relocate_section): Remove FIXME. | |
2427 | * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute | |
2428 | if the target is absolute. | |
2429 | ||
0e3212ad RS |
2430 | 2009-03-14 Richard Sandiford <[email protected]> |
2431 | ||
2432 | * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy | |
2433 | R_POS and R_NEG relocations against absolute symbols to the | |
2434 | .loader section. | |
2435 | ||
d19d97e9 RS |
2436 | 2009-03-14 Richard Sandiford <[email protected]> |
2437 | ||
2438 | * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype | |
2439 | to 2 for bfd_mach_ppc_620. | |
2440 | ||
e5231592 RS |
2441 | 2009-03-14 Richard Sandiford <[email protected]> |
2442 | ||
2443 | * config.bfd: Treat AIX 6+ in the same way as AIX 5. | |
2444 | * configure.in: Likewise. | |
2445 | * configure: Regenerate. | |
2446 | ||
3516e984 L |
2447 | 2009-03-13 H.J. Lu <[email protected]> |
2448 | ||
2449 | PR binutils/9945 | |
2450 | * elf.c (assign_section_numbers): Generate symbol table if there | |
2451 | is any relocation in output. | |
2452 | (_bfd_elf_compute_section_file_positions): Likewise. | |
2453 | ||
ce98a316 NC |
2454 | 2009-03-13 Nick Clifton <[email protected]> |
2455 | ||
2456 | PR 9934 | |
2457 | * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section. | |
2458 | * elflink.c (elf_link_read_relocs_from_section): Use | |
2459 | NUM_SHDR_ENTRIES. Gracefully handle the case where there are | |
2460 | relocs but no symbol table. | |
2461 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. | |
2462 | ||
c4fb387b L |
2463 | 2009-03-12 H.J. Lu <[email protected]> |
2464 | ||
2465 | PR ld/9938 | |
2466 | * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp | |
2467 | to check ___tls_get_addr. | |
2468 | ||
2469 | * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use | |
2470 | strncmp to check __tls_get_addr. | |
2471 | ||
53638231 AS |
2472 | 2009-03-12 Andrew Stubbs <[email protected]> |
2473 | ||
2474 | * dwarf2.c (read_section): Always check the offset, even when the | |
2475 | section has been read before. | |
2476 | ||
09e8c3bf L |
2477 | 2009-03-11 H.J. Lu <[email protected]> |
2478 | ||
2479 | * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in | |
2480 | comments. | |
2481 | ||
36e4dce6 CD |
2482 | 2009-03-11 Chris Demetriou <[email protected]> |
2483 | ||
2484 | * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. | |
2485 | * bfd-in2.h: Regenerate. | |
2486 | * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT | |
2487 | flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file | |
2488 | mode. | |
2489 | (bsd_write_armap): Likewise. | |
2490 | (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT | |
2491 | flag is set, do nothing. | |
2492 | (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 | |
2493 | for timestamp. | |
2494 | ||
9b175a76 UW |
2495 | 2009-03-11 Ulrich Weigand <[email protected]> |
2496 | ||
2497 | * elf32-spu.c (find_function_stack_adjust): Handle sf instruction | |
2498 | used to update stack pointer. | |
2499 | ||
f501de17 DA |
2500 | 2009-03-07 John David Anglin <[email protected]> |
2501 | ||
2502 | PR binutils/9921 | |
2503 | * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE | |
2504 | for unknown symbols in absolute section. | |
2505 | ||
d11fd249 NC |
2506 | 2009-03-06 Nick Clifton <[email protected]> |
2507 | ||
2508 | * po/es.po: Updated Spanish translation. | |
2509 | ||
8cd931b7 CL |
2510 | 2009-03-05 Christophe Lyon <[email protected]> |
2511 | ||
2512 | * elf32-arm.c (group_sections): Take next section size into | |
2513 | account before accepting to group it. | |
2514 | ||
5fa9e92f CL |
2515 | 2009-03-05 Christophe Lyon <[email protected]> |
2516 | ||
2517 | * elf32-arm.c (arm_type_of_stub): Handle long branches targetting | |
2518 | PLT entries. | |
2519 | (elf32_arm_final_link_relocate): Likewise. | |
2520 | ||
b92997d6 AM |
2521 | 2009-03-05 Moritz Kroll <[email protected]> |
2522 | ||
2523 | PR 9923 | |
2524 | * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type. | |
2525 | ||
727fc41e AM |
2526 | 2009-03-04 Alan Modra <[email protected]> |
2527 | ||
2528 | * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. | |
2529 | * section.c (struct bfd_section): Add has_tls_get_addr_call. | |
2530 | (BFD_FAKE_SECTION): Init new flag. | |
2531 | * ecoff.c (bfd_debug_section): Likewise. | |
2532 | * bfd-in2.h: Regenerate. | |
2533 | * libbfd.h: Regenerate. | |
2534 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. | |
2535 | (ppc_elf_reloc_type_lookup): Handle new relocs. | |
2536 | (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
2537 | without marker relocs. | |
2538 | (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
2539 | if section has no old-style calls. | |
2540 | (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
2541 | Don't try to optimize new-style __tls_get_addr call when handling | |
2542 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
2543 | relocs. | |
2544 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. | |
2545 | (ppc64_elf_reloc_type_lookup): Handle new relocs. | |
2546 | (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
2547 | without marker relocs. | |
2548 | (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
2549 | if section has no old-style calls. Set toc_ref for new relocs as | |
2550 | appropriate. | |
2551 | (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
2552 | Don't try to optimize new-style __tls_get_addr call when handling | |
2553 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
2554 | relocs. | |
2555 | ||
51dec227 AM |
2556 | 2009-03-04 Alan Modra <[email protected]> |
2557 | ||
2558 | PR 6768 | |
2559 | * configure.in: Test for ld --as-needed support. Link shared | |
2560 | libbfd against libm. | |
2561 | * configure: Regenerate. | |
2562 | ||
a1f7ca36 AM |
2563 | 2009-03-03 Alan Modra <[email protected]> |
2564 | ||
2565 | * Makefile.am: Run "make dep-am". | |
2566 | * Makefile.in: Regenerate. | |
2567 | ||
c3b7224a NC |
2568 | 2009-03-02 Qinwei <[email protected]> |
2569 | ||
2570 | * elf32-score7.c: New file. | |
2571 | * elf32-score.h: New file. | |
2572 | * elf32-score.c: Add code to support score 7. Set score7 as the | |
2573 | default. | |
2574 | * cpu-score.c: Add score7 architecure. | |
2575 | (compatibile): New function. | |
2576 | * Makefile.am: Add rules for building elf32-score7 object. | |
2577 | * Makefile.in: Regenerate. | |
2578 | * configure.in: Add elf32-score7 object to score vectors. | |
2579 | * configure: Regenerate. | |
2580 | * reloc.c: Add score7 relocs. | |
2581 | * archures.c: Add score3 and score7 machine numbers. | |
2582 | * bfd-in2.h: Regenerate. | |
2583 | * libbfd.h: Regenerate. | |
2584 | ||
58e24671 RW |
2585 | 2009-03-01 Ralf Wildenhues <[email protected]> |
2586 | ||
2587 | * configure: Regenerate. | |
2588 | ||
5887528b DA |
2589 | 2009-03-01 John David Anglin <[email protected]> |
2590 | ||
d45b7d74 DA |
2591 | * elf32-hppa.c (hppa32_elf_local_refcounts): New function. |
2592 | (elf32_hppa_check_relocs): Use it. | |
2593 | ||
5887528b DA |
2594 | * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to |
2595 | elf64-hppa.c. | |
2596 | (elf_hppa_unmark_useless_dynamic_symbols): Likewise. | |
2597 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. | |
2598 | (elf_hppa_is_dynamic_loader_symbol): Likewise. | |
2599 | (elf_hppa_record_segment_addrs): Likewise. | |
2600 | (elf_hppa_final_link): Likewise. | |
2601 | (elf_hppa_relocate_insn): Likewise. | |
2602 | (elf_hppa_final_link_relocate): Likewise. | |
2603 | (elf64_hppa_relocate_section): Likewise. | |
2604 | * elf64-hppa.c: Insert above. | |
2605 | ||
a03bd320 DA |
2606 | 2009-02-28 John David Anglin <[email protected]> |
2607 | ||
2608 | * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. | |
2609 | (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table. | |
2610 | (elf_hppa_relocate_section): Likewise. | |
2611 | * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive | |
2612 | from struct elf_link_hash_entry. Add count field. | |
2613 | (struct elf64_hppa_dyn_hash_table): Delete. | |
2614 | (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field. | |
2615 | (elf64_hppa_hash_table): Rename to hppa_link_hash_table. | |
2616 | (hppa_elf_hash_entry, eh_name): Define. | |
2617 | (elf64_hppa_new_dyn_hash_entry): Delete. | |
2618 | (elf64_hppa_dyn_hash_lookup): Delete. | |
2619 | (elf64_hppa_dyn_hash_traverse): Delete. | |
2620 | (get_dyn_name): Delete. | |
2621 | (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead | |
2622 | of struct elf64_hppa_dyn_hash_entry *. | |
2623 | (elf64_hppa_finalize_dlt, llocate_global_data_dlt, | |
2624 | allocate_global_data_plt, allocate_global_data_stub, | |
2625 | allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries): | |
2626 | Likewise. | |
2627 | (hppa64_link_hash_newfunc): New. | |
2628 | (elf64_hppa_hash_table_create): Rework. | |
2629 | (count_dyn_reloc): Likewise. | |
2630 | (hppa64_elf_local_refcounts): New. | |
2631 | (elf64_hppa_check_relocs): Rework using standard technique for recording | |
2632 | local DLT, PLT and OPD reference counts. | |
2633 | (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct | |
2634 | elf_link_hash_entry *. | |
2635 | (elf64_hppa_mark_exported_functions, allocate_global_data_dlt, | |
2636 | allocate_global_data_plt, allocate_global_data_stub, | |
2637 | allocate_global_data_opd, allocate_dynrel_entries, | |
2638 | elf64_hppa_adjust_dynamic_symbol, | |
2639 | elf64_hppa_mark_milli_and_exported_functions): Likewise. | |
2640 | (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections): | |
2641 | Use hppa_link_hash_table. Rework. | |
2642 | (elf64_hppa_link_output_symbol_hook): Rework. | |
2643 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd, | |
2644 | elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc, | |
2645 | elf64_hppa_finish_dynamic_sections): Likewise. | |
2646 | ||
ebe24dd4 CL |
2647 | 2009-02-26 Christophe Lyon <[email protected]> |
2648 | ||
2649 | * elf32-arm.c (stub_reloc_type): Removed. | |
2650 | (insn_sequence): Renamed reloc_type field to r_type. | |
2651 | (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub. | |
2652 | (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise. | |
2653 | (elf32_arm_stub_long_branch_thumb_only_pic): Likewise. | |
2654 | (elf32_arm_stub_type): Add new enum entries for the new stubs. | |
2655 | (arm_stub_is_thumb): Catch new stubs. | |
2656 | (arm_type_of_stub): Handle new stubs. | |
2657 | (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs. | |
2658 | (bfd_elf32_arm_process_before_allocation): Remove useless | |
2659 | condition. | |
2660 | ||
b9d678e0 L |
2661 | 2009-02-25 H.J. Lu <[email protected]> |
2662 | ||
2663 | * elf.c (elf_find_function): Use is_function_type to check | |
2664 | function symbol. | |
2665 | ||
56fb3749 SA |
2666 | 2009-02-24 Sterling Augustine <[email protected]> |
2667 | ||
2668 | * xtensa-modules.c: Revert to previous version 1.11 due | |
2669 | to inadvertant commit. | |
2670 | ||
658ff993 SA |
2671 | 2009-02-24 Sterling Augustine <[email protected]> |
2672 | ||
2673 | * elf32-xtensa.c (text_action_add): Separate test for action | |
2674 | type. Break if saved action is ta_widen_insn at same offset. | |
2675 | ||
cf3eccff DJ |
2676 | 2009-02-24 Daniel Jacobowitz <[email protected]> |
2677 | ||
2678 | * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename | |
2679 | to elf32_arm_stub_long_branch_any_arm_pic. | |
2680 | (elf32_arm_stub_long_branch_any_thumb_pic): New. | |
2681 | (enum elf32_arm_stub_type, arm_type_of_stub) | |
2682 | (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC | |
2683 | separately. | |
2684 | ||
07d72278 DJ |
2685 | 2009-02-24 Joseph Myers <[email protected]> |
2686 | ||
2687 | * elf32-arm.c (PREV_SEC): Update comment. | |
2688 | (group_sections): Rename argument to stubs_always_after_branch. | |
2689 | Reverse the list and place stubs at the end of input sections. | |
2690 | Undefine NEXT_SEC. | |
2691 | (elf32_arm_size_stubs): Update to use stubs_always_after_branch. | |
2692 | ||
4e31c731 DJ |
2693 | 2009-02-23 Daniel Jacobowitz <[email protected]> |
2694 | ||
2695 | * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset. | |
2696 | Fix formatting. | |
2697 | (arm_size_one_stub): Remove unnecessary break. | |
2698 | (arm_map_one_stub): Fix formatting. Return after BFD_FAIL. | |
2699 | ||
2700 | 2009-02-23 Christophe Lyon <[email protected]> | |
461a49ca DJ |
2701 | |
2702 | * elf32-arm.c (stub_insn_type): New type. | |
2703 | (stub_reloc_type): Likewise. | |
2704 | (insn_sequence): Likewise. | |
2705 | (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence. | |
2706 | (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise. | |
2707 | (elf32_arm_stub_long_branch_thumb_only): Likewise. | |
2708 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
2709 | (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise. | |
2710 | (elf32_arm_stub_long_branch_any_any_pic): Likewise. | |
2711 | (elf32_arm_stub_hash_entry): Add new helper fields. | |
2712 | (stub_hash_newfunc): Initialize these new fields. | |
2713 | (arm_build_one_stub): Encode Arm and Thumb instructions separately | |
2714 | to take endianness into account. | |
2715 | (arm_size_one_stub): Compute size of stubs using insn_sequence. | |
2716 | (arm_map_one_stub): Code is now more generic, thanks to | |
2717 | insn_sequence. | |
2718 | ||
c2b4a39d CL |
2719 | 2009-02-23 Christophe Lyon <[email protected]> |
2720 | ||
2721 | * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub | |
2722 | code. | |
2723 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
2724 | (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when | |
2725 | BLX is not available. Fix typo in warning message. Add comments | |
2726 | and improve formatting. | |
2727 | (arm_build_one_stub): Adjust to new | |
2728 | elf32_arm_stub_long_branch_v4t_thumb_arm stub. | |
2729 | (arm_map_one_stub): Likewise. | |
2730 | ||
0c376465 | 2731 | 2009-02-23 Tristan Gingold <[email protected]> |
a60a89d6 TG |
2732 | Eric Botcazou <[email protected]> |
2733 | Douglas B Rupp <[email protected]> | |
0c376465 TG |
2734 | |
2735 | * vms.h: Update copyright year, fix comments, reorder declarations. | |
2736 | (_bfd_save_vms_section): Remove the prototype. | |
2737 | (EGPS_S_V_NO_SHIFT): New constant. | |
2738 | (bfd_vms_set_section_flags): New prototype. | |
2739 | (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New | |
2740 | constants. | |
2741 | (EGSY_S_W_FLAGS): Ditto. | |
2742 | (EGSY_S_V_QUAD_VAL): Ditto. | |
2743 | (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto. | |
2744 | (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX, | |
2745 | EGST_S_B_NAMLNG): Ditto. | |
2746 | (ESRF_S_B_NAMLNG): Ditto. | |
2747 | (ETIR_S_C_HEADER_SIZE): Ditto. | |
2748 | (EGPS_S_V_ALLOC_64BIT): Ditto. | |
2749 | (DST_S_C_EPILOG): Ditto. | |
2750 | (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto. | |
2751 | (DST_S_C_SRC_INCRLNUM_B): Ditto. | |
2752 | (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto. | |
2753 | (DST_S_L_PCLINE_UNSLONG): Ditto. | |
2754 | (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto | |
2755 | (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto | |
2756 | (DST_S_C_SOURCE_HEADER_SIZE): Ditto. | |
2757 | (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto. | |
2758 | (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto. | |
2759 | (DST_S_B_SRC_UNSBYTE): Ditto. | |
2760 | (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto. | |
2761 | Add prototypes. | |
2762 | (vms_section, vms_reloc): Remove types. | |
2763 | (hdr_struc): Replaced by ... | |
2764 | (hdr_struct): ... new type. | |
2765 | (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants. | |
2766 | (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto. | |
2767 | (EMH_DATE_LENGTH): Ditto. | |
2768 | (eom_struc): Replaced by ... | |
2769 | (eom_struct): ... new type. | |
2770 | (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants. | |
2771 | (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto. | |
2772 | (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto. | |
2773 | (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto. | |
2774 | (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto. | |
2775 | (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto. | |
2776 | (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto. | |
2777 | (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto. | |
2778 | (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto. | |
2779 | (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto. | |
2780 | (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto. | |
2781 | (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto. | |
2782 | (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto. | |
2783 | (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto. | |
2784 | (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto. | |
2785 | (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto. | |
2786 | (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto. | |
2787 | (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH) | |
2788 | (DBG_S_C_DMT_PSECT_SIZE): Ditto. | |
2789 | (enum file_type_enum): New type. | |
2790 | (struct location_struct): Removed. | |
2791 | (struct fileinfo, struct srecinfo, struct lineinfo): New types. | |
2792 | (struct funcinfo, struct module): Ditto. | |
2793 | (struct vms_private_data_struct): Update fields. | |
2794 | (struct vms_section_data_struct): New type. | |
2795 | ||
2796 | * vms.c: Update copyright year, fix comments, | |
2797 | Fix includes for DECC, add prototypes. | |
2798 | (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove | |
2799 | some initializers. | |
2800 | Use flavour to set is_vax, location_stack is removed. | |
2801 | (struct pair): Declare. | |
2802 | (fill_section_ptr): Initialize variables at declaration. | |
2803 | Add guard to set SECTION_SYM flag, handlde und section. | |
2804 | (vms_fixup_sections): Use struct pair for fill_section_ptr argument. | |
2805 | (_bfd_vms_slurp_object_records): New function, replaces previous | |
2806 | vms_object_p. | |
2807 | (vms_slurp_module): New function. | |
2808 | (vms_slurp_image): Ditto. | |
2809 | (vms_object_p): Complete rewrite. | |
2810 | (vms_mkobject): Use is_vax field to slect architecture. | |
2811 | (free_reloc_stream): New function. | |
2812 | (vms_convert_to_var): Ditto. | |
2813 | (vms_convert_to_var_1): Ditto. | |
2814 | (vms_convert_to_var_unix_filename): Ditto. | |
2815 | (vms_close_and_cleanup): Call free_reloc_stream, convert file to | |
2816 | VAR format on VMS. | |
2817 | (vms_new_section_hook): Set alignment to 0, allocate private data. | |
2818 | (vms_get_section_contents): Load content. | |
2819 | (vms_get_symbol_info): Handle undefined section. | |
2820 | (vms_find_nearest_line): Handle. | |
2821 | (alloc_reloc_stream): New function. | |
2822 | (vms_slurp_reloc_table): Ditto. | |
2823 | (vms_get_reloc_upper_bound): Make it real. | |
2824 | (vms_canonicalize_reloc): Do the real work. | |
2825 | (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA, | |
2826 | ALPHA_R_BOH. | |
2827 | (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH. | |
2828 | (vms_set_arch_mach): Check arch. | |
2829 | (vms_set_section_contents): Copy the content after allocation. | |
2830 | (vms_alpha_vec): Update object flags. | |
2831 | ||
2832 | * vms-tir.c: Update copyright year, fix comments, | |
2833 | add prototypes for new functions. | |
2834 | (dst_define_location): New function. | |
2835 | (dst_restore_location): New function. | |
2836 | (dst_retrieve_location): New function. | |
2837 | (dst_check_allocation): New function. | |
2838 | (image_dump): Call dst_check_allocation. | |
2839 | (image_write_b): Ditto. | |
2840 | (image_write_w): Ditto. | |
2841 | (image_write_l): Ditto. | |
2842 | (image_write_q): Ditto. | |
2843 | (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW, | |
2844 | STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC, | |
2845 | CTL_STKDL. | |
2846 | Call error handler instead of abort if name is not known. | |
2847 | (etir_sta): Add quarter_relocs argument and set it. | |
2848 | Fix cast. | |
2849 | (etir_sto): Ditto. | |
2850 | (etir_opr): Ditto, return FALSE in case of error. | |
2851 | (etir_ctl): Add quarter_relocs argument and set it, fix cast. | |
2852 | Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL. | |
2853 | (etir_stc): Add quarter_relocs argument and set it, fix cast. | |
2854 | Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA. | |
2855 | Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL. | |
2856 | Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS. | |
2857 | Return FALSE in case of error. | |
2858 | (tir_sta): Change sign of psect. | |
2859 | (tir_ctl): Ditto. | |
2860 | (tir_cmd): Fix cast. Makes tir_table static const. | |
2861 | (etir_cmd): Add quarter_relocs argument, makes etir_table const, | |
2862 | add argument to explain. | |
2863 | (analyze_etir): Initialize maxptr, add quarter_relocs | |
2864 | declaration, move some declarations into inner scopes. | |
2865 | Handle quarter_relocs and STO_IMM. | |
2866 | (_bfd_vms_slurp_tir): Use constant instead of hard-coded values. | |
2867 | (_bfd_vms_slurp_relocs): New function. | |
2868 | (_bfd_vms_decode_relocs): New function. | |
2869 | (sto_imm): Rewritten. | |
2870 | (start_first_etbt_record): New function. | |
2871 | (start_another_etbt_record): Ditto. | |
2872 | (etir_output_check): Ditto. | |
2873 | (defer_reloc_p): Ditto. | |
2874 | (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to | |
2875 | a for-loop. Correctly deals with contents, deals with .vmsdebug, | |
2876 | rewritte relocations handling. | |
2877 | (_bfd_vms_write_tbt): Removed. | |
2878 | (_bfd_vms_write_dbg): Ditto. | |
2879 | ||
2880 | * vms-misc.c: Update copyright year, Fix comments. | |
2881 | (_bfd_vms_get_header_values): Use 'size' instead of 'length'. | |
2882 | (maybe_adjust_record_pointer_for_object): New function. | |
2883 | (_bfd_vms_get_first_record): New function, replaces ... | |
2884 | (_bfd_vms_get_record): .. removed. | |
2885 | (_bfd_vms_get_object_record): New function. | |
2886 | (_bfd_vms_get_object_record): New function. | |
2887 | (vms_get_remaining_object_record): New function, replaces ... | |
2888 | (_bfd_vms_get_next_record): ... removed. | |
2889 | (add_new_contents): Removed. | |
2890 | (_bfd_save_vms_section): Removed. | |
2891 | (_bfd_get_vms_section): Removed. | |
2892 | (_bfd_vms_output_flush): Write in VAR format. | |
2893 | (new_symbol): Don't make UND section. | |
2894 | ||
2895 | * vms-hdr.c: Update copyright year, update list of record handled. | |
2896 | (_bfd_vms_slurp_hdr): rec_length renamed to rec_size. | |
2897 | (_bfd_vms_write_hdr): Strip vms and unix patches, | |
2898 | add comments, truncate module name at 31 characters, | |
2899 | use constants instead of hard-coded value, | |
2900 | write BFD version instead of a fixed string. | |
2901 | (_bfd_vms_slurp_ihd): New function. | |
2902 | (_bfd_vms_slurp_isd): Ditto. | |
2903 | (_bfd_vms_slurp_ihs): Ditto. | |
2904 | (new_module): Ditto. | |
2905 | (parse_module): Ditto | |
2906 | (build_module_list): Ditto. | |
2907 | (module_find_nearest_line): Ditto. | |
2908 | (_bfd_vms_find_nearest_dst_line): Ditto. | |
2909 | (vms_slurp_debug): Ditto. | |
2910 | (_bfd_vms_slurp_dbg): Ditto. | |
2911 | (_bfd_vms_slurp_tbt): Ditto. | |
2912 | (_bfd_vms_write_dbg): Ditto. | |
2913 | (_bfd_vms_write_tbt): Ditto. | |
2914 | ||
2915 | * vms-gsd.c: Update copyright year, update list of records handled. | |
2916 | (EVAX_LITERALS_NAME): New macro. | |
2917 | (evax_section_flags): Add an entry for EVAX_LITERALS_NAME. | |
2918 | (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd. | |
2919 | (register_universal_symbol): New function and prototype. | |
2920 | (_bfd_vms_slurp_gsd): Fix indentations and casts, | |
2921 | improve debug messages, | |
2922 | use constants instead of hard-coded value, | |
2923 | fix missing endianness conversion, | |
2924 | handle global symbol (SYMG). | |
2925 | (bfd_vms_set_section_flags): New function. | |
2926 | (_bfd_vms_write_gsd): Don't write .vmsdebug section, | |
2927 | handle section literals, | |
2928 | fix indentation, | |
2929 | handle section bfd and vms flags, | |
2930 | don't output LIB$INITIALIZE symbol, | |
2931 | fix handling of weak symbols, | |
2932 | fix evax vs vax procedure descriptor, | |
2933 | handle absolute symbols. | |
2934 | ||
2935 | * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR, | |
2936 | BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations. | |
2937 | ||
2938 | * makefile.vms (DEFS): Fix flags for VMS. | |
2939 | ||
2940 | * bfdio.c (real_fopen): Handle multiple VMS fopen attributes. | |
2941 | ||
2942 | * bfd-in2.h: Regenerated. | |
2943 | * libbfd.h: Regenerated. | |
2944 | ||
47149254 CC |
2945 | 2009-02-20 Cary Coutant <[email protected]> |
2946 | ||
2947 | * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime | |
2948 | in struct stat. | |
2949 | ||
6b1cecf3 DK |
2950 | 2009-18-02 Dave Korn <[email protected]> |
2951 | ||
2952 | PR gas/7059 | |
2953 | * coffcode.h (coff_write_object_contents): Don't let the string | |
2954 | table offset overflow the s_name field when using long section names. | |
2955 | ||
88183869 DK |
2956 | 2009-18-02 Dave Korn <[email protected]> |
2957 | ||
2958 | * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which | |
2959 | control long section name handling with ECOFF_NO_LONG_SECTION_NAMES. | |
2960 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
2961 | * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which | |
2962 | control long section name handling with XCOFF_NO_LONG_SECTION_NAMES. | |
2963 | (bfd_pmac_xcoff_backend_data): Likewise. | |
2964 | * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise. | |
2965 | (bfd_xcoff_aix5_backend_data): Likewise. | |
2966 | (xcoff64_write_object_contents): Delete unused long_section_names | |
2967 | local variable. | |
2968 | * coff-sh.c (bfd_coff_small_swap_table): Initialise long section | |
2969 | name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire | |
2970 | struct non-const. | |
2971 | * coffcode.h (documentation): Update to describe long section names. | |
2972 | (COFFLONGSECTIONCATHELPER): New helper macro. | |
2973 | (BLANKOR1TOODD): Likewise. | |
2974 | (COFF_ENABLE_LONG_SECTION_NAMES): Likewise. | |
2975 | (COFF_LONG_SECTION_NAMES_SETTER): Likewise. | |
2976 | (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise. | |
2977 | (bfd_coff_set_long_section_names_allowed): New function. | |
2978 | (bfd_coff_set_long_section_names_disallowed): Likewise. | |
2979 | (struct bfd_coff_backend_data): Add new backend hook function | |
2980 | pointer _bfd_coff_set_long_section_names. | |
2981 | (bfd_coff_set_long_section_names): New backend hook. | |
2982 | (coff_write_object_contents): Only generate long section names if | |
2983 | bfd_coff_long_section_names() indicates they are currently enabled. | |
2984 | (bfd_coff_std_swap_table): Make non-const, and initialise long | |
2985 | section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
2986 | (ticoff0_swap_table): Likewise to both. | |
2987 | (ticoff1_swap_table): Again, likewise to both. | |
2988 | * coffgen.c (make_a_section_from_file): Allow long section names | |
2989 | as inputs even if not currently allowed for outputs. | |
2990 | * ecoff.c (_bfd_ecoff_no_long_sections): New function. | |
2991 | * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank. | |
2992 | * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2993 | * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2994 | * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2995 | * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2996 | * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2997 | * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2998 | * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
2999 | * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
3000 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise. | |
3001 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise. | |
3002 | * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise. | |
3003 | * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise. | |
3004 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise. | |
3005 | * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise. | |
3006 | * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
3007 | * libcoff-in.h: Update copyright year to cause updated copyright | |
3008 | year in generated libcoff.h, and fix typo. | |
3009 | * libcoff.h: Regenerated. | |
3010 | * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro. | |
3011 | (_bfd_ecoff_no_long_sections): Add prototype. | |
3012 | * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro. | |
3013 | * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already | |
3014 | defined by an including .c file. | |
3015 | * ticoff.h (ticoff0_swap_table): Make non-const, and initialise | |
3016 | long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
3017 | (ticoff1_swap_table): Likewise to both. | |
3018 | ||
90d8a22c CL |
3019 | 2009-02-18 Christophe Lyon <[email protected]> |
3020 | ||
3021 | * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic | |
3022 | stub. Catch default case error. | |
3023 | (arm_map_one_stub): Add missing Thumb mapping symbol. | |
3024 | ||
12123067 NC |
3025 | 2009-02-18 Bjoern Haase <[email protected]> |
3026 | ||
3027 | PR 9841 | |
3028 | * elf32-avr.c: Handle case where no local symbos exist correctly. | |
3029 | ||
fea2b4d6 CL |
3030 | 2009-02-16 Christophe Lyon <[email protected]> |
3031 | ||
3032 | bfd/ | |
3033 | * elf32-arm.c (arm_long_branch_stub, | |
3034 | arm_thumb_v4t_long_branch_stub, | |
3035 | arm_thumb_thumb_long_branch_stub, | |
3036 | arm_thumb_arm_v4t_long_branch_stub, | |
3037 | arm_thumb_arm_v4t_short_branch_stub, | |
3038 | arm_pic_long_branch_stub): | |
3039 | Renamed to elf32_arm_stub_long_branch_any_any, | |
3040 | elf32_arm_stub_long_branch_v4t_arm_thumb, | |
3041 | elf32_arm_stub_long_branch_thumb_only, | |
3042 | elf32_arm_stub_long_branch_v4t_thumb_arm, | |
3043 | elf32_arm_stub_short_branch_v4t_thumb_arm, | |
3044 | elf32_arm_stub_long_branch_any_any_pic. | |
3045 | (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch, | |
3046 | arm_thumb_thumb_stub_long_branch, | |
3047 | arm_thumb_arm_v4t_stub_long_branch, | |
3048 | arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch): | |
3049 | Renamed to arm_stub_long_branch_any_any, | |
3050 | arm_stub_long_branch_v4t_arm_thumb, | |
3051 | arm_stub_long_branch_thumb_only, | |
3052 | arm_stub_long_branch_v4t_thumb_arm, | |
3053 | arm_stub_short_branch_v4t_thumb_arm, | |
3054 | arm_stub_long_branch_any_any_pic. | |
3055 | ||
13e0a874 DA |
3056 | 2009-02-15 John David Anglin <[email protected]> |
3057 | ||
3058 | * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used | |
3059 | in branch offset check. | |
3060 | ||
3a71aa26 AM |
3061 | 2009-02-15 Alan Modra <[email protected]> |
3062 | ||
3063 | * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, | |
3064 | add toc.symndx and toc.add. | |
3065 | (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. | |
3066 | Set up toc.add. | |
3067 | (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all | |
3068 | callers. | |
3069 | (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. | |
3070 | (branch_reloc_hash_match): New function, extracted from.. | |
3071 | (ppc64_elf_tls_optimize): ..here. | |
3072 | (ppc64_elf_relocate_section): Properly set addends when optimizing | |
3073 | tls sequences. Avoid unnecessary reading and writing of insns. | |
3074 | Only redo reloc when symbol changed. Bypass symbol checks when | |
3075 | using tlsld_got. | |
3076 | * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. | |
3077 | (branch_reloc_hash_match): New function, extracted from.. | |
3078 | (ppc_elf_tls_optimize): ..here. | |
3079 | (ppc_elf_relocate_section): Avoid unnecessary reading of insns. | |
3080 | Don't clear addend on zapped __tls_get_addr reloc. | |
3081 | ||
2c2b4ed4 NC |
3082 | 2009-02-12 Nick Clifton <[email protected]> |
3083 | ||
3084 | PR 9827 | |
3085 | * elflink.c (bfd_elf_final_link): When counting the relocations, | |
3086 | if the header size has not been set yet then assume that it will | |
3087 | match the output section's reloc type. | |
3088 | ||
453f5985 NS |
3089 | 2009-02-12 Nathan Sidwell <[email protected]> |
3090 | ||
3091 | * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for | |
3092 | relocatable link. | |
3093 | ||
3209bffa AM |
3094 | 2009-02-09 Alan Modra <[email protected]> |
3095 | ||
3096 | * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. | |
3097 | (find_function): Likewise. | |
3098 | (pasted_function): Don't error if no prior function found. | |
3099 | (discover_functions): Revert 2008-12-10 change. Extend first | |
3100 | function range to start of section. | |
3101 | ||
813c8a3c DA |
3102 | 2009-02-08 John David Anglin <[email protected]> |
3103 | ||
3104 | * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert | |
3105 | functions to C90. | |
3106 | * elf64-hppa.h: Likewise. | |
3107 | ||
2d0f9ad9 JM |
3108 | 2009-02-06 Joseph Myers <[email protected]> |
3109 | ||
3110 | * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special | |
3111 | .sbss handling. | |
3112 | ||
50e00962 AM |
3113 | 2009-02-04 Alan Modra <[email protected]> |
3114 | ||
3115 | * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize. | |
3116 | Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*. | |
3117 | ||
52b6b6b9 JM |
3118 | 2009-02-03 Sandip Matte <[email protected]> |
3119 | ||
3120 | * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. | |
3121 | * archures.c (bfd_mach_mips_xlr): Define. | |
3122 | * bfd-in2.h: Regenerate. | |
3123 | * cpu-mips.c (I_xlr): Define. | |
3124 | (arch_info_struct): Add XLR entry. | |
3125 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. | |
3126 | (mips_set_isa_flags): Handle bfd_mach_mips_xlr | |
3127 | (mips_mach_extensions): Add XLR entry. | |
3128 | ||
654c3c9f EW |
3129 | 2009-02-03 Eric B. Weddington <[email protected]> |
3130 | ||
3131 | * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound. | |
3132 | ||
31dd3154 JM |
3133 | 2009-02-03 Carlos O'Donell <[email protected]> |
3134 | ||
3135 | * configure.in: AC_SUBST pdfdir. | |
d1fa68d3 | 3136 | * Makefile.am: Add install-pdf, install-pdf-am |
31dd3154 JM |
3137 | and install-pdf-recursive targets. Define pdfdir. |
3138 | * doc/Makefile.am: Define pdf__strip_dir. Add | |
3139 | install-pdf and install-pdf-am targets. | |
d1fa68d3 | 3140 | * po/Make-in: Add install-pdf target. |
31dd3154 JM |
3141 | * configure: Regenerate. |
3142 | * Makefile.in: Regenerate | |
3143 | * doc/Makefile.in: Regenerate. | |
3144 | ||
cf869cce NC |
3145 | 2009-02-03 Maxim Kuvyrkov <[email protected]> |
3146 | ||
3147 | * bfd-in2.h: Regenerate. | |
3148 | * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and | |
3149 | fields from n_entries to n_slots where appropriate, update comments. | |
3150 | (HOWTO): Add TLS relocations. | |
3151 | (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*. | |
3152 | (enum elf_m68k_got_offset_size): New enum. | |
3153 | (struct elf_m68k_got_entry.type): Move field to ... | |
3154 | (struct elf_m68k_got_entry_key): ... here. Update all uses. | |
3155 | (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static | |
3156 | functions. | |
3157 | (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static | |
3158 | functions. | |
3159 | (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries | |
3160 | fields into n_entries array. Update comments. | |
3161 | (elf_m68k_init_got): Simplify, update all uses. | |
3162 | (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update. | |
3163 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot | |
3164 | GOT entries; update name, update all uses. | |
3165 | (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto. | |
3166 | (elf_m68k_get_got_entry): Update. | |
3167 | (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries, | |
3168 | simplify. | |
3169 | (elf_m68k_remove_got_entry_type): Simplify. | |
3170 | (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update. | |
3171 | (elf_m68k_can_merge_gots): Update. | |
3172 | (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update. | |
3173 | (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot | |
3174 | GOT entries, simplify. | |
3175 | (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same. | |
3176 | (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff | |
3177 | field, remove obsoleted local_n_entries field. | |
3178 | (elf_m68k_partition_multi_got_2): New static function. | |
3179 | (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it; | |
3180 | update. | |
3181 | (elf_m68k_remove_got_entry_type): Update. | |
3182 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
d1fa68d3 | 3183 | (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary |
cf869cce NC |
3184 | update of sgot->size and srelgot->size. |
3185 | (elf_m68k_gc_sweep_hook): Update. | |
3186 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
3187 | (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle | |
3188 | TLS relocations. | |
3189 | * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations. | |
3190 | * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*. | |
3191 | ||
c1a0a41f DD |
3192 | 2009-02-02 DJ Delorie <[email protected]> |
3193 | ||
3194 | * elf32-mep.c (config_names): Regenerate configuration. | |
3195 | ||
72a80a16 AM |
3196 | 2009-02-02 Alan Modra <[email protected]> |
3197 | ||
3198 | * elf-bfd.h (bfd_elf_get_str_section): Don't declare. | |
3199 | (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise. | |
3200 | * elf.c (bfd_elf_get_str_section): Make static. | |
3201 | (bfd_elf_find_section): Delete. | |
3202 | * libbfd.h: Regenerate. | |
3203 | ||
273f4430 JK |
3204 | 2009-02-01 Jan Kratochvil <[email protected]> |
3205 | ||
3206 | * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove. | |
3207 | (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs. | |
3208 | ||
010e5ae2 AM |
3209 | 2009-01-31 Alan Modra <[email protected]> |
3210 | ||
3211 | * elflink.c (on_needed_list): New function. | |
3212 | (elf_link_add_object_symbols): Link in --as-needed libs if they | |
3213 | satisfy undefined symbols in other libs. | |
3214 | ||
33a7ffc2 JM |
3215 | 2009-01-30 Julian Brown <[email protected]> |
3216 | ||
3217 | * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with | |
3218 | EXEC_P or DYNAMIC flags, and skip sections which are being linked | |
3219 | with --just-symbols (-R). | |
3220 | ||
13d72a14 AN |
3221 | 2009-01-29 Adam Nemet <[email protected]> |
3222 | ||
3223 | * dwarf2.c (read_rangelist): Use read_address to read low_pc and | |
3224 | high_pc in order to properly sign-extend VMAs. | |
3225 | ||
d334575b | 3226 | 2009-01-29 Daniel Jacobowitz <[email protected]> |
d1fa68d3 AS |
3227 | Mark Shinwell <[email protected]> |
3228 | Catherine Moore <[email protected]> | |
d334575b JM |
3229 | |
3230 | * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments. | |
3231 | ||
528aeb62 CM |
3232 | 2009-01-28 Catherine Moore <[email protected]> |
3233 | ||
3234 | * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and | |
3235 | SEC_LOAD for dynamic relocation sections. | |
3236 | ||
f6f05983 HPN |
3237 | 2009-01-27 Hans-Peter Nilsson <[email protected]> |
3238 | ||
3239 | * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table | |
3240 | (info)->tls_size, not elf_hash_table (info)->tls_sec->size for | |
3241 | the size of local TLS data. | |
3242 | ||
27cc28f9 AS |
3243 | 2009-01-27 Andreas Schwab <[email protected]> |
3244 | ||
3245 | * mach-o.c (bfd_mach_o_archive_p): Restrict the number of | |
3246 | architectures in the archive. | |
3247 | ||
b3bf42d8 HPN |
3248 | 2009-01-27 Hans-Peter Nilsson <[email protected]> |
3249 | ||
f551b6f0 HPN |
3250 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL> |
3251 | <R_CRIS_32_DTPREL>: Correct relocation value. | |
3252 | ||
b3bf42d8 HPN |
3253 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8> |
3254 | <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined | |
3255 | symbols with non-default visibility. | |
3256 | ||
9bc4e62b NS |
3257 | 2009-01-26 Nathan Sidwell <[email protected]> |
3258 | ||
3259 | * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs | |
3260 | describing the trampolines. | |
3261 | (ppc_elf_relocate_section): Update relocs to describe the | |
3262 | trampolines. | |
3263 | ||
aeaf6540 DA |
3264 | 2009-01-25 John David Anglin <[email protected]> |
3265 | ||
3266 | * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that | |
3267 | branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F | |
3268 | and R_PARISC_PCREL12F relocations. | |
3269 | ||
1e8fa21e AM |
3270 | 2009-01-24 Alan Modra <[email protected]> |
3271 | ||
3272 | PR 6022 | |
3273 | * elflink.c (find_version_for_sym): New function split out from, | |
3274 | but without export_dynamic test, .. | |
3275 | (_bfd_elf_link_assign_sym_version): ..here. | |
3276 | (_bfd_elf_export_symbol): Use it. | |
3277 | ||
28caa186 AM |
3278 | 2009-01-23 Alan Modra <[email protected]> |
3279 | ||
3280 | * elf-bfd.h (struct elf_assign_sym_version_info): Delete. | |
3281 | (struct elf_info_failed, struct elf_find_verdep_info): Move to.. | |
3282 | * elflink.c: ..here, somewhat modified. | |
3283 | * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol, | |
3284 | _bfd_elf_link_find_version_dependencies, | |
3285 | _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section, | |
3286 | _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, | |
3287 | _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't | |
3288 | declare.. | |
3289 | * elflink.c: ..and make static here. | |
3290 | (_bfd_elf_link_find_version_dependencies): Adjust for removal | |
3291 | of output_bfd from struct elf_find_verdep_info. | |
3292 | (_bfd_elf_link_assign_sym_version): Similarly adjust to use | |
3293 | struct elf_info_failed. | |
3294 | (bfd_elf_size_dynamic_sections): Adjust. | |
3295 | ||
be04437d AM |
3296 | 2009-01-22 Alan Modra <[email protected]> |
3297 | ||
3298 | PR 6832 | |
3299 | * dwarf2.c (find_line): Don't update stash->sec_info_ptr until | |
3300 | after comp_unit_find_line call. | |
3301 | ||
58f9615c NC |
3302 | 2009-01-21 Nick Clifton <[email protected]> |
3303 | ||
3304 | PR 9769 | |
3305 | * vmsutil.c (vms_file_stats_name): Remove use of unsupported | |
3306 | tm_gmtoff field in struct tm. | |
3307 | ||
fb266b8b AM |
3308 | 2009-01-21 Alan Modra <[email protected]> |
3309 | ||
3310 | * elf32-spu.h (struct spu_elf_params): Add non_ia_text. | |
3311 | * elf32-spu.c (mark_overlay_section): Only include .text.ia.* | |
3312 | sections in soft-icache lines unless non_ia_text. Don't add | |
3313 | rodata if doing so would exceed line size. | |
3314 | ||
451ffe63 HPN |
3315 | 2009-01-19 Hans-Peter Nilsson <[email protected]> |
3316 | ||
3317 | * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol | |
3318 | types than bfd_link_hash_indirect, before early return, call | |
3319 | _bfd_elf_link_hash_copy_indirect. | |
3320 | ||
5aa6ff7c AS |
3321 | 2009-01-19 Andrew Stubbs <[email protected]> |
3322 | ||
3323 | * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. | |
3324 | * elf-bfd.h (elf_backend_data): Add obj_attrs_order. | |
3325 | * elf32-arm.c (elf32_arm_obj_attrs_order): New function. | |
3326 | (elf_backend_obj_attrs_order): New define. | |
3327 | * elfxx-target.h (elf_backend_obj_attrs_order): New define. | |
3328 | (elfNN_bed): Add elf_backend_obj_attrs_order. | |
3329 | ||
3483fe2e AS |
3330 | 2009-01-19 Andrew Stubbs <[email protected]> |
3331 | ||
3332 | * elf-attrs.c (is_default_attr): Substitute magic numbers with macros. | |
3333 | (obj_attr_size): Likewise. | |
3334 | (write_obj_attribute): Likewise. | |
3335 | (_bfd_elf_copy_obj_attributes): Likewise. | |
3336 | (_bfd_elf_parse_attributes): Likewise. | |
3337 | * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define. | |
3338 | (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines. | |
3339 | (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines. | |
3340 | (ATTR_TYPE_HAS_NO_DEFAULT): New define. | |
3341 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers | |
3342 | with macros. | |
3343 | ||
2d0bb761 AS |
3344 | 2009-01-19 Andrew Stubbs <[email protected]> |
3345 | ||
3346 | * elf-attrs.c (is_default_attr): Support defaultless attributes. | |
3347 | (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. | |
3348 | (bfd_elf_add_obj_attr_string): Likewise. | |
3349 | (bfd_elf_add_obj_attr_int_string): Likewise. | |
3350 | (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. | |
3351 | * elf-bfd.h (struct obj_attribute): Document new flag bit. | |
3352 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that | |
3353 | Tag_nodefaults has no default value. | |
3354 | (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults | |
3355 | comment to reflect the new state. | |
3356 | ||
a77e83b7 AM |
3357 | 2009-01-19 Alan Modra <[email protected]> |
3358 | ||
3359 | PR 9695 | |
3360 | * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC. | |
3361 | (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC. | |
3362 | (adjust_z_magix): Delete dead code handling QMAGIC. | |
3363 | ||
f6d29e26 KT |
3364 | 2009-01-16 Kai Tietz <[email protected]> |
3365 | ||
3366 | * coffcode.h (styp_to_sec_flags): Correct interpretation of | |
3367 | IMAGE_SCN_MEM_DISCARDABLE. | |
3368 | ||
29670fb9 AM |
3369 | 2009-01-16 Alan Modra <[email protected]> |
3370 | ||
3371 | * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute | |
3372 | SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. | |
3373 | * configure.in (commonbfdlib): Delete. | |
3374 | (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ | |
3375 | (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such | |
3376 | is available, not just for linux. | |
3377 | * po/SRC-POTFILES.in: Regenerate. | |
3378 | * Makefile.in: Regenerate. | |
3379 | * configure: Regenerate. | |
3380 | ||
91e22acd AS |
3381 | 2009-01-15 Andrew Stubbs <[email protected]> |
3382 | Julian Brown <[email protected]> | |
3383 | ||
3384 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known | |
3385 | ARM attributes in ABI 2.07. | |
3386 | * elf32-arm.c (get_secondary_compatible_arch): New function. | |
3387 | (set_secondary_compatible_arch): New function. | |
3388 | (tag_cpu_arch_combine): New function. | |
3389 | (elf32_arm_copy_one_eabi_other_attribute): Delete function. | |
3390 | (elf32_arm_copy_eabi_other_attribute_list): Delete function. | |
3391 | (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to | |
3392 | make it fit with order_01243. | |
3393 | Add support for Tag_also_compatible_with, | |
3394 | Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, | |
3395 | Tag_MPextension_use, Tag_nodefaults and Tag_conformance. | |
3396 | Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, | |
3397 | Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, | |
3398 | Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, | |
3399 | Tag_VFP_arch and Tag_ABI_FP_16bit_format. | |
3400 | Rework the way unknown attributes are handled. | |
3401 | Defer errors until all attributes have been processed. | |
3402 | ||
7b86a9fa AS |
3403 | 2009-01-15 Andrew Stubbs <[email protected]> |
3404 | ||
3405 | * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to | |
3406 | bfd_elf_add_obj_attr_int_string. | |
3407 | Read Tag_compatibility from its new location in the attribute array, | |
3408 | rather than the attribute list. | |
3409 | (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat -> | |
3410 | bfd_elf_add_obj_attr_int_string. | |
3411 | (_bfd_elf_parse_attributes): Likewise. | |
3412 | (_bfd_elf_merge_object_attributes): There's now only one | |
3413 | Tag_compatibility, and it's in the array, not the list. | |
3414 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include | |
3415 | Tag_compatibility. | |
3416 | (bfd_elf_add_obj_attr_compat): Rename to | |
3417 | bfd_elf_add_obj_attr_int_string. | |
3418 | (bfd_elf_add_proc_attr_compat): Rename to | |
3419 | bfd_elf_add_proc_attr_int_string. | |
3420 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle | |
3421 | Tag_compatibility. | |
3422 | ||
01e1a5bc NC |
3423 | 2009-01-15 Douglas B Rupp <[email protected]> |
3424 | ||
3425 | * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo | |
3426 | (BFD32_BACKENDS_CFILES): Add new file vmsutil.c | |
3427 | (vmsutil.lo): Add dependency rule. | |
3428 | * Makefile.in: Regenerate. | |
3429 | * config.bfd (ia64*-*-*vms*): Add case. | |
3430 | * configure.in (bfd_elf64_ia64_vms_vec): Add case. | |
3431 | * configure: Regenerate. | |
3432 | * vmsutil.c: New file. | |
3433 | * vmsutil.h: New file. | |
3434 | * elf-bfd.h (struct bfd_elf_special_section): Change type of | |
3435 | attr to bfd_vma. | |
3436 | * elfxx-ia64.c (elfNN_vms_post_process_headers, | |
3437 | elfNN_vms_section_processing, elfNN_vms_final_write_processing, | |
3438 | elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, | |
3439 | elfNN_vms_object_p): New functions | |
3440 | * targets.c (bfd_elf64_ia64_vms_vec): New target. | |
3441 | ||
a33dafc3 L |
3442 | 2009-01-14 H.J. Lu <[email protected]> |
3443 | ||
3444 | PR ld/9727 | |
3445 | * elflink.c (elf_gc_sweep): Exclude the group section if the | |
3446 | first member of the section group is excluded. | |
3447 | ||
13c0e967 AM |
3448 | 2009-01-14 Alan Modra <[email protected]> |
3449 | ||
3450 | PR 9735 | |
3451 | * syms.c (_bfd_stab_section_find_nearest_line): Don't free | |
3452 | saved filename, use bfd_alloc rather than bfd_malloc for it. | |
3453 | ||
460e679b AM |
3454 | 2009-01-13 Alan Modra <[email protected]> |
3455 | ||
3456 | * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. | |
3457 | ||
25076afa AM |
3458 | 2009-01-13 Alan Modra <[email protected]> |
3459 | ||
3460 | * elf32-spu.c (remove_cycles): Always set call->max_depth. | |
3461 | ||
37107878 AM |
3462 | 2009-01-12 Alan Modra <[email protected]> |
3463 | ||
3464 | * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. | |
3465 | ||
cd4a7468 AM |
3466 | 2009-01-12 Alan Modra <[email protected]> |
3467 | ||
3468 | * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, | |
3469 | num_lines_log2. | |
3470 | (struct got_entry): Add br_addr. | |
3471 | (struct call_info): Add priority. | |
3472 | (struct function_info): Add lr_store and sp_adjust. | |
3473 | (spu_elf_setup): Init line_size_log2 and num_lines_log2. | |
3474 | (spu_elf_find_overlays): For soft-icache, mark any section within cache | |
3475 | area as an overlay, and check that no other overlays exist. Look up | |
3476 | icache overlay manager entry sym. | |
3477 | (BRA_STUBS, BRA, BRASL): Define. | |
3478 | (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub. | |
3479 | (needs_ovl_stub): Adjust for soft-icache. Return priority encoded | |
3480 | in branch insn. | |
3481 | (count_stub, build_stub): Support soft-icache. | |
3482 | (build_spuear_stubs, process_stubs): Adjust build_stub call. | |
3483 | (spu_elf_size_stubs): Size soft-icache stubs. | |
3484 | (overlay_index): New function. | |
3485 | (spu_elf_build_stubs): Make static. Support soft-icache. | |
3486 | (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache. | |
3487 | (find_function_stack_adjust): Save lr store and stack adjust insn | |
3488 | offsets. | |
3489 | (maybe_insert_function): Adjust find_function_stack_adjust call. | |
3490 | (mark_functions_via_relocs): Retrieve priority. | |
3491 | (remove_cycles): Only warn about pruned arcs when stack_analysis. | |
3492 | (sort_calls): Sort by priority first. | |
3493 | (mark_overlay_section): Ignore .ovl.init. | |
3494 | (sum_stack): Only print when stack_analysis. | |
3495 | (print_one_overlay_section): New function, extracted from.. | |
3496 | (spu_elf_auto_overlay): ..here. Support soft-icache overlays. | |
3497 | (spu_elf_stack_analysis): Only print when htab->stack_analysis. | |
3498 | (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive | |
3499 | analysis. Call spu_elf_build_stubs. | |
3500 | (spu_elf_relocate_section): For soft-icache encode overlay index | |
3501 | into addresses. | |
3502 | (spu_elf_output_symbol_hook): Support soft-icache. | |
3503 | (spu_elf_modify_program_headers: Likewise. | |
37107878 | 3504 | |
cd4a7468 AM |
3505 | * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename |
3506 | num_regions to num_lines. Add line_size and max_branch. | |
3507 | (enum _ovly_flavour): Add ovly_soft_icache. | |
3508 | (spu_elf_build_stubs): Delete. | |
3509 | ||
80c29487 JK |
3510 | 2009-01-11 Jan Kratochvil <[email protected]> |
3511 | ||
3512 | * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4 | |
3513 | relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'. | |
3514 | ||
1bc86aea HPN |
3515 | 2009-01-07 Hans-Peter Nilsson <[email protected]> |
3516 | ||
3517 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> | |
3518 | <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in | |
3519 | the program, the known offset starts at the negative size of the | |
3520 | TLS section. | |
3521 | <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: | |
3522 | Similar. | |
3523 | ||
3baa454d | 3524 | 2009-01-05 Joel Sherrill <[email protected]> |
75606e85 | 3525 | |
3baa454d | 3526 | * config.bfd: Add lm32-*-rtems*. |
75606e85 | 3527 | |
9dbe8890 L |
3528 | 2009-01-03 H.J. Lu <[email protected]> |
3529 | ||
3530 | * coff-ppc.c: Add 2009 to Copyright. | |
3531 | * elf32-cris.c: Likewise. | |
3532 | * elflink.c: Likewise. | |
3533 | ||
0bdf8d40 HPN |
3534 | 2009-01-03 Hans-Peter Nilsson <[email protected]> |
3535 | ||
3536 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename | |
3537 | gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry. | |
3538 | ||
54ac0771 L |
3539 | 2009-01-02 H.J. Lu <[email protected]> |
3540 | ||
3541 | PR ld/9679 | |
3542 | * elflink.c (elf_merge_st_other): New. | |
3543 | (_bfd_elf_merge_symbol): Use it on skipped weak definitions and | |
3544 | hide them if needed. | |
3545 | (elf_link_add_object_symbols): Updated. | |
3546 | ||
d8880531 L |
3547 | 2009-01-02 H.J. Lu <[email protected]> |
3548 | ||
3549 | PR ld/9676 | |
3550 | * elflink.c (elf_link_add_object_symbols): Update def_dynamic, | |
3551 | ref_dynamic and dynamic_def fields when setting def_regular | |
3552 | to 1. | |
3553 | ||
b70b5c14 NC |
3554 | 2009-01-02 Curtis Mackie <[email protected]> |
3555 | ||
3556 | PR 9682 | |
3557 | * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string | |
3558 | literal. | |
3559 | ||
d8880531 | 3560 | For older changes see ChangeLog-2008 |
56882138 AM |
3561 | \f |
3562 | Local Variables: | |
3563 | mode: change-log | |
3564 | left-margin: 8 | |
3565 | fill-column: 74 | |
3566 | version-control: never | |
3567 | End: |