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