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