]>
Commit | Line | Data |
---|---|---|
588f62fc AM |
1 | 2009-03-16 Alan Modra <[email protected]> |
2 | ||
3 | * simple.c (bfd_simple_get_relocated_section_contents): Use larger | |
4 | of rawsize and size for buffer. | |
5 | ||
a14c90c1 UW |
6 | 2009-03-15 Ulrich Weigand <[email protected]> |
7 | ||
8 | * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay | |
9 | parameter just because fixed sections fit into local store. | |
10 | (spu_elf_auto_overlay): Do not declare as "noreturn". Skip | |
11 | generating overlays if fixed sections plus reserved stack | |
12 | and heap space fit into local store. | |
13 | ||
30c665df AM |
14 | 2009-03-15 Alan Modra <[email protected]> |
15 | ||
16 | * elf32-spu.c (build_stub): Correct icache set_id. | |
17 | (spu_elf_relocate_section): Likewise. | |
18 | ||
f95942a3 RS |
19 | 2009-03-14 Richard Sandiford <[email protected]> |
20 | ||
21 | * xcofflink.c (xcoff_link_check_archive_element): Only free the | |
22 | symbol table if it was created by the current call. | |
23 | ||
670562e9 RS |
24 | 2009-03-14 Richard Sandiford <[email protected]> |
25 | ||
26 | * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors | |
27 | class XMC_DS rather than XMC_UA. | |
28 | ||
b64232cc RS |
29 | 2009-03-14 Richard Sandiford <[email protected]> |
30 | ||
31 | * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the | |
32 | bfd_boolean export_defineds parameter with an unsigned int | |
33 | auto_export_flags parameter. | |
34 | * bfd-in2.h: Regenerate. | |
35 | * xcofflink.c (xcoff_archive_contains_shared_object_p): New function, | |
36 | split out from xcoff_build_ldsyms. | |
37 | (xcoff_covered_by_expall_p): New function. | |
38 | (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms | |
39 | but with extra code to handle -bexpfull and -bexpall. | |
40 | (xcoff_mark_auto_exports): New function. | |
41 | (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether | |
42 | a function should be automatically exported. | |
43 | (bfd_xcoff_size_dynamic_sections): Replace the export_defineds | |
44 | parameter with an auto_export_flags parameter. Update ldinfo | |
45 | accordingly. Use xcoff_mark_auto_exports to mark all automatically- | |
46 | exported symbols. | |
47 | ||
7d504122 RS |
48 | 2009-03-14 Richard Sandiford <[email protected]> |
49 | ||
50 | * xcofflink.c (xcoff_mark_symbol_by_name): New function. | |
51 | (bfd_xcoff_size_dynamic_sections): Use it to mark the entry, | |
52 | init and fini functions. Do garbage collection for objects | |
53 | without an entry point too. | |
54 | ||
8602d4fe RS |
55 | 2009-03-14 Richard Sandiford <[email protected]> |
56 | ||
57 | * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to | |
58 | check whether a symbol has csect information. | |
59 | (coff_print_aux): Likewise. | |
60 | * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect | |
61 | information for C_AIX_WEAKEXT too. | |
62 | (_bfd_xcoff_swap_aux_out): Likewise. | |
63 | (xcoff_reloc_type_br): Handle defweak symbols too. | |
64 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect | |
65 | information for C_AIX_WEAKEXT too. | |
66 | (_bfd_xcoff64_swap_aux_out): Likewise. | |
67 | (xcoff64_reloc_type_br): Handle defweak symbols too. | |
68 | * coffgen.c (coff_print_symbol): Handle auxillary function | |
69 | information for C_AIX_WEAKEXT too. | |
70 | * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK | |
71 | instead of BSF_GLOBAL if the L_WEAK flag is set. | |
72 | (xcoff_dynamic_definition_p): New function. | |
73 | (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym | |
74 | defines h. Don't change h if ldsym isn't the definition. Otherwise, | |
75 | always take the symbol class from the ldsym. Use weak bfd symbol | |
76 | types for weak ldsyms. | |
77 | (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P. | |
78 | Fix the check for whether a definition is from a shared object. | |
79 | Allow redefinitions of weak symbols. | |
80 | (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P. | |
81 | (xcoff_keep_symbol_p): Likewise. | |
82 | (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P. | |
83 | (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P. | |
84 | Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols, | |
85 | but mark them as L_WEAK. | |
86 | (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT | |
87 | instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT. | |
88 | ||
5b49f6dc RS |
89 | 2009-03-14 Richard Sandiford <[email protected]> |
90 | ||
91 | * xcofflink.c (xcoff_mark): When walking the relocations, | |
92 | only mark the target symbol or the target section, not both. | |
93 | (xcoff_final_definition_p): New function. | |
94 | (xcoff_keep_symbol_p): Use it to check whether an external XCOFF | |
95 | symbol is a valid definition of the associated output symbol. | |
96 | Use XCOFF_ALLOCATED to stop the same hash table entry having | |
97 | two output symbols. | |
98 | (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when | |
99 | keeping a symbol. | |
100 | (xcoff_link_input_bfd): Use xcoff_final_definition_p. | |
101 | ||
c4037431 RS |
102 | 2009-03-14 Richard Sandiford <[email protected]> |
103 | ||
104 | * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute | |
105 | symbols as XMC_XO. | |
106 | ||
3df13c4a RS |
107 | 2009-03-14 Richard Sandiford <[email protected]> |
108 | ||
109 | * libcoff-in.h (xcoff_tdata): Add a lineno_counts field. | |
110 | * libcoff.h: Regenerate. | |
111 | * xcofflink.c (xcoff_link_add_symbols): Record per-symbol | |
112 | line-number counts in the bfd's lineno_counts field. | |
113 | Don't keep per-csect line-number counts. | |
114 | (xcoff_sweep): Don't update per-csect line-number counts. | |
115 | (bfd_xcoff_size_dynamic_sections): Count the number of line-number | |
116 | entries in each output section. | |
117 | (xcoff_link_input_bfd): Get the number of line numbers from | |
118 | the bfd's lineno_counts field, rather than recalculating it | |
119 | from scratch. Fix the range check when updating C_BINCL and | |
120 | C_EINCL symbols. | |
121 | (_bfd_xcoff_bfd_final_link): Don't count the output line numbers | |
122 | here. Don't expect csects to have line-number counts. | |
123 | ||
e450936a RS |
124 | 2009-03-14 Richard Sandiford <[email protected]> |
125 | ||
126 | * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long. | |
127 | * libcoff.h: Regenerate. | |
128 | * xcofflink.c (xcoff_keep_symbol_p): New function, using the | |
129 | "skip" logic from xcoff_link_input_bfd. | |
130 | (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic | |
131 | objects in a dynamic link, rather than checking whether csectpp | |
132 | is null. Always allocate debug_index for other objects, | |
133 | and always go through the loop. Update the type of debug_index | |
134 | after the change above. Read the auxillary csect information | |
135 | and use xcoff_keep_symbol_p to decide whether a symbol should | |
136 | be kept. Set its debug_index to -2 if not. | |
137 | (xcoff_link_input_bfd): Update the type of debug_index after | |
138 | the change above and always expect it to be nonnull. Use it to | |
139 | test whether a symbol should be stripped, rather than making the | |
140 | decision here. Postpone all symbol creation to the second pass. | |
141 | ||
47dfb2ca RS |
142 | 2009-03-14 Richard Sandiford <[email protected]> |
143 | ||
144 | * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when | |
145 | creating a descriptor. | |
146 | (xcoff_sweep): Don't mark toc_section unless it's needed. | |
147 | (bfd_xcoff_size_dynamic_sections): Skip the toc_section | |
148 | when marking every bfd. | |
149 | (xcoff_link_input_bfd): Skip all TOC anchors. | |
150 | (xcoff_toc_section_p, xcoff_find_tc0): New functions. | |
151 | (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor | |
152 | to -1; call xcoff_find_tc0 instead. | |
153 | ||
4cc02a02 RS |
154 | 2009-03-14 Richard Sandiford <[email protected]> |
155 | ||
156 | * libcoff-in.h (xcoff_section_tdata): Update commentary. | |
157 | * libcoff.h: Regenerate. | |
158 | * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER | |
159 | symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than | |
160 | the previous symbol's csect. Treat last_symndx as an inclusive value | |
161 | and simplify its handling. | |
162 | (xcoff_mark): Treat last_symndx as an inclusive value. Only mark | |
163 | symbols with the right csect. Don't mark rsec when processing | |
164 | relocations against undefined or absolute sections. | |
165 | (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag | |
166 | of bfd_und_section_ptr. | |
167 | (xcoff_link_input_bfd): Likewise. | |
168 | ||
858ef0ce RS |
169 | 2009-03-14 Richard Sandiford <[email protected]> |
170 | ||
171 | * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations | |
172 | against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED | |
173 | flag is set. Assert that all undefined symbols are either | |
174 | imported or defined by a dynamic object. | |
175 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise. | |
176 | * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol | |
177 | handling to all relocations. Only set XCOFF_CALLED for function | |
178 | symbols. | |
179 | (xcoff_find_function): New function, split out from... | |
180 | (bfd_xcoff_export_symbol) ...here. | |
181 | (xcoff_set_import_path): New function, split out from... | |
182 | (bfd_xcoff_import_symbol): ...here. Remove assertion for old | |
183 | meaning of XCOFF_CALLED. | |
184 | (xcoff_mark_symbol): If we mark an undefined and unimported | |
185 | symbol, find some way of defining it. If the symbol is a function | |
186 | descriptor, fill in its definition automatically. If the symbol | |
187 | is a function, mark its descriptor and allocate room for global | |
188 | linkage code. Otherwise mark the symbol as implicitly imported. | |
189 | Move the code for creating function descriptors from... | |
190 | (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to | |
191 | check for symbols that were implicitly defined. | |
192 | (xcoff_mark): Don't count any dynamic relocations against | |
193 | function symbols. | |
194 | (bfd_xcoff_size_dynamic_sections): Save the rtld parameter | |
195 | in the xcoff link info. | |
196 | (xcoff_link_input_bfd): Remove handling of undefined and | |
197 | unexported symbols. | |
198 | ||
12b2cce9 RS |
199 | 2009-03-14 Richard Sandiford <[email protected]> |
200 | ||
201 | * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute | |
202 | if the target is absolute. Fix comment typo. | |
203 | (xcoff_ppc_relocate_section): Remove FIXME. | |
204 | * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute | |
205 | if the target is absolute. | |
206 | ||
0e3212ad RS |
207 | 2009-03-14 Richard Sandiford <[email protected]> |
208 | ||
209 | * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy | |
210 | R_POS and R_NEG relocations against absolute symbols to the | |
211 | .loader section. | |
212 | ||
d19d97e9 RS |
213 | 2009-03-14 Richard Sandiford <[email protected]> |
214 | ||
215 | * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype | |
216 | to 2 for bfd_mach_ppc_620. | |
217 | ||
e5231592 RS |
218 | 2009-03-14 Richard Sandiford <[email protected]> |
219 | ||
220 | * config.bfd: Treat AIX 6+ in the same way as AIX 5. | |
221 | * configure.in: Likewise. | |
222 | * configure: Regenerate. | |
223 | ||
3516e984 L |
224 | 2009-03-13 H.J. Lu <[email protected]> |
225 | ||
226 | PR binutils/9945 | |
227 | * elf.c (assign_section_numbers): Generate symbol table if there | |
228 | is any relocation in output. | |
229 | (_bfd_elf_compute_section_file_positions): Likewise. | |
230 | ||
ce98a316 NC |
231 | 2009-03-13 Nick Clifton <[email protected]> |
232 | ||
233 | PR 9934 | |
234 | * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section. | |
235 | * elflink.c (elf_link_read_relocs_from_section): Use | |
236 | NUM_SHDR_ENTRIES. Gracefully handle the case where there are | |
237 | relocs but no symbol table. | |
238 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. | |
239 | ||
c4fb387b L |
240 | 2009-03-12 H.J. Lu <[email protected]> |
241 | ||
242 | PR ld/9938 | |
243 | * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp | |
244 | to check ___tls_get_addr. | |
245 | ||
246 | * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use | |
247 | strncmp to check __tls_get_addr. | |
248 | ||
53638231 AS |
249 | 2009-03-12 Andrew Stubbs <[email protected]> |
250 | ||
251 | * dwarf2.c (read_section): Always check the offset, even when the | |
252 | section has been read before. | |
253 | ||
09e8c3bf L |
254 | 2009-03-11 H.J. Lu <[email protected]> |
255 | ||
256 | * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in | |
257 | comments. | |
258 | ||
36e4dce6 CD |
259 | 2009-03-11 Chris Demetriou <[email protected]> |
260 | ||
261 | * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag. | |
262 | * bfd-in2.h: Regenerate. | |
263 | * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT | |
264 | flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file | |
265 | mode. | |
266 | (bsd_write_armap): Likewise. | |
267 | (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT | |
268 | flag is set, do nothing. | |
269 | (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0 | |
270 | for timestamp. | |
271 | ||
9b175a76 UW |
272 | 2009-03-11 Ulrich Weigand <[email protected]> |
273 | ||
274 | * elf32-spu.c (find_function_stack_adjust): Handle sf instruction | |
275 | used to update stack pointer. | |
276 | ||
f501de17 DA |
277 | 2009-03-07 John David Anglin <[email protected]> |
278 | ||
279 | PR binutils/9921 | |
280 | * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE | |
281 | for unknown symbols in absolute section. | |
282 | ||
d11fd249 NC |
283 | 2009-03-06 Nick Clifton <[email protected]> |
284 | ||
285 | * po/es.po: Updated Spanish translation. | |
286 | ||
8cd931b7 CL |
287 | 2009-03-05 Christophe Lyon <[email protected]> |
288 | ||
289 | * elf32-arm.c (group_sections): Take next section size into | |
290 | account before accepting to group it. | |
291 | ||
5fa9e92f CL |
292 | 2009-03-05 Christophe Lyon <[email protected]> |
293 | ||
294 | * elf32-arm.c (arm_type_of_stub): Handle long branches targetting | |
295 | PLT entries. | |
296 | (elf32_arm_final_link_relocate): Likewise. | |
297 | ||
b92997d6 AM |
298 | 2009-03-05 Moritz Kroll <[email protected]> |
299 | ||
300 | PR 9923 | |
301 | * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type. | |
302 | ||
727fc41e AM |
303 | 2009-03-04 Alan Modra <[email protected]> |
304 | ||
305 | * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New. | |
306 | * section.c (struct bfd_section): Add has_tls_get_addr_call. | |
307 | (BFD_FAKE_SECTION): Init new flag. | |
308 | * ecoff.c (bfd_debug_section): Likewise. | |
309 | * bfd-in2.h: Regenerate. | |
310 | * libbfd.h: Regenerate. | |
311 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD. | |
312 | (ppc_elf_reloc_type_lookup): Handle new relocs. | |
313 | (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
314 | without marker relocs. | |
315 | (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
316 | if section has no old-style calls. | |
317 | (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
318 | Don't try to optimize new-style __tls_get_addr call when handling | |
319 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
320 | relocs. | |
321 | * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD. | |
322 | (ppc64_elf_reloc_type_lookup): Handle new relocs. | |
323 | (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such | |
324 | without marker relocs. | |
325 | (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs | |
326 | if section has no old-style calls. Set toc_ref for new relocs as | |
327 | appropriate. | |
328 | (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too. | |
329 | Don't try to optimize new-style __tls_get_addr call when handling | |
330 | arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD | |
331 | relocs. | |
332 | ||
51dec227 AM |
333 | 2009-03-04 Alan Modra <[email protected]> |
334 | ||
335 | PR 6768 | |
336 | * configure.in: Test for ld --as-needed support. Link shared | |
337 | libbfd against libm. | |
338 | * configure: Regenerate. | |
339 | ||
a1f7ca36 AM |
340 | 2009-03-03 Alan Modra <[email protected]> |
341 | ||
342 | * Makefile.am: Run "make dep-am". | |
343 | * Makefile.in: Regenerate. | |
344 | ||
c3b7224a NC |
345 | 2009-03-02 Qinwei <[email protected]> |
346 | ||
347 | * elf32-score7.c: New file. | |
348 | * elf32-score.h: New file. | |
349 | * elf32-score.c: Add code to support score 7. Set score7 as the | |
350 | default. | |
351 | * cpu-score.c: Add score7 architecure. | |
352 | (compatibile): New function. | |
353 | * Makefile.am: Add rules for building elf32-score7 object. | |
354 | * Makefile.in: Regenerate. | |
355 | * configure.in: Add elf32-score7 object to score vectors. | |
356 | * configure: Regenerate. | |
357 | * reloc.c: Add score7 relocs. | |
358 | * archures.c: Add score3 and score7 machine numbers. | |
359 | * bfd-in2.h: Regenerate. | |
360 | * libbfd.h: Regenerate. | |
361 | ||
58e24671 RW |
362 | 2009-03-01 Ralf Wildenhues <[email protected]> |
363 | ||
364 | * configure: Regenerate. | |
365 | ||
5887528b DA |
366 | 2009-03-01 John David Anglin <[email protected]> |
367 | ||
d45b7d74 DA |
368 | * elf32-hppa.c (hppa32_elf_local_refcounts): New function. |
369 | (elf32_hppa_check_relocs): Use it. | |
370 | ||
5887528b DA |
371 | * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to |
372 | elf64-hppa.c. | |
373 | (elf_hppa_unmark_useless_dynamic_symbols): Likewise. | |
374 | (elf_hppa_remark_useless_dynamic_symbols): Likewise. | |
375 | (elf_hppa_is_dynamic_loader_symbol): Likewise. | |
376 | (elf_hppa_record_segment_addrs): Likewise. | |
377 | (elf_hppa_final_link): Likewise. | |
378 | (elf_hppa_relocate_insn): Likewise. | |
379 | (elf_hppa_final_link_relocate): Likewise. | |
380 | (elf64_hppa_relocate_section): Likewise. | |
381 | * elf64-hppa.c: Insert above. | |
382 | ||
a03bd320 DA |
383 | 2009-02-28 John David Anglin <[email protected]> |
384 | ||
385 | * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link. | |
386 | (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table. | |
387 | (elf_hppa_relocate_section): Likewise. | |
388 | * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive | |
389 | from struct elf_link_hash_entry. Add count field. | |
390 | (struct elf64_hppa_dyn_hash_table): Delete. | |
391 | (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field. | |
392 | (elf64_hppa_hash_table): Rename to hppa_link_hash_table. | |
393 | (hppa_elf_hash_entry, eh_name): Define. | |
394 | (elf64_hppa_new_dyn_hash_entry): Delete. | |
395 | (elf64_hppa_dyn_hash_lookup): Delete. | |
396 | (elf64_hppa_dyn_hash_traverse): Delete. | |
397 | (get_dyn_name): Delete. | |
398 | (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead | |
399 | of struct elf64_hppa_dyn_hash_entry *. | |
400 | (elf64_hppa_finalize_dlt, llocate_global_data_dlt, | |
401 | allocate_global_data_plt, allocate_global_data_stub, | |
402 | allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries): | |
403 | Likewise. | |
404 | (hppa64_link_hash_newfunc): New. | |
405 | (elf64_hppa_hash_table_create): Rework. | |
406 | (count_dyn_reloc): Likewise. | |
407 | (hppa64_elf_local_refcounts): New. | |
408 | (elf64_hppa_check_relocs): Rework using standard technique for recording | |
409 | local DLT, PLT and OPD reference counts. | |
410 | (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct | |
411 | elf_link_hash_entry *. | |
412 | (elf64_hppa_mark_exported_functions, allocate_global_data_dlt, | |
413 | allocate_global_data_plt, allocate_global_data_stub, | |
414 | allocate_global_data_opd, allocate_dynrel_entries, | |
415 | elf64_hppa_adjust_dynamic_symbol, | |
416 | elf64_hppa_mark_milli_and_exported_functions): Likewise. | |
417 | (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections): | |
418 | Use hppa_link_hash_table. Rework. | |
419 | (elf64_hppa_link_output_symbol_hook): Rework. | |
420 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd, | |
421 | elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc, | |
422 | elf64_hppa_finish_dynamic_sections): Likewise. | |
423 | ||
ebe24dd4 CL |
424 | 2009-02-26 Christophe Lyon <[email protected]> |
425 | ||
426 | * elf32-arm.c (stub_reloc_type): Removed. | |
427 | (insn_sequence): Renamed reloc_type field to r_type. | |
428 | (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub. | |
429 | (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise. | |
430 | (elf32_arm_stub_long_branch_thumb_only_pic): Likewise. | |
431 | (elf32_arm_stub_type): Add new enum entries for the new stubs. | |
432 | (arm_stub_is_thumb): Catch new stubs. | |
433 | (arm_type_of_stub): Handle new stubs. | |
434 | (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs. | |
435 | (bfd_elf32_arm_process_before_allocation): Remove useless | |
436 | condition. | |
437 | ||
b9d678e0 L |
438 | 2009-02-25 H.J. Lu <[email protected]> |
439 | ||
440 | * elf.c (elf_find_function): Use is_function_type to check | |
441 | function symbol. | |
442 | ||
56fb3749 SA |
443 | 2009-02-24 Sterling Augustine <[email protected]> |
444 | ||
445 | * xtensa-modules.c: Revert to previous version 1.11 due | |
446 | to inadvertant commit. | |
447 | ||
658ff993 SA |
448 | 2009-02-24 Sterling Augustine <[email protected]> |
449 | ||
450 | * elf32-xtensa.c (text_action_add): Separate test for action | |
451 | type. Break if saved action is ta_widen_insn at same offset. | |
452 | ||
cf3eccff DJ |
453 | 2009-02-24 Daniel Jacobowitz <[email protected]> |
454 | ||
455 | * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename | |
456 | to elf32_arm_stub_long_branch_any_arm_pic. | |
457 | (elf32_arm_stub_long_branch_any_thumb_pic): New. | |
458 | (enum elf32_arm_stub_type, arm_type_of_stub) | |
459 | (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC | |
460 | separately. | |
461 | ||
07d72278 DJ |
462 | 2009-02-24 Joseph Myers <[email protected]> |
463 | ||
464 | * elf32-arm.c (PREV_SEC): Update comment. | |
465 | (group_sections): Rename argument to stubs_always_after_branch. | |
466 | Reverse the list and place stubs at the end of input sections. | |
467 | Undefine NEXT_SEC. | |
468 | (elf32_arm_size_stubs): Update to use stubs_always_after_branch. | |
469 | ||
4e31c731 DJ |
470 | 2009-02-23 Daniel Jacobowitz <[email protected]> |
471 | ||
472 | * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset. | |
473 | Fix formatting. | |
474 | (arm_size_one_stub): Remove unnecessary break. | |
475 | (arm_map_one_stub): Fix formatting. Return after BFD_FAIL. | |
476 | ||
477 | 2009-02-23 Christophe Lyon <[email protected]> | |
461a49ca DJ |
478 | |
479 | * elf32-arm.c (stub_insn_type): New type. | |
480 | (stub_reloc_type): Likewise. | |
481 | (insn_sequence): Likewise. | |
482 | (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence. | |
483 | (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise. | |
484 | (elf32_arm_stub_long_branch_thumb_only): Likewise. | |
485 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
486 | (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise. | |
487 | (elf32_arm_stub_long_branch_any_any_pic): Likewise. | |
488 | (elf32_arm_stub_hash_entry): Add new helper fields. | |
489 | (stub_hash_newfunc): Initialize these new fields. | |
490 | (arm_build_one_stub): Encode Arm and Thumb instructions separately | |
491 | to take endianness into account. | |
492 | (arm_size_one_stub): Compute size of stubs using insn_sequence. | |
493 | (arm_map_one_stub): Code is now more generic, thanks to | |
494 | insn_sequence. | |
495 | ||
c2b4a39d CL |
496 | 2009-02-23 Christophe Lyon <[email protected]> |
497 | ||
498 | * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub | |
499 | code. | |
500 | (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise. | |
501 | (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when | |
502 | BLX is not available. Fix typo in warning message. Add comments | |
503 | and improve formatting. | |
504 | (arm_build_one_stub): Adjust to new | |
505 | elf32_arm_stub_long_branch_v4t_thumb_arm stub. | |
506 | (arm_map_one_stub): Likewise. | |
507 | ||
0c376465 | 508 | 2009-02-23 Tristan Gingold <[email protected]> |
a60a89d6 TG |
509 | Eric Botcazou <[email protected]> |
510 | Douglas B Rupp <[email protected]> | |
0c376465 TG |
511 | |
512 | * vms.h: Update copyright year, fix comments, reorder declarations. | |
513 | (_bfd_save_vms_section): Remove the prototype. | |
514 | (EGPS_S_V_NO_SHIFT): New constant. | |
515 | (bfd_vms_set_section_flags): New prototype. | |
516 | (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New | |
517 | constants. | |
518 | (EGSY_S_W_FLAGS): Ditto. | |
519 | (EGSY_S_V_QUAD_VAL): Ditto. | |
520 | (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto. | |
521 | (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX, | |
522 | EGST_S_B_NAMLNG): Ditto. | |
523 | (ESRF_S_B_NAMLNG): Ditto. | |
524 | (ETIR_S_C_HEADER_SIZE): Ditto. | |
525 | (EGPS_S_V_ALLOC_64BIT): Ditto. | |
526 | (DST_S_C_EPILOG): Ditto. | |
527 | (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto. | |
528 | (DST_S_C_SRC_INCRLNUM_B): Ditto. | |
529 | (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto. | |
530 | (DST_S_L_PCLINE_UNSLONG): Ditto. | |
531 | (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto | |
532 | (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto | |
533 | (DST_S_C_SOURCE_HEADER_SIZE): Ditto. | |
534 | (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto. | |
535 | (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto. | |
536 | (DST_S_B_SRC_UNSBYTE): Ditto. | |
537 | (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto. | |
538 | Add prototypes. | |
539 | (vms_section, vms_reloc): Remove types. | |
540 | (hdr_struc): Replaced by ... | |
541 | (hdr_struct): ... new type. | |
542 | (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants. | |
543 | (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto. | |
544 | (EMH_DATE_LENGTH): Ditto. | |
545 | (eom_struc): Replaced by ... | |
546 | (eom_struct): ... new type. | |
547 | (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants. | |
548 | (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto. | |
549 | (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto. | |
550 | (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto. | |
551 | (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto. | |
552 | (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto. | |
553 | (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto. | |
554 | (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto. | |
555 | (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto. | |
556 | (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto. | |
557 | (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto. | |
558 | (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto. | |
559 | (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto. | |
560 | (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto. | |
561 | (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto. | |
562 | (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto. | |
563 | (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto. | |
564 | (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH) | |
565 | (DBG_S_C_DMT_PSECT_SIZE): Ditto. | |
566 | (enum file_type_enum): New type. | |
567 | (struct location_struct): Removed. | |
568 | (struct fileinfo, struct srecinfo, struct lineinfo): New types. | |
569 | (struct funcinfo, struct module): Ditto. | |
570 | (struct vms_private_data_struct): Update fields. | |
571 | (struct vms_section_data_struct): New type. | |
572 | ||
573 | * vms.c: Update copyright year, fix comments, | |
574 | Fix includes for DECC, add prototypes. | |
575 | (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove | |
576 | some initializers. | |
577 | Use flavour to set is_vax, location_stack is removed. | |
578 | (struct pair): Declare. | |
579 | (fill_section_ptr): Initialize variables at declaration. | |
580 | Add guard to set SECTION_SYM flag, handlde und section. | |
581 | (vms_fixup_sections): Use struct pair for fill_section_ptr argument. | |
582 | (_bfd_vms_slurp_object_records): New function, replaces previous | |
583 | vms_object_p. | |
584 | (vms_slurp_module): New function. | |
585 | (vms_slurp_image): Ditto. | |
586 | (vms_object_p): Complete rewrite. | |
587 | (vms_mkobject): Use is_vax field to slect architecture. | |
588 | (free_reloc_stream): New function. | |
589 | (vms_convert_to_var): Ditto. | |
590 | (vms_convert_to_var_1): Ditto. | |
591 | (vms_convert_to_var_unix_filename): Ditto. | |
592 | (vms_close_and_cleanup): Call free_reloc_stream, convert file to | |
593 | VAR format on VMS. | |
594 | (vms_new_section_hook): Set alignment to 0, allocate private data. | |
595 | (vms_get_section_contents): Load content. | |
596 | (vms_get_symbol_info): Handle undefined section. | |
597 | (vms_find_nearest_line): Handle. | |
598 | (alloc_reloc_stream): New function. | |
599 | (vms_slurp_reloc_table): Ditto. | |
600 | (vms_get_reloc_upper_bound): Make it real. | |
601 | (vms_canonicalize_reloc): Do the real work. | |
602 | (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA, | |
603 | ALPHA_R_BOH. | |
604 | (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH. | |
605 | (vms_set_arch_mach): Check arch. | |
606 | (vms_set_section_contents): Copy the content after allocation. | |
607 | (vms_alpha_vec): Update object flags. | |
608 | ||
609 | * vms-tir.c: Update copyright year, fix comments, | |
610 | add prototypes for new functions. | |
611 | (dst_define_location): New function. | |
612 | (dst_restore_location): New function. | |
613 | (dst_retrieve_location): New function. | |
614 | (dst_check_allocation): New function. | |
615 | (image_dump): Call dst_check_allocation. | |
616 | (image_write_b): Ditto. | |
617 | (image_write_w): Ditto. | |
618 | (image_write_l): Ditto. | |
619 | (image_write_q): Ditto. | |
620 | (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW, | |
621 | STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC, | |
622 | CTL_STKDL. | |
623 | Call error handler instead of abort if name is not known. | |
624 | (etir_sta): Add quarter_relocs argument and set it. | |
625 | Fix cast. | |
626 | (etir_sto): Ditto. | |
627 | (etir_opr): Ditto, return FALSE in case of error. | |
628 | (etir_ctl): Add quarter_relocs argument and set it, fix cast. | |
629 | Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL. | |
630 | (etir_stc): Add quarter_relocs argument and set it, fix cast. | |
631 | Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA. | |
632 | Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL. | |
633 | Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS. | |
634 | Return FALSE in case of error. | |
635 | (tir_sta): Change sign of psect. | |
636 | (tir_ctl): Ditto. | |
637 | (tir_cmd): Fix cast. Makes tir_table static const. | |
638 | (etir_cmd): Add quarter_relocs argument, makes etir_table const, | |
639 | add argument to explain. | |
640 | (analyze_etir): Initialize maxptr, add quarter_relocs | |
641 | declaration, move some declarations into inner scopes. | |
642 | Handle quarter_relocs and STO_IMM. | |
643 | (_bfd_vms_slurp_tir): Use constant instead of hard-coded values. | |
644 | (_bfd_vms_slurp_relocs): New function. | |
645 | (_bfd_vms_decode_relocs): New function. | |
646 | (sto_imm): Rewritten. | |
647 | (start_first_etbt_record): New function. | |
648 | (start_another_etbt_record): Ditto. | |
649 | (etir_output_check): Ditto. | |
650 | (defer_reloc_p): Ditto. | |
651 | (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to | |
652 | a for-loop. Correctly deals with contents, deals with .vmsdebug, | |
653 | rewritte relocations handling. | |
654 | (_bfd_vms_write_tbt): Removed. | |
655 | (_bfd_vms_write_dbg): Ditto. | |
656 | ||
657 | * vms-misc.c: Update copyright year, Fix comments. | |
658 | (_bfd_vms_get_header_values): Use 'size' instead of 'length'. | |
659 | (maybe_adjust_record_pointer_for_object): New function. | |
660 | (_bfd_vms_get_first_record): New function, replaces ... | |
661 | (_bfd_vms_get_record): .. removed. | |
662 | (_bfd_vms_get_object_record): New function. | |
663 | (_bfd_vms_get_object_record): New function. | |
664 | (vms_get_remaining_object_record): New function, replaces ... | |
665 | (_bfd_vms_get_next_record): ... removed. | |
666 | (add_new_contents): Removed. | |
667 | (_bfd_save_vms_section): Removed. | |
668 | (_bfd_get_vms_section): Removed. | |
669 | (_bfd_vms_output_flush): Write in VAR format. | |
670 | (new_symbol): Don't make UND section. | |
671 | ||
672 | * vms-hdr.c: Update copyright year, update list of record handled. | |
673 | (_bfd_vms_slurp_hdr): rec_length renamed to rec_size. | |
674 | (_bfd_vms_write_hdr): Strip vms and unix patches, | |
675 | add comments, truncate module name at 31 characters, | |
676 | use constants instead of hard-coded value, | |
677 | write BFD version instead of a fixed string. | |
678 | (_bfd_vms_slurp_ihd): New function. | |
679 | (_bfd_vms_slurp_isd): Ditto. | |
680 | (_bfd_vms_slurp_ihs): Ditto. | |
681 | (new_module): Ditto. | |
682 | (parse_module): Ditto | |
683 | (build_module_list): Ditto. | |
684 | (module_find_nearest_line): Ditto. | |
685 | (_bfd_vms_find_nearest_dst_line): Ditto. | |
686 | (vms_slurp_debug): Ditto. | |
687 | (_bfd_vms_slurp_dbg): Ditto. | |
688 | (_bfd_vms_slurp_tbt): Ditto. | |
689 | (_bfd_vms_write_dbg): Ditto. | |
690 | (_bfd_vms_write_tbt): Ditto. | |
691 | ||
692 | * vms-gsd.c: Update copyright year, update list of records handled. | |
693 | (EVAX_LITERALS_NAME): New macro. | |
694 | (evax_section_flags): Add an entry for EVAX_LITERALS_NAME. | |
695 | (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd. | |
696 | (register_universal_symbol): New function and prototype. | |
697 | (_bfd_vms_slurp_gsd): Fix indentations and casts, | |
698 | improve debug messages, | |
699 | use constants instead of hard-coded value, | |
700 | fix missing endianness conversion, | |
701 | handle global symbol (SYMG). | |
702 | (bfd_vms_set_section_flags): New function. | |
703 | (_bfd_vms_write_gsd): Don't write .vmsdebug section, | |
704 | handle section literals, | |
705 | fix indentation, | |
706 | handle section bfd and vms flags, | |
707 | don't output LIB$INITIALIZE symbol, | |
708 | fix handling of weak symbols, | |
709 | fix evax vs vax procedure descriptor, | |
710 | handle absolute symbols. | |
711 | ||
712 | * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR, | |
713 | BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations. | |
714 | ||
715 | * makefile.vms (DEFS): Fix flags for VMS. | |
716 | ||
717 | * bfdio.c (real_fopen): Handle multiple VMS fopen attributes. | |
718 | ||
719 | * bfd-in2.h: Regenerated. | |
720 | * libbfd.h: Regenerated. | |
721 | ||
47149254 CC |
722 | 2009-02-20 Cary Coutant <[email protected]> |
723 | ||
724 | * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime | |
725 | in struct stat. | |
726 | ||
6b1cecf3 DK |
727 | 2009-18-02 Dave Korn <[email protected]> |
728 | ||
729 | PR gas/7059 | |
730 | * coffcode.h (coff_write_object_contents): Don't let the string | |
731 | table offset overflow the s_name field when using long section names. | |
732 | ||
88183869 DK |
733 | 2009-18-02 Dave Korn <[email protected]> |
734 | ||
735 | * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which | |
736 | control long section name handling with ECOFF_NO_LONG_SECTION_NAMES. | |
737 | * coff-mips.c (mips_ecoff_backend_data): Likewise. | |
738 | * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which | |
739 | control long section name handling with XCOFF_NO_LONG_SECTION_NAMES. | |
740 | (bfd_pmac_xcoff_backend_data): Likewise. | |
741 | * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise. | |
742 | (bfd_xcoff_aix5_backend_data): Likewise. | |
743 | (xcoff64_write_object_contents): Delete unused long_section_names | |
744 | local variable. | |
745 | * coff-sh.c (bfd_coff_small_swap_table): Initialise long section | |
746 | name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire | |
747 | struct non-const. | |
748 | * coffcode.h (documentation): Update to describe long section names. | |
749 | (COFFLONGSECTIONCATHELPER): New helper macro. | |
750 | (BLANKOR1TOODD): Likewise. | |
751 | (COFF_ENABLE_LONG_SECTION_NAMES): Likewise. | |
752 | (COFF_LONG_SECTION_NAMES_SETTER): Likewise. | |
753 | (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise. | |
754 | (bfd_coff_set_long_section_names_allowed): New function. | |
755 | (bfd_coff_set_long_section_names_disallowed): Likewise. | |
756 | (struct bfd_coff_backend_data): Add new backend hook function | |
757 | pointer _bfd_coff_set_long_section_names. | |
758 | (bfd_coff_set_long_section_names): New backend hook. | |
759 | (coff_write_object_contents): Only generate long section names if | |
760 | bfd_coff_long_section_names() indicates they are currently enabled. | |
761 | (bfd_coff_std_swap_table): Make non-const, and initialise long | |
762 | section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
763 | (ticoff0_swap_table): Likewise to both. | |
764 | (ticoff1_swap_table): Again, likewise to both. | |
765 | * coffgen.c (make_a_section_from_file): Allow long section names | |
766 | as inputs even if not currently allowed for outputs. | |
767 | * ecoff.c (_bfd_ecoff_no_long_sections): New function. | |
768 | * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank. | |
769 | * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
770 | * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
771 | * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
772 | * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
773 | * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
774 | * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise. | |
775 | * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
776 | * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
777 | * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise. | |
778 | * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise. | |
779 | * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise. | |
780 | * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise. | |
781 | * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise. | |
782 | * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise. | |
783 | * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise. | |
784 | * libcoff-in.h: Update copyright year to cause updated copyright | |
785 | year in generated libcoff.h, and fix typo. | |
786 | * libcoff.h: Regenerated. | |
787 | * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro. | |
788 | (_bfd_ecoff_no_long_sections): Add prototype. | |
789 | * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro. | |
790 | * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already | |
791 | defined by an including .c file. | |
792 | * ticoff.h (ticoff0_swap_table): Make non-const, and initialise | |
793 | long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES. | |
794 | (ticoff1_swap_table): Likewise to both. | |
795 | ||
90d8a22c CL |
796 | 2009-02-18 Christophe Lyon <[email protected]> |
797 | ||
798 | * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic | |
799 | stub. Catch default case error. | |
800 | (arm_map_one_stub): Add missing Thumb mapping symbol. | |
801 | ||
12123067 NC |
802 | 2009-02-18 Bjoern Haase <[email protected]> |
803 | ||
804 | PR 9841 | |
805 | * elf32-avr.c: Handle case where no local symbos exist correctly. | |
806 | ||
fea2b4d6 CL |
807 | 2009-02-16 Christophe Lyon <[email protected]> |
808 | ||
809 | bfd/ | |
810 | * elf32-arm.c (arm_long_branch_stub, | |
811 | arm_thumb_v4t_long_branch_stub, | |
812 | arm_thumb_thumb_long_branch_stub, | |
813 | arm_thumb_arm_v4t_long_branch_stub, | |
814 | arm_thumb_arm_v4t_short_branch_stub, | |
815 | arm_pic_long_branch_stub): | |
816 | Renamed to elf32_arm_stub_long_branch_any_any, | |
817 | elf32_arm_stub_long_branch_v4t_arm_thumb, | |
818 | elf32_arm_stub_long_branch_thumb_only, | |
819 | elf32_arm_stub_long_branch_v4t_thumb_arm, | |
820 | elf32_arm_stub_short_branch_v4t_thumb_arm, | |
821 | elf32_arm_stub_long_branch_any_any_pic. | |
822 | (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch, | |
823 | arm_thumb_thumb_stub_long_branch, | |
824 | arm_thumb_arm_v4t_stub_long_branch, | |
825 | arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch): | |
826 | Renamed to arm_stub_long_branch_any_any, | |
827 | arm_stub_long_branch_v4t_arm_thumb, | |
828 | arm_stub_long_branch_thumb_only, | |
829 | arm_stub_long_branch_v4t_thumb_arm, | |
830 | arm_stub_short_branch_v4t_thumb_arm, | |
831 | arm_stub_long_branch_any_any_pic. | |
832 | ||
13e0a874 DA |
833 | 2009-02-15 John David Anglin <[email protected]> |
834 | ||
835 | * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used | |
836 | in branch offset check. | |
837 | ||
3a71aa26 AM |
838 | 2009-02-15 Alan Modra <[email protected]> |
839 | ||
840 | * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx, | |
841 | add toc.symndx and toc.add. | |
842 | (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here. | |
843 | Set up toc.add. | |
844 | (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all | |
845 | callers. | |
846 | (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd. | |
847 | (branch_reloc_hash_match): New function, extracted from.. | |
848 | (ppc64_elf_tls_optimize): ..here. | |
849 | (ppc64_elf_relocate_section): Properly set addends when optimizing | |
850 | tls sequences. Avoid unnecessary reading and writing of insns. | |
851 | Only redo reloc when symbol changed. Bypass symbol checks when | |
852 | using tlsld_got. | |
853 | * elf32-ppc.c (ppc_elf_tls_setup): Correct comment. | |
854 | (branch_reloc_hash_match): New function, extracted from.. | |
855 | (ppc_elf_tls_optimize): ..here. | |
856 | (ppc_elf_relocate_section): Avoid unnecessary reading of insns. | |
857 | Don't clear addend on zapped __tls_get_addr reloc. | |
858 | ||
2c2b4ed4 NC |
859 | 2009-02-12 Nick Clifton <[email protected]> |
860 | ||
861 | PR 9827 | |
862 | * elflink.c (bfd_elf_final_link): When counting the relocations, | |
863 | if the header size has not been set yet then assume that it will | |
864 | match the output section's reloc type. | |
865 | ||
453f5985 NS |
866 | 2009-02-12 Nathan Sidwell <[email protected]> |
867 | ||
868 | * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for | |
869 | relocatable link. | |
870 | ||
3209bffa AM |
871 | 2009-02-09 Alan Modra <[email protected]> |
872 | ||
873 | * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors. | |
874 | (find_function): Likewise. | |
875 | (pasted_function): Don't error if no prior function found. | |
876 | (discover_functions): Revert 2008-12-10 change. Extend first | |
877 | function range to start of section. | |
878 | ||
813c8a3c DA |
879 | 2009-02-08 John David Anglin <[email protected]> |
880 | ||
881 | * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert | |
882 | functions to C90. | |
883 | * elf64-hppa.h: Likewise. | |
884 | ||
2d0f9ad9 JM |
885 | 2009-02-06 Joseph Myers <[email protected]> |
886 | ||
887 | * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special | |
888 | .sbss handling. | |
889 | ||
50e00962 AM |
890 | 2009-02-04 Alan Modra <[email protected]> |
891 | ||
892 | * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize. | |
893 | Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*. | |
894 | ||
52b6b6b9 JM |
895 | 2009-02-03 Sandip Matte <[email protected]> |
896 | ||
897 | * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr. | |
898 | * archures.c (bfd_mach_mips_xlr): Define. | |
899 | * bfd-in2.h: Regenerate. | |
900 | * cpu-mips.c (I_xlr): Define. | |
901 | (arch_info_struct): Add XLR entry. | |
902 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR. | |
903 | (mips_set_isa_flags): Handle bfd_mach_mips_xlr | |
904 | (mips_mach_extensions): Add XLR entry. | |
905 | ||
654c3c9f EW |
906 | 2009-02-03 Eric B. Weddington <[email protected]> |
907 | ||
908 | * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound. | |
909 | ||
31dd3154 JM |
910 | 2009-02-03 Carlos O'Donell <[email protected]> |
911 | ||
912 | * configure.in: AC_SUBST pdfdir. | |
913 | * Makefile.am: Add install-pdf, install-pdf-am | |
914 | and install-pdf-recursive targets. Define pdfdir. | |
915 | * doc/Makefile.am: Define pdf__strip_dir. Add | |
916 | install-pdf and install-pdf-am targets. | |
917 | * po/Make-in: Add install-pdf target. | |
918 | * configure: Regenerate. | |
919 | * Makefile.in: Regenerate | |
920 | * doc/Makefile.in: Regenerate. | |
921 | ||
cf869cce NC |
922 | 2009-02-03 Maxim Kuvyrkov <[email protected]> |
923 | ||
924 | * bfd-in2.h: Regenerate. | |
925 | * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and | |
926 | fields from n_entries to n_slots where appropriate, update comments. | |
927 | (HOWTO): Add TLS relocations. | |
928 | (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*. | |
929 | (enum elf_m68k_got_offset_size): New enum. | |
930 | (struct elf_m68k_got_entry.type): Move field to ... | |
931 | (struct elf_m68k_got_entry_key): ... here. Update all uses. | |
932 | (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static | |
933 | functions. | |
934 | (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static | |
935 | functions. | |
936 | (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries | |
937 | fields into n_entries array. Update comments. | |
938 | (elf_m68k_init_got): Simplify, update all uses. | |
939 | (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update. | |
940 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot | |
941 | GOT entries; update name, update all uses. | |
942 | (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto. | |
943 | (elf_m68k_get_got_entry): Update. | |
944 | (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries, | |
945 | simplify. | |
946 | (elf_m68k_remove_got_entry_type): Simplify. | |
947 | (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update. | |
948 | (elf_m68k_can_merge_gots): Update. | |
949 | (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update. | |
950 | (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot | |
951 | GOT entries, simplify. | |
952 | (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same. | |
953 | (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff | |
954 | field, remove obsoleted local_n_entries field. | |
955 | (elf_m68k_partition_multi_got_2): New static function. | |
956 | (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it; | |
957 | update. | |
958 | (elf_m68k_remove_got_entry_type): Update. | |
959 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
960 | (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary | |
961 | update of sgot->size and srelgot->size. | |
962 | (elf_m68k_gc_sweep_hook): Update. | |
963 | (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions. | |
964 | (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle | |
965 | TLS relocations. | |
966 | * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations. | |
967 | * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*. | |
968 | ||
c1a0a41f DD |
969 | 2009-02-02 DJ Delorie <[email protected]> |
970 | ||
971 | * elf32-mep.c (config_names): Regenerate configuration. | |
972 | ||
72a80a16 AM |
973 | 2009-02-02 Alan Modra <[email protected]> |
974 | ||
975 | * elf-bfd.h (bfd_elf_get_str_section): Don't declare. | |
976 | (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise. | |
977 | * elf.c (bfd_elf_get_str_section): Make static. | |
978 | (bfd_elf_find_section): Delete. | |
979 | * libbfd.h: Regenerate. | |
980 | ||
273f4430 JK |
981 | 2009-02-01 Jan Kratochvil <[email protected]> |
982 | ||
983 | * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove. | |
984 | (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs. | |
985 | ||
010e5ae2 AM |
986 | 2009-01-31 Alan Modra <[email protected]> |
987 | ||
988 | * elflink.c (on_needed_list): New function. | |
989 | (elf_link_add_object_symbols): Link in --as-needed libs if they | |
990 | satisfy undefined symbols in other libs. | |
991 | ||
33a7ffc2 JM |
992 | 2009-01-30 Julian Brown <[email protected]> |
993 | ||
994 | * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with | |
995 | EXEC_P or DYNAMIC flags, and skip sections which are being linked | |
996 | with --just-symbols (-R). | |
997 | ||
13d72a14 AN |
998 | 2009-01-29 Adam Nemet <[email protected]> |
999 | ||
1000 | * dwarf2.c (read_rangelist): Use read_address to read low_pc and | |
1001 | high_pc in order to properly sign-extend VMAs. | |
1002 | ||
d334575b JM |
1003 | 2009-01-29 Daniel Jacobowitz <[email protected]> |
1004 | Mark Shinwell <[email protected]> | |
1005 | Catherine Moore <[email protected]> | |
1006 | ||
1007 | * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments. | |
1008 | ||
528aeb62 CM |
1009 | 2009-01-28 Catherine Moore <[email protected]> |
1010 | ||
1011 | * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and | |
1012 | SEC_LOAD for dynamic relocation sections. | |
1013 | ||
f6f05983 HPN |
1014 | 2009-01-27 Hans-Peter Nilsson <[email protected]> |
1015 | ||
1016 | * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table | |
1017 | (info)->tls_size, not elf_hash_table (info)->tls_sec->size for | |
1018 | the size of local TLS data. | |
1019 | ||
27cc28f9 AS |
1020 | 2009-01-27 Andreas Schwab <[email protected]> |
1021 | ||
1022 | * mach-o.c (bfd_mach_o_archive_p): Restrict the number of | |
1023 | architectures in the archive. | |
1024 | ||
b3bf42d8 HPN |
1025 | 2009-01-27 Hans-Peter Nilsson <[email protected]> |
1026 | ||
f551b6f0 HPN |
1027 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL> |
1028 | <R_CRIS_32_DTPREL>: Correct relocation value. | |
1029 | ||
b3bf42d8 HPN |
1030 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8> |
1031 | <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined | |
1032 | symbols with non-default visibility. | |
1033 | ||
9bc4e62b NS |
1034 | 2009-01-26 Nathan Sidwell <[email protected]> |
1035 | ||
1036 | * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs | |
1037 | describing the trampolines. | |
1038 | (ppc_elf_relocate_section): Update relocs to describe the | |
1039 | trampolines. | |
1040 | ||
aeaf6540 DA |
1041 | 2009-01-25 John David Anglin <[email protected]> |
1042 | ||
1043 | * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that | |
1044 | branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F | |
1045 | and R_PARISC_PCREL12F relocations. | |
1046 | ||
1e8fa21e AM |
1047 | 2009-01-24 Alan Modra <[email protected]> |
1048 | ||
1049 | PR 6022 | |
1050 | * elflink.c (find_version_for_sym): New function split out from, | |
1051 | but without export_dynamic test, .. | |
1052 | (_bfd_elf_link_assign_sym_version): ..here. | |
1053 | (_bfd_elf_export_symbol): Use it. | |
1054 | ||
28caa186 AM |
1055 | 2009-01-23 Alan Modra <[email protected]> |
1056 | ||
1057 | * elf-bfd.h (struct elf_assign_sym_version_info): Delete. | |
1058 | (struct elf_info_failed, struct elf_find_verdep_info): Move to.. | |
1059 | * elflink.c: ..here, somewhat modified. | |
1060 | * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol, | |
1061 | _bfd_elf_link_find_version_dependencies, | |
1062 | _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section, | |
1063 | _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol, | |
1064 | _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't | |
1065 | declare.. | |
1066 | * elflink.c: ..and make static here. | |
1067 | (_bfd_elf_link_find_version_dependencies): Adjust for removal | |
1068 | of output_bfd from struct elf_find_verdep_info. | |
1069 | (_bfd_elf_link_assign_sym_version): Similarly adjust to use | |
1070 | struct elf_info_failed. | |
1071 | (bfd_elf_size_dynamic_sections): Adjust. | |
1072 | ||
be04437d AM |
1073 | 2009-01-22 Alan Modra <[email protected]> |
1074 | ||
1075 | PR 6832 | |
1076 | * dwarf2.c (find_line): Don't update stash->sec_info_ptr until | |
1077 | after comp_unit_find_line call. | |
1078 | ||
58f9615c NC |
1079 | 2009-01-21 Nick Clifton <[email protected]> |
1080 | ||
1081 | PR 9769 | |
1082 | * vmsutil.c (vms_file_stats_name): Remove use of unsupported | |
1083 | tm_gmtoff field in struct tm. | |
1084 | ||
fb266b8b AM |
1085 | 2009-01-21 Alan Modra <[email protected]> |
1086 | ||
1087 | * elf32-spu.h (struct spu_elf_params): Add non_ia_text. | |
1088 | * elf32-spu.c (mark_overlay_section): Only include .text.ia.* | |
1089 | sections in soft-icache lines unless non_ia_text. Don't add | |
1090 | rodata if doing so would exceed line size. | |
1091 | ||
451ffe63 HPN |
1092 | 2009-01-19 Hans-Peter Nilsson <[email protected]> |
1093 | ||
1094 | * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol | |
1095 | types than bfd_link_hash_indirect, before early return, call | |
1096 | _bfd_elf_link_hash_copy_indirect. | |
1097 | ||
5aa6ff7c AS |
1098 | 2009-01-19 Andrew Stubbs <[email protected]> |
1099 | ||
1100 | * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering. | |
1101 | * elf-bfd.h (elf_backend_data): Add obj_attrs_order. | |
1102 | * elf32-arm.c (elf32_arm_obj_attrs_order): New function. | |
1103 | (elf_backend_obj_attrs_order): New define. | |
1104 | * elfxx-target.h (elf_backend_obj_attrs_order): New define. | |
1105 | (elfNN_bed): Add elf_backend_obj_attrs_order. | |
1106 | ||
3483fe2e AS |
1107 | 2009-01-19 Andrew Stubbs <[email protected]> |
1108 | ||
1109 | * elf-attrs.c (is_default_attr): Substitute magic numbers with macros. | |
1110 | (obj_attr_size): Likewise. | |
1111 | (write_obj_attribute): Likewise. | |
1112 | (_bfd_elf_copy_obj_attributes): Likewise. | |
1113 | (_bfd_elf_parse_attributes): Likewise. | |
1114 | * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define. | |
1115 | (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines. | |
1116 | (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines. | |
1117 | (ATTR_TYPE_HAS_NO_DEFAULT): New define. | |
1118 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers | |
1119 | with macros. | |
1120 | ||
2d0bb761 AS |
1121 | 2009-01-19 Andrew Stubbs <[email protected]> |
1122 | ||
1123 | * elf-attrs.c (is_default_attr): Support defaultless attributes. | |
1124 | (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type. | |
1125 | (bfd_elf_add_obj_attr_string): Likewise. | |
1126 | (bfd_elf_add_obj_attr_int_string): Likewise. | |
1127 | (_bfd_elf_parse_attributes): Allow for unknown flag bits in type. | |
1128 | * elf-bfd.h (struct obj_attribute): Document new flag bit. | |
1129 | * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that | |
1130 | Tag_nodefaults has no default value. | |
1131 | (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults | |
1132 | comment to reflect the new state. | |
1133 | ||
a77e83b7 AM |
1134 | 2009-01-19 Alan Modra <[email protected]> |
1135 | ||
1136 | PR 9695 | |
1137 | * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC. | |
1138 | (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC. | |
1139 | (adjust_z_magix): Delete dead code handling QMAGIC. | |
1140 | ||
f6d29e26 KT |
1141 | 2009-01-16 Kai Tietz <[email protected]> |
1142 | ||
1143 | * coffcode.h (styp_to_sec_flags): Correct interpretation of | |
1144 | IMAGE_SCN_MEM_DISCARDABLE. | |
1145 | ||
29670fb9 AM |
1146 | 2009-01-16 Alan Modra <[email protected]> |
1147 | ||
1148 | * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute | |
1149 | SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS. | |
1150 | * configure.in (commonbfdlib): Delete. | |
1151 | (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/ | |
1152 | (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such | |
1153 | is available, not just for linux. | |
1154 | * po/SRC-POTFILES.in: Regenerate. | |
1155 | * Makefile.in: Regenerate. | |
1156 | * configure: Regenerate. | |
1157 | ||
91e22acd AS |
1158 | 2009-01-15 Andrew Stubbs <[email protected]> |
1159 | Julian Brown <[email protected]> | |
1160 | ||
1161 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known | |
1162 | ARM attributes in ABI 2.07. | |
1163 | * elf32-arm.c (get_secondary_compatible_arch): New function. | |
1164 | (set_secondary_compatible_arch): New function. | |
1165 | (tag_cpu_arch_combine): New function. | |
1166 | (elf32_arm_copy_one_eabi_other_attribute): Delete function. | |
1167 | (elf32_arm_copy_eabi_other_attribute_list): Delete function. | |
1168 | (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to | |
1169 | make it fit with order_01243. | |
1170 | Add support for Tag_also_compatible_with, | |
1171 | Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use, | |
1172 | Tag_MPextension_use, Tag_nodefaults and Tag_conformance. | |
1173 | Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name, | |
1174 | Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension, | |
1175 | Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed, | |
1176 | Tag_VFP_arch and Tag_ABI_FP_16bit_format. | |
1177 | Rework the way unknown attributes are handled. | |
1178 | Defer errors until all attributes have been processed. | |
1179 | ||
7b86a9fa AS |
1180 | 2009-01-15 Andrew Stubbs <[email protected]> |
1181 | ||
1182 | * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to | |
1183 | bfd_elf_add_obj_attr_int_string. | |
1184 | Read Tag_compatibility from its new location in the attribute array, | |
1185 | rather than the attribute list. | |
1186 | (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat -> | |
1187 | bfd_elf_add_obj_attr_int_string. | |
1188 | (_bfd_elf_parse_attributes): Likewise. | |
1189 | (_bfd_elf_merge_object_attributes): There's now only one | |
1190 | Tag_compatibility, and it's in the array, not the list. | |
1191 | * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include | |
1192 | Tag_compatibility. | |
1193 | (bfd_elf_add_obj_attr_compat): Rename to | |
1194 | bfd_elf_add_obj_attr_int_string. | |
1195 | (bfd_elf_add_proc_attr_compat): Rename to | |
1196 | bfd_elf_add_proc_attr_int_string. | |
1197 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle | |
1198 | Tag_compatibility. | |
1199 | ||
01e1a5bc NC |
1200 | 2009-01-15 Douglas B Rupp <[email protected]> |
1201 | ||
1202 | * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo | |
1203 | (BFD32_BACKENDS_CFILES): Add new file vmsutil.c | |
1204 | (vmsutil.lo): Add dependency rule. | |
1205 | * Makefile.in: Regenerate. | |
1206 | * config.bfd (ia64*-*-*vms*): Add case. | |
1207 | * configure.in (bfd_elf64_ia64_vms_vec): Add case. | |
1208 | * configure: Regenerate. | |
1209 | * vmsutil.c: New file. | |
1210 | * vmsutil.h: New file. | |
1211 | * elf-bfd.h (struct bfd_elf_special_section): Change type of | |
1212 | attr to bfd_vma. | |
1213 | * elfxx-ia64.c (elfNN_vms_post_process_headers, | |
1214 | elfNN_vms_section_processing, elfNN_vms_final_write_processing, | |
1215 | elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr, | |
1216 | elfNN_vms_object_p): New functions | |
1217 | * targets.c (bfd_elf64_ia64_vms_vec): New target. | |
1218 | ||
a33dafc3 L |
1219 | 2009-01-14 H.J. Lu <[email protected]> |
1220 | ||
1221 | PR ld/9727 | |
1222 | * elflink.c (elf_gc_sweep): Exclude the group section if the | |
1223 | first member of the section group is excluded. | |
1224 | ||
13c0e967 AM |
1225 | 2009-01-14 Alan Modra <[email protected]> |
1226 | ||
1227 | PR 9735 | |
1228 | * syms.c (_bfd_stab_section_find_nearest_line): Don't free | |
1229 | saved filename, use bfd_alloc rather than bfd_malloc for it. | |
1230 | ||
460e679b AM |
1231 | 2009-01-13 Alan Modra <[email protected]> |
1232 | ||
1233 | * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute. | |
1234 | ||
25076afa AM |
1235 | 2009-01-13 Alan Modra <[email protected]> |
1236 | ||
1237 | * elf32-spu.c (remove_cycles): Always set call->max_depth. | |
1238 | ||
37107878 AM |
1239 | 2009-01-12 Alan Modra <[email protected]> |
1240 | ||
1241 | * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask. | |
1242 | ||
cd4a7468 AM |
1243 | 2009-01-12 Alan Modra <[email protected]> |
1244 | ||
1245 | * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2, | |
1246 | num_lines_log2. | |
1247 | (struct got_entry): Add br_addr. | |
1248 | (struct call_info): Add priority. | |
1249 | (struct function_info): Add lr_store and sp_adjust. | |
1250 | (spu_elf_setup): Init line_size_log2 and num_lines_log2. | |
1251 | (spu_elf_find_overlays): For soft-icache, mark any section within cache | |
1252 | area as an overlay, and check that no other overlays exist. Look up | |
1253 | icache overlay manager entry sym. | |
1254 | (BRA_STUBS, BRA, BRASL): Define. | |
1255 | (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub. | |
1256 | (needs_ovl_stub): Adjust for soft-icache. Return priority encoded | |
1257 | in branch insn. | |
1258 | (count_stub, build_stub): Support soft-icache. | |
1259 | (build_spuear_stubs, process_stubs): Adjust build_stub call. | |
1260 | (spu_elf_size_stubs): Size soft-icache stubs. | |
1261 | (overlay_index): New function. | |
1262 | (spu_elf_build_stubs): Make static. Support soft-icache. | |
1263 | (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache. | |
1264 | (find_function_stack_adjust): Save lr store and stack adjust insn | |
1265 | offsets. | |
1266 | (maybe_insert_function): Adjust find_function_stack_adjust call. | |
1267 | (mark_functions_via_relocs): Retrieve priority. | |
1268 | (remove_cycles): Only warn about pruned arcs when stack_analysis. | |
1269 | (sort_calls): Sort by priority first. | |
1270 | (mark_overlay_section): Ignore .ovl.init. | |
1271 | (sum_stack): Only print when stack_analysis. | |
1272 | (print_one_overlay_section): New function, extracted from.. | |
1273 | (spu_elf_auto_overlay): ..here. Support soft-icache overlays. | |
1274 | (spu_elf_stack_analysis): Only print when htab->stack_analysis. | |
1275 | (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive | |
1276 | analysis. Call spu_elf_build_stubs. | |
1277 | (spu_elf_relocate_section): For soft-icache encode overlay index | |
1278 | into addresses. | |
1279 | (spu_elf_output_symbol_hook): Support soft-icache. | |
1280 | (spu_elf_modify_program_headers: Likewise. | |
37107878 | 1281 | |
cd4a7468 AM |
1282 | * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename |
1283 | num_regions to num_lines. Add line_size and max_branch. | |
1284 | (enum _ovly_flavour): Add ovly_soft_icache. | |
1285 | (spu_elf_build_stubs): Delete. | |
1286 | ||
80c29487 JK |
1287 | 2009-01-11 Jan Kratochvil <[email protected]> |
1288 | ||
1289 | * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4 | |
1290 | relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'. | |
1291 | ||
1bc86aea HPN |
1292 | 2009-01-07 Hans-Peter Nilsson <[email protected]> |
1293 | ||
1294 | * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD> | |
1295 | <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in | |
1296 | the program, the known offset starts at the negative size of the | |
1297 | TLS section. | |
1298 | <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: | |
1299 | Similar. | |
1300 | ||
3baa454d | 1301 | 2009-01-05 Joel Sherrill <[email protected]> |
75606e85 | 1302 | |
3baa454d | 1303 | * config.bfd: Add lm32-*-rtems*. |
75606e85 | 1304 | |
9dbe8890 L |
1305 | 2009-01-03 H.J. Lu <[email protected]> |
1306 | ||
1307 | * coff-ppc.c: Add 2009 to Copyright. | |
1308 | * elf32-cris.c: Likewise. | |
1309 | * elflink.c: Likewise. | |
1310 | ||
0bdf8d40 HPN |
1311 | 2009-01-03 Hans-Peter Nilsson <[email protected]> |
1312 | ||
1313 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename | |
1314 | gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry. | |
1315 | ||
54ac0771 L |
1316 | 2009-01-02 H.J. Lu <[email protected]> |
1317 | ||
1318 | PR ld/9679 | |
1319 | * elflink.c (elf_merge_st_other): New. | |
1320 | (_bfd_elf_merge_symbol): Use it on skipped weak definitions and | |
1321 | hide them if needed. | |
1322 | (elf_link_add_object_symbols): Updated. | |
1323 | ||
d8880531 L |
1324 | 2009-01-02 H.J. Lu <[email protected]> |
1325 | ||
1326 | PR ld/9676 | |
1327 | * elflink.c (elf_link_add_object_symbols): Update def_dynamic, | |
1328 | ref_dynamic and dynamic_def fields when setting def_regular | |
1329 | to 1. | |
1330 | ||
b70b5c14 NC |
1331 | 2009-01-02 Curtis Mackie <[email protected]> |
1332 | ||
1333 | PR 9682 | |
1334 | * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string | |
1335 | literal. | |
1336 | ||
d8880531 | 1337 | For older changes see ChangeLog-2008 |
56882138 AM |
1338 | \f |
1339 | Local Variables: | |
1340 | mode: change-log | |
1341 | left-margin: 8 | |
1342 | fill-column: 74 | |
1343 | version-control: never | |
1344 | End: |