Commit | Line | Data |
---|---|---|
d4596a51 RS |
1 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
2 | ||
3 | * elfxx-mips.c (count_section_dynsyms): Move before the new first use. | |
4 | (mips_elf_sort_hash_table): Take the output bfd as a parameter. | |
5 | Remove the MAX_LOCAL parameter. Exit early if there are no | |
6 | dynamic symbols, if there is no dynobj, or if there is no | |
7 | GOT section. Use count_section_dynsyms instead of MAX_LOCAL. | |
8 | Assert == rather than <= when checking hsd.max_unref_got_dynindx. | |
9 | Also assert that g->global_gotno is right. | |
10 | (mips_elf_count_forced_local_got_symbols): Rename to... | |
11 | (mips_elf_count_got_symbols): ...and count global GOT entries too. | |
12 | Set the global_got_area of a forced-local GGA_RELOC_ONLY symbol | |
13 | to GGA_NONE. | |
14 | (mips_elf_multi_got): Don't sort the symbol table. | |
15 | (mips_elf_lay_out_got): Likewise. Use mips_elf_count_got_symbols | |
16 | to count the number of global GOT entries. | |
17 | (_bfd_mips_elf_final_link): Unconditionally call | |
18 | mips_elf_sort_hash_table. | |
19 | ||
634835ae RS |
20 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
21 | ||
22 | * elfxx-mips.c (GGA_NORMAL, GGA_RELOC_ONLY, GGA_NONE): New macros. | |
23 | (mips_elf_link_hash_entry): Add a "global_got_area" field. | |
24 | (mips_elf_link_hash_newfunc): Initialize it. | |
25 | (mips_elf_sort_hash_table_f): Use h->global_got_area instead of | |
26 | h->root.got.offset. Do not handle forced_local symbols specially. | |
27 | (mips_elf_record_global_got_symbol): Set h->global_got_area | |
28 | instead of h->root.got.offset. | |
29 | (mips_elf_recreate_got): Assert that h->global_got_area == GGA_NONE | |
30 | for indirect and warning symbols. | |
31 | (mips_elf_count_forced_local_got_symbols): Change the argument | |
32 | from a "elf_link_hash_entry" to "mips_elf_link_hash_entry". | |
33 | Use and set h->global_got_area instead of h->root.got.offset. | |
34 | Set it to GGA_NONE for all forced-local symbols. | |
35 | (mips_elf_set_global_got_offset): Set h->global_got_area | |
36 | instead of h->root.got.offset. Use g->global_got_area instead | |
37 | of a combination of dynindx, forced_local and tls_type. | |
38 | (mips_elf_multi_got): Remove disabled code. Pass GGA_* values to | |
39 | mips_elf_set_global_got_offset. | |
40 | (mips_elf_lay_out_got): Use mips_elf_link_hash_traverse instead | |
41 | of elf_link_hash_traverse. | |
42 | (_bfd_mips_elf_copy_indirect_symbol): Copy the indirect symbol's | |
43 | global_got_area to the direct symbol if the latter's value is higher. | |
44 | Set the indirect symbol's area to GGA_NONE. | |
45 | ||
33bb52fb RS |
46 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
47 | ||
48 | * elf32-mips.c (elf_backend_hide_symbol): Delete. | |
49 | * elfn32-mips.c (elf_backend_hide_symbol): Likewise. | |
50 | * elf64-mips.c (elf_backend_hide_symbol): Likewise. | |
51 | * elfxx-mips.h (elf_backend_hide_symbol): Likewise. | |
52 | * elfxx-mips.c (mips_elf_link_hash_entry): Remove "forced_local" | |
53 | and add "needs_lazy_stub". | |
54 | (mips_elf_link_hash_newfunc): Update accordingly. | |
55 | (mips_elf_link_hash_table): Remove "computed_got_sizes" and | |
56 | add "lazy_stub_count". | |
57 | (_bfd_mips_elf_link_hash_table_create): Update accordingly. | |
58 | (mips_elf_output_extsym): Use hd->needs_lazy_stub to detect | |
59 | cases where a lazy stub is being used. | |
60 | (mips_elf_sort_hash_table_f): Use h->root.forced_local instead | |
61 | of h->forced_local. | |
62 | (mips_elf_record_global_got_symbol): Use _bfd_elf_link_hash_hide_symbol | |
63 | instead of _bfd_mips_elf_hide_symbol. Do not increment local_gotno | |
64 | here. | |
65 | (mips_elf_allocate_dynamic_relocations): Move before new first use. | |
66 | (mips_elf_check_recreate_got, mips_elf_recreate_got): New functions. | |
67 | (mips_elf_resolve_final_got_entries): Move earlier in file. Make at | |
68 | most two passes over the hash table. Use mips_elf_check_recreate_got | |
69 | to see if there are any indirect or warning entries and | |
70 | mips_elf_recreate_got to create a new GOT without them. | |
71 | Return a boolean success value. | |
72 | (mips_elf_count_forced_local_got_entries): New function. | |
73 | (mips_elf_make_got_per_bfd): Check h->root.forced_local instead of | |
74 | h->forced_local. | |
75 | (mips_elf_set_global_got_offset): Likewise. | |
76 | (mips_elf_set_no_stub): Replace with... | |
77 | (mips_elf_forbid_lazy_stubs): ...this new function. | |
78 | (mips_elf_resolve_final_got_entry): Delete. | |
79 | (mips_elf_multi_got): Fix formatting. Use mips_elf_forbid_lazy_stubs | |
80 | instead of mips_elf_set_no_stub. Move the code that sets | |
81 | global offsets and allocates dynamic relocations from the main | |
82 | _bfd_mips_elf_size_dynamic_sections loop to here. | |
83 | (_bfd_mips_elf_adjust_dynamic_symbol): Do not allocate room in | |
84 | .MIPS.stubs here; just set hmips->needs_lazy_stub and increment | |
85 | htab->lazy_stub_count. | |
86 | (_bfd_mips_elf_always_size_sections): Move the stub-estimation | |
87 | code to mips_elf_estimate_stub_size and the GOT-sizing code to | |
88 | mips_elf_lay_out_got. Do not call these functions here. | |
89 | (mips_elf_estimate_stub_size): New function, split | |
90 | out from _bfd_mips_elf_always_size_sections. Call | |
91 | mips_elf_resolve_final_got_entries earlier. Count the number | |
92 | of forced-local entries. Do not add stub sizes to loadable_size; | |
93 | after this patch, the stub sizes are already included in the main | |
94 | estimate. Allocate dynamic relocations here rather than in the | |
95 | main _bfd_mips_elf_size_dynamic_sections loop. | |
96 | (mips_elf_estimate_stub_size): New function, split out from | |
97 | _bfd_mips_elf_always_size_sections. | |
98 | (mips_elf_allocate_lazy_stub): New function. | |
99 | (mips_elf_lay_out_lazy_stubs): Likewise. | |
100 | (_bfd_mips_elf_size_dynamic_sections): Call mips_elf_estimate_stub_size, | |
101 | mips_elf_lay_out_got and mips_elf_lay_out_lazy_stubs. Do not handle | |
102 | the allocation of sreldyn specially. | |
103 | (_bfd_mips_elf_hide_symbol): Delete. | |
104 | ||
63897e2c RS |
105 | 2008-08-07 Richard Sandiford <rdsandiford@googlemail.com> |
106 | ||
107 | * elfxx-mips.c (allocate_dynrelocs): Ignore indirect and warning | |
108 | symbols. | |
109 | ||
71782a75 RS |
110 | 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com> |
111 | ||
112 | * elfxx-mips.c (mips_elf_link_hash_entry): Move bfd_boolean | |
113 | fields to the end of the structure and make them single-bit | |
114 | bitfields. | |
115 | (mips_elf_link_hash_newfunc): Make the initialization statements | |
116 | follow the new field order. | |
117 | ||
a8028dd0 RS |
118 | 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com> |
119 | ||
120 | * elfxx-mips.c (_mips_elf_section_data): Remove the "u.got_info" field. | |
121 | (mips_elf_link_hash_table): Add "sgot" and "got_info" fields. | |
122 | (_bfd_mips_elf_link_hash_table_create): Initialize them. | |
123 | (mips_elf_got_section): Always apply the !maybe_excluded behavior. | |
124 | (mips_elf_got_info): Delete. | |
125 | (mips_elf_initialize_tls_slots): Remove the DYNOBJ local variable. | |
126 | Adjust the call to mips_elf_got_section. | |
127 | (mips_elf_local_got_index): Don't call mips_elf_got_info. | |
128 | Update the call to mips_elf_create_local_got_entry. | |
129 | Use htab->got_info. | |
130 | (mips_elf_global_got_index): Don't call mips_elf_got_info; | |
131 | use htab->got_info and htab->sgot instead. | |
132 | (mips_elf_got_page): Don't call mips_elf_got_info. Update the | |
133 | call to mips_elf_create_local_got_entry. | |
134 | (mips_elf_got16_entry): Likewise. | |
135 | (mips_elf_got_offset_from_index): Replace with DYNOBJ parameter | |
136 | with an INFO parameter. Don't call mips_elf_got_info; use htab->sgot | |
137 | and htab->got_info instead. | |
138 | (mips_elf_create_local_got_entry): Remove the GG and SGOT parameters. | |
139 | Use htab->sgot and htab->got_info. | |
140 | (mips_elf_sort_hash_table): Remove the DYNOBJ local variable. | |
141 | Don't call mips_elf_got_info; use htab->got_info instead. | |
142 | (mips_elf_record_global_got_symbol): Turn G from a paramter to | |
143 | a local variable and read it from htab->got_info. | |
144 | (mips_elf_record_local_got_symbol): Replace the G parameter with | |
145 | an INFO parameter. Make G a local variable and read it from | |
146 | htab->got_info instead. | |
147 | (mips_elf_record_got_page_entry): Likewise. | |
148 | (mips_elf_multi_got): Remove the G parameter and make it a local | |
149 | variable instead. Read it from htab->got_info. | |
150 | (mips_elf_create_got_section): Cache the GOT section in htab->sgot. | |
151 | Store the GOT information in htab->got_info. | |
152 | (mips_elf_calculate_relocation): Don't call mips_elf_got_section | |
153 | and mips_elf_got_info; use htab->sgot and htab->got_info instead. | |
154 | Adjust the calls to mips_elf_got_offset_from_index and | |
155 | mips_elf_adjust_gp. | |
156 | (_bfd_mips_elf_check_relocs): Remove the G and SGOT local variables. | |
157 | Adjust the calls to mips_elf_record_local_got_symbol, | |
158 | mips_elf_record_global_got_symbol and mips_elf_record_got_page_entry. | |
159 | Use htab->sgot. | |
160 | (_bfd_mips_elf_always_size_sections): Remove the DYNOBJ local variable. | |
161 | Don't call mips_elf_got_info; use htab->sgot and htab->got_info instead. | |
162 | Update the call to mips_elf_multi_got. | |
163 | (_bfd_mips_elf_size_dynamic_sections): Don't call mips_elf_got_info; | |
164 | use htab->got_info instead. | |
165 | (_bfd_mips_elf_finish_dynamic_symbol): Update the call to | |
166 | mips_elf_got_section. Get the got_info from the hash table | |
167 | rather than the GOT section. | |
168 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
169 | (_bfd_mips_elf_finish_dynamic_sections): Likewise. | |
170 | (_bfd_mips_elf_hide_symbol): Don't call mips_elf_got_section; | |
171 | get the got_info from the hash table instead. Remove the GOT | |
172 | local variable. | |
173 | (_bfd_mips_elf_final_link): Likewise. Also remove the DYNOBJ | |
174 | local variable. | |
175 | ||
4e41d0d7 RS |
176 | 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com> |
177 | ||
178 | * elfxx-mips.c (mips_elf_link_hash_table): Add an "sstubs" field. | |
179 | (_bfd_mips_elf_create_dynamic_sections): Use it to cache the stubs | |
180 | section. Don't check whether the section already exists. | |
181 | (_bfd_mips_elf_adjust_dynamic_symbol): Use htab->sstubs. | |
182 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
183 | (_bfd_mips_elf_finish_dynamic_sections): Likewise. | |
184 | (_bfd_mips_elf_size_dynamic_sections): Likewise. Don't add the | |
185 | dummy stub to an empty section. | |
186 | (_bfd_mips_elf_link_hash_table_create): Initialize the "sstubs" field. | |
187 | ||
738e5348 RS |
188 | 2008-08-06 Richard Sandiford <rdsandiford@googlemail.com> |
189 | ||
190 | * reloc.c (BFD_RELOC_MIPS16_GOT16, BFD_RELOC_MIPS16_CALL16): Declare. | |
191 | * libbfd.h, bfd-in2.h: Regenerate. | |
192 | * elf32-mips.c (elf_mips16_howto_table_rel): Fill in reserved | |
193 | R_MIPS16_GOT16 and R_MIPS16_CALL16 entries. | |
194 | (mips16_reloc_map): Add mappings. | |
195 | * elf64-mips.c (mips16_elf64_howto_table_rel): Fill in reserved | |
196 | R_MIPS16_GOT16 and R_MIPS16_CALL16 entries. | |
197 | (mips16_elf64_howto_table_rela): Likewise. | |
198 | (mips16_reloc_map): Add mappings. | |
199 | * elfn32-mips.c (elf_mips16_howto_table_rel): Fill in reserved | |
200 | R_MIPS16_GOT16 and R_MIPS16_CALL16 entries. | |
201 | (elf_mips16_howto_table_rela): Likewise. | |
202 | (mips16_reloc_map): Add mappings. | |
203 | * elfxx-mips.c (mips_elf_create_shadow_symbol): New function. | |
204 | (section_allows_mips16_refs_p): Likewise. | |
205 | (mips16_stub_symndx): Likewise. | |
206 | (mips_elf_check_mips16_stubs): Treat the data argument as a | |
207 | bfd_link_info. Mark every dynamic symbol as needing MIPS16 stubs | |
208 | and create a "shadow" symbol for the original MIPS16 definition. | |
209 | (mips16_reloc_p, got16_reloc_p, call16_reloc_p, hi16_reloc_p) | |
210 | (lo16_reloc_p, mips16_call_reloc_p): New functions. | |
211 | (_bfd_mips16_elf_reloc_unshuffle): Use mips16_reloc_p to generalize | |
212 | relocation checks. | |
213 | (_bfd_mips16_elf_reloc_shuffle): Likewise. | |
214 | (_bfd_mips_elf_lo16_reloc): Handle R_MIPS16_GOT16. | |
215 | (mips_elf_got16_entry): Add comment. | |
216 | (mips_elf_calculate_relocation): Use hi16_reloc_p, | |
217 | lo16_reloc_p, mips16_call_reloc_p, call16_reloc_p and got16_reloc_p | |
218 | to generalize relocation checks. Use section_allows_mips16_refs_p | |
219 | instead of mips16_stub_section_p. Handle R_MIPS16_CALL16 and | |
220 | R_MIPS16_GOT16, allowing the former to refer directly to a | |
221 | MIPS16 function if its stub is not needed. | |
222 | (mips16_stub_section_p): Delete. | |
223 | (_bfd_mips_elf_symbol_processing): Convert odd-valued function | |
224 | symbols into even MIPS16 symbols. | |
225 | (mips_elf_add_lo16_rel_addend): Use mips16_reloc_p to generalize | |
226 | a relocation check. | |
227 | (_bfd_mips_elf_check_relocs): Calculate "bed" and "rel_end" | |
228 | earlier in the function. Use mips16_stub_symndx to identify | |
229 | the target function. Avoid out-of-bounds accesses when the | |
230 | stub has no relocations; report an error instead. Use | |
231 | section_allows_mips16_refs_p instead of mips16_stub_section_p. | |
232 | Use mips16_call_reloc_p and got16_reloc_p to generalize relocation | |
233 | checks. Handle R_MIPS16_CALL16 and R_MIPS16_GOT16. Don't create | |
234 | dynamic relocations for absolute references to __gnu_local_gp. | |
235 | (_bfd_mips_elf_always_size_sections): Pass a bfd_link_info as | |
236 | the argument to mips_elf_check_mips16_stubs. Generalize comment. | |
237 | (_bfd_mips_elf_relocate_section): Use hi16_reloc_p and got16_reloc_p | |
238 | to generalize relocation checks. | |
239 | (_bfd_mips_elf_finish_dynamic_symbol): If a dynamic MIPS16 function | |
240 | symbol has a non-MIPS16 stub, redirect the symbol to the stub. | |
241 | Fix an overly long line. Don't give dynamic symbols type STO_MIPS16. | |
242 | (_bfd_mips_elf_gc_sweep_hook): Handle R_MIPS16_CALL16 and | |
243 | R_MIPS16_GOT16. | |
244 | ||
e7d92e2e AM |
245 | 2008-08-06 Alan Modra <amodra@bigpond.net.au> |
246 | ||
247 | * elf32-ppc.c (ppc_elf_relax_section): Clear R_PPC_PLTREL24 addend. | |
248 | (ppc_elf_relocate_section <R_PPC_RELAX32_PLT>): Don't bother here. | |
249 | ||
46f2f11d AM |
250 | 2008-08-05 Alan Modra <amodra@bigpond.net.au> |
251 | Jaka Močnik <jaka@xlab.si> | |
252 | ||
253 | * coffcode.h (coff_slurp_line_table): bfd_alloc lineno_cache first | |
254 | so that we don't inadvertently free it. Use bfd_alloc for sort | |
255 | arrays, and memcpy sorted line table. | |
256 | ||
e5e6a5ff AM |
257 | 2008-08-04 Alan Modra <amodra@bigpond.net.au> |
258 | ||
259 | * elf32-spu.c (spu_elf_auto_overlay): Use the maximum possible | |
260 | if --fixed-space request is too large. | |
261 | ||
323ee3f4 AM |
262 | 2008-08-04 Alan Modra <amodra@bigpond.net.au> |
263 | ||
264 | * Makefile.am (SRC-POTFILES.in, BLD-POTFILES.in): Set LC_ALL=C. | |
265 | * Makefile.in: Regenerate. | |
266 | * po/SRC-POTFILES.in: Regenerate. | |
267 | ||
4f0d75be AM |
268 | 2008-08-02 Alan Modra <amodra@bigpond.net.au> |
269 | ||
270 | * elf32-spu.c (mark_overlay_section): Move code calculating | |
271 | max_overlay_size to correct block. | |
272 | (spu_elf_auto_overlay): Don't use %x in einfo error message. | |
273 | ||
11a7ae4f AM |
274 | 2008-08-01 Alan Modra <amodra@bigpond.net.au> |
275 | Jan Kratochvil <jan.kratochvil@redhat.com> | |
276 | ||
277 | * elfcore.h (elf_core_file_p): Ensure we have a backend match | |
278 | with the correct arch size before rejecting the generic fallback. | |
279 | * elfcode.h (elf_object_p): Likewise. Ensure arch size matches | |
280 | before accepting a target. | |
281 | ||
010c8431 AM |
282 | 2008-08-01 Alan Modra <amodra@bigpond.net.au> |
283 | ||
d3ae097c | 284 | PR 6774 |
010c8431 AM |
285 | * elf.c (rewrite_elf_program_header): Don't wrap p_paddr to |
286 | include file or program headers. | |
287 | ||
0af1713e AM |
288 | 2008-07-30 Alan Modra <amodra@bigpond.net.au> |
289 | ||
290 | * coff-ppc.c, coffgen.c, ecoff.c, ecofflink.c, elf.c, elf32-frv.c, | |
291 | elf32-iq2000.c, elf32-m32c.c, elf32-mep.c, elf32-mt.c, | |
292 | elf32-sh-symbian.c, elf64-hppa.c, mach-o.c, peXXigen.c, pef.c, | |
293 | ppcboot.c, vms-misc.c, xsym.c: Silence gcc warnings. | |
294 | ||
9a59ad6b DJ |
295 | 2008-07-28 Daniel Jacobowitz <dan@codesourcery.com> |
296 | ||
297 | * elfxx-mips.c (mips_elf_calculate_relocation): Avoid generating | |
298 | relocations for undefined weak symbols with non-default visibility. | |
299 | (_bfd_mips_elf_check_relocs): Use possibly_dynamic_relocs for | |
300 | global symbols in shared libraries. | |
301 | (allocate_dynrelocs): New function. | |
302 | (_bfd_mips_elf_adjust_dynamic_symbol): Do not handle | |
303 | possibly_dynamic_relocs here. | |
304 | (_bfd_mips_elf_size_dynamic_sections): Call allocate_dynrelocs. | |
305 | ||
9f03412a AO |
306 | 2008-07-28 Alexandre Oliva <aoliva@redhat.com> |
307 | ||
308 | * elf32-i386.c (struct elf_i386_link_hash_table): Added field | |
309 | tls_module_base. | |
310 | (elf_i386_link_hash_table_create): Initialize it. | |
311 | (elf_i386_always_size_sections): Set it. | |
312 | (set_tls_module_base): New. | |
313 | (elf_i386_relocate_sections): Call it. | |
314 | * elf64-x86-64.c (struct elf64_x86_64_link_hash_table): Added | |
315 | field tls_module_base. | |
316 | (elf64_x86_64_link_hash_table_create): Initialize it. | |
317 | (elf64_x86_64_always_size_sections): Set it. | |
318 | (set_tls_module_base): New. | |
319 | (elf64_x86_64_relocate_sections): Call it. | |
320 | Reported by Cary Coutant <ccoutant@google.com> | |
321 | ||
9a008db3 AM |
322 | 2008-07-28 Ineiev <ineiev@yahoo.co.uk> |
323 | ||
324 | * elf32-arm.c (arm_map_one_stub): Declare variables at beginning | |
325 | of block. | |
326 | * elf32-avr.c (get_local_syms): Likewise. | |
327 | ||
14a91970 AM |
328 | 2008-07-28 Alan Modra <amodra@bigpond.net.au> |
329 | ||
330 | PR 6769 | |
331 | * bfd-in.h (BFD_VMA_FMT): Define. | |
332 | (printf_vma, sprintf_vma): Use the above. | |
333 | (_bfd_int64_low, _bfd_int64_high): Delete. | |
334 | * bfd-in2.h: Regenerate. | |
335 | ||
baea7ef1 AM |
336 | 2008-07-27 Alan Modra <amodra@bigpond.net.au> |
337 | ||
338 | * elf.c (_bfd_elf_make_section_from_shdr): Ignore return from | |
339 | elf_parse_notes. Use bfd_malloc_and_get_section. | |
340 | (elf_parse_notes): Validate note namesz and descsz. | |
341 | ||
3c7b9897 AM |
342 | 2008-07-26 Michael Eager <eager@eagercon.com> |
343 | ||
344 | * elf32-ppc.c (ppc_elf_merge_obj_attributes): Check compatibility | |
345 | between single-float, double-float, and soft-float. | |
346 | ||
20163277 DJ |
347 | 2008-07-24 Daniel Jacobowitz <dan@codesourcery.com> |
348 | ||
349 | * elf32-mips.c (elf_backend_write_section): Define. | |
350 | ||
4ff73856 NC |
351 | 2008-07-24 Nick Clifton <nickc@redhat.com> |
352 | ||
353 | * elf.c (_bfd_elf_map_sections_to_segments): Catch off by one | |
354 | error assigning sections to segments. | |
355 | ||
39948a60 NC |
356 | 2008-07-22 Nick Clifton <nickc@redhat.com> |
357 | ||
358 | * elf.c (_bfd_elf_map_sections_to_segments): Allow sections in | |
359 | adjoining pages to be included in the same segment. | |
360 | ||
bda987c2 CD |
361 | 2008-07-22 Simon Baldwin <simonb@google.com> |
362 | ||
363 | * elflink.c (elf_link_output_extsym): Set st_size to zero for | |
364 | symbols from dynamic libraries. | |
365 | ||
88ba32a0 L |
366 | 2008-07-21 H.J. Lu <hongjiu.lu@intel.com> |
367 | ||
368 | PR ld/4424 | |
369 | * elflink.c (_bfd_elf_merge_symbol): Call bed->relocs_compatible | |
370 | to check if 2 inputs are compatible. | |
371 | ||
37c43c55 NC |
372 | 2008-07-21 Sterling Augustine <sterling@tensilica.com> |
373 | ||
374 | * elf.c (assign_file_positions_for_load_sections): Print vma in | |
375 | error message about overlapping section vmas. | |
376 | ||
50403a1f L |
377 | 2008-07-21 H.J. Lu <hongjiu.lu@intel.com> |
378 | ||
379 | PR ld/6747 | |
380 | * elf32-frv.c (elf32_frv_relocate_section): Revert the change | |
381 | for PR ld/6446 checked in by accident on May 21, 2008. | |
382 | ||
799c00e0 NC |
383 | 2008-07-21 Nick Clifton <nickc@redhat.com> |
384 | ||
385 | * coff-sh.c (bfd_pe_print_pdata): Define to NULL for non | |
386 | COFF_WITH_PE based SH ports. | |
387 | * libpei.h (_bfd_XX_print_ce_compressed_pdata): Prototype. | |
388 | * arm-wince-pe.c (bfd_pe_print_pdata): Use | |
389 | _bfd_pe_print_ce_compressed_pdata. | |
390 | (slurp_symcache, cleanup_syms, pe_print_ce_compressed_pdata): Move | |
391 | to... | |
392 | * peXXigen.c: ... here and rename pe_print_ce_compressed_pdata to | |
393 | _bfd_XX_print_ce_compressed_pdata. | |
394 | ||
f60e73e9 AM |
395 | 2008-07-21 Alan Modra <amodra@bigpond.net.au> |
396 | ||
397 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Drop | |
398 | unwanted zero terminators. | |
399 | ||
dc1859a6 AM |
400 | 2008-07-21 Alan Modra <amodra@bigpond.net.au> |
401 | ||
402 | * elf32-spu.c (spu_elf_relocate_section): Expand | |
403 | RELOC_FOR_GLOBAL_SYMBOL. Don't warn about undefined symbols for | |
404 | R_SPU_PPU32 and R_SPU_PPU64 relocations. | |
405 | ||
89eeb0bc LM |
406 | 2008-07-21 Luis Machado <luisgpm@br.ibm.com> |
407 | ||
408 | * elf-bfd.h: Declare elfcore_write_ppc_vsx. | |
409 | * elf.c (elfcore_grok_ppc_vsx): New function. | |
410 | (elfcore_write_ppc_vsx): New function | |
411 | (elfcore_grok_note): Handle VSX notes. | |
412 | (elfcore_write_register_note): Handle VSX notes. | |
413 | ||
a9dc9481 JM |
414 | 2008-07-18 Joseph Myers <joseph@codesourcery.com> |
415 | ||
416 | * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add new parameter. | |
417 | * bfd-in2.h: Regenerate. | |
418 | * elf32-arm.c (struct elf_arm_obj_tdata): Add field | |
419 | no_wchar_size_warning. | |
420 | (bfd_elf32_arm_set_target_relocs): Add new parameter | |
421 | no_wchar_warn. | |
422 | (elf32_arm_merge_eabi_attributes): Give a warning, not an error, | |
423 | for conflicting wchar_t attributes. Do not warn if | |
424 | --no-wchar-size-warning. Make diagnostic text more specific. | |
425 | ||
6cee0a6f L |
426 | 2008-07-18 H.J. Lu <hongjiu.lu@intel.com> |
427 | ||
428 | PR ld/6748 | |
429 | * elf32-arm.c (elf32_arm_link_hash_table_create): Initialize | |
430 | new fields added for ARM long call support. | |
431 | ||
2b5c217d NC |
432 | 2008-07-18 Danny Backx <dannybackx@users.sourceforge.net> |
433 | ||
434 | * pe-arm-wince.c (pe_print_compressed_pdata): Define new function to | |
435 | print compressed pdata structure as described on MSDN. This only | |
436 | applies to a limited set of architectures (ARM, SH4). | |
437 | (slurp_symtab, my_symbol_for_address): Define static helper | |
438 | functions for pe_print_compressed_pdata. | |
439 | * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_print_pdata field. | |
440 | (bfd_coff_have_print_pdata, bfd_coff_print_pdata): Define. | |
441 | * bfd/peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add check on | |
442 | bfd_coff_backend_data, call the function if non-null. | |
443 | * pei-mcore.c: Add target dependent initialisation for | |
444 | bfd_coff_backend_data. | |
445 | * coff-sh.c: Likewise. | |
446 | * coff64-rs6000.c: Likewise. | |
447 | * coff-rs6000.c: Likewise. | |
448 | * libcoff-in.h: Likewise. | |
449 | * cf-i386lynx.c: Likewise. | |
450 | * coff-alpha.c: Likewise. | |
451 | * coff-apollo.c: Likewise. | |
452 | * coff-arm.c: Likewise. | |
453 | * coff-aux.c: Likewise. | |
454 | * coff-h8300.c: Likewise. | |
455 | * coff-h8500.c: Likewise. | |
456 | * coff-i386.c: Likewise. | |
457 | * coff-i860.c: Likewise. | |
458 | * coff-i960.c: Likewise. | |
459 | * coff-ia64.c: Likewise. | |
460 | * coff-m68k.c: Likewise. | |
461 | * coff-m88k.c: Likewise. | |
462 | * coff-maxq.c: Likewise. | |
463 | * coff-mips.c: Likewise. | |
464 | * coff-or32.c: Likewise. | |
465 | * coff-sparc.c: Likewise. | |
466 | * coff-tic30.c: Likewise. | |
467 | * coff-tic4x.c: Likewise. | |
468 | * coff-tic54x.c: Likewise. | |
469 | * coff-tic80.c: Likewise. | |
470 | * coff-w65.c: Likewise. | |
471 | * coff-we32k.c: Likewise. | |
472 | * coff-x86_64.c: Likewise. | |
473 | * coff-z80.c: Likewise. | |
474 | * coff-z8k.c: Likewise. | |
475 | * pe-mcore.c: Likewise. | |
476 | * pe-mips.c: Likewise. | |
477 | * pe-ppc.c: Likewise. | |
478 | * peXXigen.c: Likewise. | |
dc1859a6 | 479 | * pei-ppc.c: Likewise. |
2b5c217d NC |
480 | * libcoff.h: Regenerate. |
481 | ||
c96a8570 BS |
482 | 2008-07-16 Bernd Schmidt <bernd.schmidt@analog.com> |
483 | ||
484 | * elf32-bfin.c (bfin_check_relocs, bfin_relocate_section, | |
485 | bfin_final_link_relocate, bfin_gc_mark_hook, bfin_gc_sweep_hook, | |
486 | ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE, | |
487 | struct _bfinfdpic_dynamic_got_info): Moved around to keep FD-PIC code | |
488 | separate from non-FD-PIC. | |
489 | ||
605d18d4 DD |
490 | 2008-07-14 DJ Delorie <dj@redhat.com> |
491 | ||
492 | * elf-m10300.c (mn10300_elf_final_link_relocate): Correct overflow | |
493 | checks for PCREL8, PCREL16, GOTPC16, GOTOFF16, PLT16, and GOT16 | |
494 | relocs. | |
495 | (mn10300_elf_relax_section): Correct jump offset check when target | |
496 | is in a different section. | |
497 | ||
b0a0b978 JZ |
498 | 2008-07-15 Jie Zhang <jie.zhang@analog.com> |
499 | ||
500 | * elf32-bfin.c (elf32_bfin_special_sections[]): New. | |
501 | (elf_backend_special_sections): Define. | |
502 | ||
aaf30c25 CS |
503 | 2008-07-13 Craig Silverstein <csilvers@google.com> |
504 | ||
08b78292 | 505 | PR binutils/6743 |
aaf30c25 CS |
506 | * dwarf2.c (struct dwarf2_debug): New variable info_ptr_memory. |
507 | (find_line): Use info_ptr_memory instead of sec_info_ptr. | |
508 | (_bfd_dwarf2_cleanup_debug_info): Likewise. | |
509 | ||
1bac266e JZ |
510 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> |
511 | ||
512 | Revert | |
513 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> | |
514 | * elf.c (_bfd_elf_map_sections_to_segments): Don't put | |
515 | executable sections into the same segment with other | |
516 | read only sections if --sep-code. | |
517 | * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. | |
518 | (elf32_bfin_data_in_l1): New variable. | |
519 | (elf32_bfin_final_write_processing): New. | |
520 | (elf32_bfin_special_sections[]): New. | |
521 | (elf_backend_final_write_processing): Define. | |
522 | (elf_backend_special_sections): Define. | |
523 | ||
8c684578 JZ |
524 | 2008-07-12 Jie Zhang <jie.zhang@analog.com> |
525 | ||
526 | * elf.c (_bfd_elf_map_sections_to_segments): Don't put | |
527 | executable sections into the same segment with other | |
528 | read only sections if --sep-code. | |
529 | * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. | |
530 | (elf32_bfin_data_in_l1): New variable. | |
531 | (elf32_bfin_final_write_processing): New. | |
532 | (elf32_bfin_special_sections[]): New. | |
533 | (elf_backend_final_write_processing): Define. | |
534 | (elf_backend_special_sections): Define. | |
535 | ||
3076cd1f AS |
536 | 2008-07-11 Andreas Schwab <schwab@suse.de> |
537 | ||
538 | * dwarf2.c (read_section): Take pointer to bfd_size_type instead | |
539 | of unsigned long as last parameter. | |
540 | (struct dwarf2_debug): Define dwarf_abbrev_size, dwarf_line_size, | |
541 | dwarf_str_size and dwarf_ranges_size as bfd_size_type instead of | |
542 | unsigned long. | |
543 | ||
0a61c8c2 RS |
544 | 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com> |
545 | ||
546 | * elfxx-mips.c (mips_elf_calculate_relocation): Calculate GP and GP0 | |
547 | for all relocation types. Allow any type of relocation to refer to | |
548 | __gnu_local_gp. | |
549 | ||
30c09090 RS |
550 | 2008-07-10 Richard Sandiford <rdsandiford@googlemail.com> |
551 | ||
552 | * elfxx-mips.c (mips_elf_check_mips16_stubs): Use ELF_ST_IS_MIPS16. | |
553 | (mips_elf_calculate_relocation): Likewise. | |
554 | (_bfd_mips_elf_add_symbol_hook): Likewise. | |
555 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
556 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
557 | ||
355d10dc AS |
558 | 2008-07-10 Andreas Schwab <schwab@suse.de> |
559 | ||
560 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Add missing | |
561 | paren. | |
562 | ||
1b315056 CS |
563 | 2008-07-09 Craig Silverstein <csilvers@google.com> |
564 | ||
565 | * Makefile.am (BFD32_LIBS): Add compress.lo. | |
566 | (BFD32_LIBS_CFILES): Add compress.c. | |
567 | (BFD_H_FILES): Likewise. | |
568 | * Makefile.in: Regenerate. | |
569 | * bfd-in2.h: Regenerate. | |
570 | * config.in: Add HAVE_ZLIB_H | |
571 | * configure.in: Add test for libz and zlib.h | |
572 | * configure: Regenerate. | |
573 | * dwarf2.c (read_section): New function. | |
574 | (read_indirect_string): Call new function read_section. | |
575 | (read_abbrevs): Likewise. | |
576 | (decode_line_info): Likewise. | |
577 | (read_debug_ranges): Likewise. | |
578 | (find_line): Call new function read_section when just one | |
579 | .zdebug_info section is found, otherwise read and compress | |
580 | multiple sections. | |
581 | (_bfd_dwarf2_cleanup_debug_info): Free sec_info_ptr. | |
582 | * elf.c (_bfd_elf_make_section_from_shdr): Add zdebug prefix. | |
583 | (special_sections_z): New struct. | |
584 | (special_sections): Refer to special_sections_z. | |
585 | * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Recognize | |
586 | sections named .zdebug_*. | |
587 | (_bfd_mips_elf_fake_sections): Likewise. | |
588 | * compress.c: New file. | |
589 | (bfd_uncompress_section_contents): New function. | |
dc1859a6 | 590 | |
329dcd78 NC |
591 | 2008-07-07 Christophe Lyon <christophe.lyon@st.com> |
592 | ||
593 | * elf32-arm.c (arm_type_of_stub): Don't crash on local symbols in | |
594 | the presence of a PLT. | |
595 | ||
c29aae59 AM |
596 | 2008-07-07 Alan Modra <amodra@bigpond.net.au> |
597 | ||
598 | * bfd.c (bfd_demangle): Always trim off bfd_get_symbol_leading_char. | |
599 | ||
7382d32a AM |
600 | 2008-07-02 Alan Modra <amodra@bigpond.net.au> |
601 | ||
602 | * elf32-ppc.c (is_pic_glink_stub): New function. | |
603 | (ppc_elf_get_synthetic_symtab): Don't generate symbols when | |
604 | multiple shared/pie stubs per plt entry. | |
605 | ||
cb53bf42 RS |
606 | 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com> |
607 | ||
608 | * elf.c (_bfd_elf_get_synthetic_symtab): Increment p by | |
609 | bed->s->int_rels_per_ext_rel. | |
610 | ||
6ba2a415 RS |
611 | 2008-06-30 Richard Sandiford <rdsandiford@googlemail.com> |
612 | ||
613 | * syms.c (BSF_SYNTHETIC): New flag. | |
614 | * elf.c (_bfd_elf_get_synthetic_symtab): Set it. | |
615 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Likewise. | |
616 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. | |
617 | * bfd-in.h (bfd_asymbol_flavour): Return bfd_target_unknown_flavour | |
618 | for synthetic symbols. | |
619 | * bfd-in2.h: Regenerate. | |
620 | ||
3dccd7b7 DJ |
621 | 2008-06-30 Daniel Jacobowitz <dan@codesourcery.com> |
622 | ||
623 | * elf32-arm.c (record_arm_to_thumb_glue, record_thumb_to_arm_glue): | |
624 | Expand comments. | |
625 | (arm_map_one_stub): Use | 1 when setting the low bit. | |
626 | ||
f57718b4 AS |
627 | 2008-06-29 Andreas Schwab <schwab@suse.de> |
628 | ||
629 | * elf32-m68k.c (elf_m68k_relocate_section): Don't ignore existing | |
630 | addend on _GLOBAL_OFFSET_TABLE_. | |
631 | ||
7413f23f DJ |
632 | 2008-06-24 Daniel Jacobowitz <dan@codesourcery.com> |
633 | ||
634 | * elf32-arm.c (STUB_ENTRY_NAME): Define. | |
635 | (arm_thumb_thumb_long_branch_stub): Use bx instead of b.n. | |
636 | (arm_pic_long_branch_stub): Mention R_ARM_REL32 instead of | |
637 | R_ARM_ABS32. | |
638 | (struct elf32_arm_stub_hash_entry): Add output_name. | |
639 | (arm_build_one_stub): Move offsets into the offset argument | |
640 | of _bfd_final_link_relocate. Correct offset for | |
641 | arm_thumb_arm_v4t_stub_long_branch. | |
642 | (elf32_arm_size_stubs): Set stub_entry->output_name. | |
643 | (elf32_arm_ouput_plt_map_sym): Rename to elf32_arm_output_map_sym. | |
644 | Update all callers. | |
645 | (elf32_arm_output_stub_sym): New. | |
646 | (arm_map_one_stub): Correct formatting. Use elf32_arm_output_stub_sym. | |
647 | ||
7c39fb20 AM |
648 | 2008-06-20 Alan Modra <amodra@bigpond.net.au> |
649 | ||
650 | * elf32-spu.c (needs_ovl_stub): Correctly return nonovl_stub for | |
651 | non-branch insns. | |
652 | ||
f3c29e8a AM |
653 | 2008-06-20 Alan Modra <amodra@bigpond.net.au> |
654 | ||
655 | * elf32-spu.c (build_stub): Allow wraparound on stub branches. | |
656 | (allocate_spuear_stubs, build_spuear_stubs): Return value from | |
657 | count_stub/build_stub. | |
658 | (spu_elf_build_stubs): Correct location of stub reloc error message. | |
659 | ||
de73c611 SR |
660 | 2008-06-18 M R Swami Reddy <MR.Swami.Reddy@nsc.com> |
661 | ||
dc1859a6 | 662 | * elf32-cr16.c (ELF_MACHINE_ALT1): Define to EM_CR16_OLD. |
de73c611 | 663 | |
7a283e07 RW |
664 | 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
665 | ||
666 | * configure: Regenerate. | |
667 | ||
99302af9 AM |
668 | 2008-06-17 Alan Modra <amodra@bigpond.net.au> |
669 | ||
670 | * elf32-spu.c (struct spu_link_hash_table): Add extra_stack_space. | |
671 | (spu_elf_check_vma): Add extra_stack_space param, copy to htab. | |
672 | (spu_elf_auto_overlay): Use it. | |
673 | (RECURSE_UNMARK): Define as 0. | |
674 | (unmark_overlay_section): Heed RECURSE_UNMARK. | |
675 | * elf32-spu.h (spu_elf_check_vma): Update prototype. | |
676 | ||
ff7eeb89 DD |
677 | 2008-06-12 DJ Delorie <dj@redhat.com> |
678 | ||
679 | * elf32-m32c.c (ELF_MACHINE_ALT1): Define as EM_M32C_OLD. | |
680 | ||
c13bb2ea PB |
681 | 2008-06-09 Paul Brook <paul@codesourcery.com> |
682 | ||
683 | bfd/ | |
684 | * elf32-arm.c (elf32_arm_merge_private_bfd_data): Allow BE8 shared | |
685 | libraries. | |
686 | ||
f4ac8484 DJ |
687 | 2008-06-09 Christophe Lyon <christophe.lyon@st.com> |
688 | ||
689 | * elf32-arm.c (arm_stub_is_thumb): Define. | |
690 | (elf32_arm_final_link_relocate): Handle near mode switching stubs. | |
691 | ||
6a267715 AM |
692 | 2008-06-07 Alan Modra <amodra@bigpond.net.au> |
693 | ||
694 | * elf32-spu.c (spu_elf_auto_overlay): Add valid area below sp | |
695 | to stack calculation. | |
696 | ||
23684067 PB |
697 | 2008-06-06 Paul Brook <paul@codesourcery.com> |
698 | ||
699 | bfd/ | |
700 | * elf32-arm.c (elf32_arm_merge_private_bfd_data): Reject BE8 input. | |
701 | ||
97407faf AM |
702 | 2008-06-06 Alan Modra <amodra@bigpond.net.au> |
703 | ||
704 | * elf32-spu.c (spu_elf_auto_overlay): Relax requirement that | |
705 | file names be unique. Specify archive:path in overlay script. | |
706 | ||
7cfbafbc AM |
707 | 2008-06-05 Alan Modra <amodra@bigpond.net.au> |
708 | ||
709 | PR ld/6590 | |
710 | * elf64-ppc.c (ppc_build_one_stub): Correct reloc offsets. | |
711 | ||
0f0a5e58 AM |
712 | 2008-06-04 Alan Modra <amodra@bigpond.net.au> |
713 | ||
714 | * elf.c (ignore_section_sym): Don't test section sym value here. | |
715 | (elf_map_symbols): Instead check zero value here as was done prior | |
716 | to 2006-05-26 change. | |
717 | ||
696b7ad2 NC |
718 | 2008-06-04 Nick Clifton <nickc@redhat.com> |
719 | ||
720 | PR ld/6019 | |
721 | * elf32-avr.c (elf32_avr_relax_section): Handle the case where | |
722 | there are no local symbols. | |
723 | ||
1f27ab8d AM |
724 | 2008-06-04 Alan Modra <amodra@bigpond.net.au> |
725 | ||
726 | * elf32-spu.c (get_sym_h): Don't attempt to read global syms. | |
727 | (process_stubs): Likewise. | |
728 | (discover_functions): Don't used cached symbols. | |
729 | (maybe_insert_function): Correct condition under which function | |
730 | array is realloc'd. | |
731 | (mark_functions_via_relocs): Delete unused variable. | |
732 | ||
adfef0bd NC |
733 | 2008-05-30 Frediano Ziglio <frediano.ziglio@vodafone.com> |
734 | Nick Clifton <nickc@redhat.com> | |
735 | ||
736 | PR ld/6511 | |
737 | * elf64-hppa.c (allocate_global_data_opd): Default to using the | |
738 | dynamic symbol table for local function names in shared libraries. | |
739 | ||
11701589 JK |
740 | 2008-05-29 Jan Kratochvil <jan.kratochvil@redhat.com> |
741 | ||
742 | * elf.c (assign_file_positions_for_load_sections): Adjust pre-section | |
743 | gaps based on VMA and P_VADDR instead of LMA and P_PADDR addresses. | |
744 | ||
124b52c6 AM |
745 | 2008-05-28 Alan Modra <amodra@bigpond.net.au> |
746 | ||
747 | * elf32-spu.c (spu_elf_object_p): New function. | |
748 | (elf_backend_object_p): Define. | |
749 | (build_stub): Correct second word of 8 byte overlay stubs. | |
750 | (spu_elf_relocate_section): Formatting. | |
751 | ||
bb864ac1 CES |
752 | 2008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com> |
753 | ||
754 | * elf.c (elfcore_write_register_note): New function. | |
755 | * elf-bfd.h (elfcore_write_register_note): New prototype. | |
756 | ||
da5938a2 NC |
757 | 2008-05-22 Christophe Lyon <christophe.lyon@st.com> |
758 | ||
759 | * elf32-arm.c (arm_type_of_stub): Ignore STT_SECTION symbols. | |
760 | (elf32_arm_stub_add_mapping_symbol): Remove. | |
761 | (elf32_arm_add_stub): Don't generate mapping symbols. Change | |
762 | prototype. | |
763 | (elf32_arm_size_stubs): Use new elf32_arm_add_stub | |
764 | prototype. Don't generate thumb to arm glue for calls. | |
765 | (arm_map_one_stub): Define. | |
766 | (elf32_arm_output_arch_local_syms): Generate mapping symbols for | |
767 | long calls stubs. | |
dc1859a6 | 768 | |
c2f950c8 L |
769 | 2008-05-21 Nick Clifton <nickc@redhat.com> |
770 | ||
771 | * elf32-arm.c (group_sections): Reformat comments. | |
772 | ||
773 | PR ld/6446 | |
774 | * elf32-frv.c (elf32_frv_relocate_section): Set EF_FRV_PIC by | |
775 | default (for FDPIC). Clear it if any inter-segment relocations | |
776 | are found. | |
777 | ||
778 | * elf64-hppa.c (elf64_hppa_finalize_opd): Check NULL return | |
779 | from elf_link_hash_lookup. | |
780 | ||
7fb9f789 | 781 | 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com> |
dc1859a6 | 782 | |
7fb9f789 NC |
783 | Add multi-GOT support for m68k. |
784 | * elf32-m68k.c (struct elf_m68k_link_hash_entry: got_entry_key, | |
785 | glist): New fields. | |
786 | (struct elf_m68k_got_entry_key, struct elf_m68k_got_entry, | |
787 | struct elf_m68k_got, struct elf_m68k_bfd2got_entry, | |
788 | struct elf_m68k_multi_got): New data structures. | |
789 | (struct elf_m68k_link_hash_table: local_gp_p, use_neg_got_offsets_p, | |
790 | allow_multigot_p, multi_got_): New fields. | |
791 | (elf_m68k_multi_got): New macro. | |
792 | (elf_m68k_link_hash_newfunc): Initialize new fields of | |
793 | struct elf_m68k_link_hash_entry. | |
794 | (elf_m68k_link_hash_table_create): Initialize new fields of | |
795 | struct elf_m68k_link_hash_table. | |
796 | (elf_m68k_link_hash_table_free): New static function implementing hook. | |
797 | (elf_m68k_init_got, elf_m68k_clear_got, elf_m68k_create_empty_got): New | |
dc1859a6 | 798 | static functions for struct elf_m68k_got. |
7fb9f789 NC |
799 | (elf_m68k_init_got_entry_key, elf_m68k_got_entry_hash, |
800 | elf_m68k_got_entry_eq): New static functions for | |
801 | struct elf_m68k_got_entry. | |
802 | (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT, | |
803 | ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): New macros. | |
804 | (enum elf_m68k_get_entry_howto): New enum. | |
805 | (elf_m68k_get_got_entry, elf_m68k_update_got_entry_type, | |
806 | elf_m68k_remove_got_entry_type): New static functions for | |
807 | struct elf_m68k_got_entry. | |
808 | (elf_m68k_add_entry_to_got): New static function. | |
809 | (elf_m68k_bfd2got_entry_hash, elf_m68k_bfd2got_entry_eq, | |
810 | elf_m68k_bfd2got_entry_del, elf_m68k_get_bfd2got_entry): New static | |
811 | functions for struct elf_m68k_bfd2got_entry. | |
812 | (struct elf_m68k_can_merge_gots_arg, elf_m68k_can_merge_gots_1, | |
813 | elf_m68k_can_merge_gots): New traversal. | |
814 | (struct elf_m68k_merge_gots_arg, elf_m68k_merge_gots_1, | |
815 | elf_m68k_merge_gots): Ditto. | |
816 | (struct elf_m68k_finalize_got_offsets_arg, | |
817 | elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Ditto. | |
818 | (struct elf_m68k_partition_multi_got_arg, | |
819 | elf_m68k_partition_multi_got_1, elf_m68k_init_symndx2h_1, | |
820 | elf_m68k_partition_multi_got): Ditto. | |
821 | (elf_m68k_find_got_entry_ptr, elf_m68k_remove_got_entry): New static | |
822 | functions. | |
823 | (elf_m68k_copy_indirect_symbol): New static function implementing | |
824 | a hook. | |
825 | (elf_m68k_check_relocs): Update to add entries to multi-GOT. | |
826 | (elf_m68k_gc_sweep_hook): Update to remove entries from multi-GOT. | |
827 | (elf_m68k_always_size_sections): Assign BFDs to GOTs. | |
828 | (elf_m68k_relocate_section): Update to properly handle GOT relocations. | |
829 | (elf_m68k_finish_dynamic_symbol): Update to traverse all GOT entries | |
830 | of a global symbol. | |
831 | (bfd_elf_m68k_set_target_options): New function. | |
832 | (bfd_elf32_bfd_link_hash_table_free): Define hook. | |
833 | (bfd_elf32_bfd_final_link): Change expansion to bfd_elf_final_link | |
834 | to skip generic calculation of GOT offsets. | |
835 | (elf_backend_copy_indirect_symbol): Define hook. | |
836 | * bfd-in.h (bfd_elf_m68k_set_target_options): Declare function. | |
837 | * bfd-in2.h: Regenerate. | |
838 | ||
46f2f11d | 839 | 2008-05-21 André Johansen <andrejoh@gmail.com> |
90b5b1a5 NC |
840 | |
841 | PR 868 | |
842 | * dwarf2.c (_bfd_dwarf2_cleanup_debug_info): Free memory allocated | |
843 | for filenames in function tables and variable tables. | |
844 | ||
6ffd7900 AM |
845 | 2008-05-19 Alan Modra <amodra@bigpond.net.au> |
846 | ||
847 | PR 2995, PR 6473 | |
848 | * elf.c (_bfd_elf_make_section_from_shdr): Leave lma equal to | |
849 | vma when all p_paddr fields are zero and there is more than | |
850 | one PT_LOAD header. | |
851 | ||
906e58ca NC |
852 | 2008-05-15 Christophe Lyon <christophe.lyon@st.com> |
853 | ||
854 | Add long call support for ARM. | |
855 | * elf32-arm.c (THM2_MAX_FWD_BRANCH_OFFSET): Define. | |
856 | (THM2_MAX_BWD_BRANCH_OFFSET): Define. | |
857 | (ARM_MAX_FWD_BRANCH_OFFSET): Define. | |
858 | (ARM_MAX_BWD_BRANCH_OFFSET): Define. | |
859 | (THM_MAX_FWD_BRANCH_OFFSET): Define. | |
860 | (THM_MAX_BWD_BRANCH_OFFSET): Define. | |
861 | (arm_long_branch_stub): Define. | |
862 | (arm_pic_long_branch_stub): Define. | |
863 | (arm_thumb_v4t_long_branch_stub): Define. | |
864 | (arm_thumb_thumb_long_branch_stub): Define. | |
865 | (arm_thumb_arm_v4t_long_branch_stub): Define. | |
866 | (STUB_SUFFIX): Define. | |
867 | (elf32_arm_stub_type): Define. | |
868 | (elf32_arm_stub_hash_entry): Define. | |
869 | (elf32_arm_link_hash_entry): Add stub_cache field. | |
870 | (arm_stub_hash_lookup): Define. | |
871 | (elf32_arm_link_hash_table): Add stub_hash_table, stub_bfd, | |
872 | add_stub_section, layout_sections_again, stub_group, bfd_count, | |
873 | top_index, input_list fields. | |
874 | (elf32_arm_link_hash_newfunc): Init new field. | |
875 | (stub_hash_newfunc): New function. | |
876 | (elf32_arm_link_hash_table_create): Init stub_hash_table. | |
877 | (elf32_arm_hash_table_free): New function. | |
878 | (arm_type_of_stub): New function. | |
879 | (elf32_arm_stub_name): New function. | |
880 | (elf32_arm_get_stub_entry): New function. | |
881 | (elf32_arm_stub_add_mapping_symbol): New function. | |
882 | (elf32_arm_add_stub): New function. | |
883 | (arm_build_one_stub): New function. | |
884 | (arm_size_one_stub): New function. | |
885 | (elf32_arm_setup_section_lists): New function. | |
886 | (elf32_arm_next_input_section): New function. | |
887 | (group_sections): New function. | |
888 | (elf32_arm_size_stubs): New function. | |
889 | (elf32_arm_build_stubs): New function. | |
890 | (bfd_elf32_arm_add_glue_sections_to_bfd): Skip stub sections. | |
891 | (bfd_elf32_arm_process_before_allocation): No longer handle | |
892 | R_ARM_CALL and R_ARM_THM_CALL. | |
893 | (using_thumb_only): New function. | |
894 | (elf32_arm_final_link_relocate): Redirect calls to stub if range | |
895 | exceeds encoding capabilities. | |
896 | (bfd_elf32_bfd_link_hash_table_free): Define. | |
897 | * bfd-in.h (R_ARM_max): Fix value to 130. | |
898 | (elf32_arm_setup_section_lists): Protype. | |
899 | (elf32_arm_next_input_section): Protype. | |
900 | (elf32_arm_size_stubs): Protype. | |
901 | (elf32_arm_build_stubs): Protype. | |
902 | * bfd-in2.h: Regenerate. | |
903 | ||
86a4952b UW |
904 | 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
905 | ||
906 | * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Fix memset calls. | |
907 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Likewise. | |
908 | ||
8944f3c2 AM |
909 | 2008-05-14 Alan Modra <amodra@bigpond.net.au> |
910 | ||
911 | * Makefile.am: Run "make dep-am". | |
912 | * Makefile.in: Regenerate. | |
913 | ||
468392fb AM |
914 | 2008-05-14 Ulrich Weigand <uweigand@de.ibm.com> |
915 | Alan Modra <amodra@bigpond.net.au> | |
916 | ||
917 | * elf32-ppc.c (section_covers_vma): New function. | |
918 | (ppc_elf_get_synthetic_symtab): New function. | |
919 | (bfd_elf32_get_synthetic_symtab): Define. | |
920 | * elf64-ppc.c (section_covers_vma): New function. | |
921 | (ppc64_elf_get_synthetic_symtab): Generate sym@plt on glink branch | |
922 | table entries, and __glink_PLTresolve on resolver stub. | |
923 | (ppc64_elf_build_stubs): Rename __glink sym to __glink_PLTresolve. | |
924 | ||
1d483afe AM |
925 | 2008-05-12 Alan Modra <amodra@bigpond.net.au> |
926 | ||
927 | PR 6443 | |
928 | * elf32-ppc.c (MUST_BE_DYN_RELOC): Delete. | |
929 | (must_be_dyn_reloc): New function. | |
930 | (ppc_elf_check_relocs): Don't set DF_STATIC_TLS for tprel relocs | |
931 | in pies. | |
932 | (ppc_elf_tls_optimize): Optimise pies. | |
933 | (ppc_elf_relocate_section): Use a section symbol rather than no | |
934 | symbol if possible for LD->IE TLS sequence, but don't error if | |
935 | we must use no symbol. | |
936 | * elf64-ppc.c (MUST_BE_DYN_RELOC): As for elf32-ppc.c. | |
937 | (must_be_dyn_reloc): Likewise. | |
938 | (ppc64_elf_check_relocs): Likewise. | |
939 | (ppc64_elf_tls_optimize): Likewise. | |
940 | (ppc64_elf_relocate_section): Likewise. | |
941 | ||
cc5ca406 AM |
942 | 2008-05-12 Alan Modra <amodra@bigpond.net.au> |
943 | ||
944 | * elf32-spu.c (spu_elf_relocate_section): Rename is_ea to is_ea_sym. | |
945 | ||
536d0ff4 AM |
946 | 2008-05-10 Paul Pluzhnikov <ppluzhnikov@google.com> |
947 | ||
948 | * elfcore.h (elf_core_file_p): Warn about core truncation. | |
949 | ||
51c8ebc1 BW |
950 | 2008-05-07 Bob Wilson <bob.wilson@acm.org> |
951 | ||
952 | * elf32-xtensa.c (xtensa_property_section_name): New. | |
953 | (xtensa_make_property_section): New. | |
954 | (xtensa_get_property_section): Make static. Do not create a new | |
955 | section if it does not exist. | |
956 | ||
8374f9d4 AM |
957 | 2008-05-08 Alan Modra <amodra@bigpond.net.au> |
958 | ||
959 | * elf32-spu.c (spu_elf_special_sections): Add "._ea". | |
960 | (spu_elf_relocate_section): Handle relocations against symbols | |
961 | defined in ._ea specially. | |
962 | ||
95720a86 DJ |
963 | 2008-05-03 Daniel Jacobowitz <dan@codesourcery.com> |
964 | ||
965 | * elf32-arm.c (elf32_arm_symbian_link_hash_table_create): Use | |
966 | ARRAY_SIZE. | |
967 | (elf32_arm_symbian_plt_sym_val): New. | |
968 | (elf_backend_plt_sym_val): Define. | |
969 | ||
5c44b38e AM |
970 | 2008-05-03 Alan Modra <amodra@bigpond.net.au> |
971 | ||
972 | PR 2995, PR 6473 | |
973 | * elf.c (rewrite_elf_program_header): Rather than clearing | |
974 | p_paddr_valid at end, don't set it in the first place. Delete | |
975 | comment no longer relevant. When not p_paddr_valid, don't set | |
976 | paddr from vaddr, and don't set p_vaddr_offset. | |
977 | ||
3471d59d CC |
978 | 2008-05-01 Cary Coutant <ccoutant@google.com> |
979 | ||
980 | * elf.c (bfd_elf_get_str_section): Fix memory leak caused by | |
981 | corrupt string table. | |
982 | ||
f12a02c0 JB |
983 | 2008-05-01 Joel Brobecker <brobecker@adacore.com> |
984 | ||
985 | * cache.c (cache_bread_1): Renames cache_bread. | |
986 | (cache_bread): New function. | |
987 | ||
88967714 AM |
988 | 2008-05-01 Alan Modra <amodra@bigpond.net.au> |
989 | ||
990 | PR 2995, PR 6473 | |
991 | * elf.c (_bfd_elf_make_section_from_shdr): Always set lma from p_paddr. | |
992 | (assign_file_positions_for_load_sections): Combine nested "if". | |
993 | (copy_elf_program_header): Don't set p_paddr_valid or p_vaddr_offset | |
994 | when all header p_paddr fields are zero. | |
995 | ||
9239aded AM |
996 | 2008-04-30 Edmar Wienskoski <edmar@freescale.com> |
997 | ||
998 | * cpu-powerpc.c (bfd_powerpc_archs): Add e500mc entry. | |
999 | ||
266b05cf DJ |
1000 | 2008-04-29 Daniel Jacobowitz <dan@codesourcery.com> |
1001 | ||
1002 | * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound) | |
1003 | (_bfd_elf_canonicalize_dynamic_reloc): Find dynamic relocations | |
1004 | even if they are not loaded. | |
1005 | * elflink.c (_bfd_elf_init_2_index_sections): Set data_index_section | |
1006 | first. | |
1007 | ||
fc2db3b8 NC |
1008 | 2008-04-25 Jay Foad <jay.foad@gmail.com> |
1009 | ||
1010 | * reloc16.c (bfd_coff_reloc16_get_value): Add support for | |
1011 | undefined weak symbols. | |
1012 | ||
ddeca468 NC |
1013 | 2008-04-25 Nick Clifton <nickc@redhat.com> |
1014 | ||
1015 | * po/vi.po: Updated Vietnamese translation. | |
1016 | ||
6194aaab L |
1017 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
1018 | ||
1019 | * aclocal.m4: Regenerate. | |
1020 | * configure: Regenerate. | |
1021 | ||
38d6ea5b CC |
1022 | 2008-04-21 Cary Coutant <ccoutant@google.com> |
1023 | ||
1024 | * archive.c (_bfd_write_archive_contents): Fix incorrect use of | |
1025 | ARFMAG. | |
1026 | ||
131eb6b7 NS |
1027 | 2008-04-21 Nathan Sidwell <nathan@codesourcery.com> |
1028 | ||
1029 | * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't | |
1030 | set the value of undefined symbols in shared objects. | |
1031 | (_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for | |
1032 | undefined symbols unless pointer equality is needed. | |
1033 | ||
e0c88096 NC |
1034 | 2008-04-18 Dennis Roberts <dennis.roberts@sunquestinfo.com> |
1035 | ||
1036 | * aix5ppc-core.c: Define macros for the default architecture and | |
1037 | machine for matching core files. | |
1038 | (xcoff64_core_p): Set the architecture and machine to the default | |
1039 | values defined in the macros mentioned above. | |
1040 | * rs6000-core.c: Define macros to determine whether or not the | |
1041 | core file header uses the core_dumpxx header format. | |
1042 | (rs6000coff_core_p): Don't match core files that use the | |
1043 | core_dumpxx header format. | |
1044 | ||
18c1668c PA |
1045 | 2008-04-16 Pedro Alves <pedro@codesourcery.com> |
1046 | ||
1047 | * config.bfd (i[3-7]86-*-dicos*, x86_64-*-dicos*): Add. | |
1048 | ||
739f7f82 DM |
1049 | 2008-04-16 David S. Miller <davem@davemloft.net> |
1050 | ||
1051 | * reloc.c (BFD_RELOC_SPARC_GOTDATA_HIX22, | |
1052 | BFD_RELOC_SPARC_GOTDATA_LOX10, BFD_RELOC_SPARC_GOTDATA_OP_HIX22, | |
1053 | BFD_RELOC_SPARC_GOTDATA_OP_LOX10, BFD_RELOC_SPARC_GOTDATA_OP): New. | |
1054 | * libbfd.h: Regnerate. | |
1055 | * bfd-in2.h: Regenerate. | |
1056 | * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Add entries for | |
1057 | GOTDATA relocations. | |
1058 | (sparc_reloc_map): Likewise. | |
1059 | (_bfd_sparc_elf_check_relocs): Handle R_SPARC_GOTDATA_* like | |
1060 | R_SPARC_GOT*. | |
1061 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
1062 | (_bfd_sparc_elf_relocate_section): Transform R_SPARC_GOTDATA_HIX22, | |
1063 | R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22, and | |
1064 | R_SPARC_GOTDATA_OP_LOX10 into the equivalent R_SPARC_GOT* reloc. | |
1065 | Simply ignore R_SPARC_GOTDATA_OP relocations. | |
1066 | ||
c5cb8442 TS |
1067 | 2008-04-14 Aurelien Jarno <aurelien@aurel32.net> |
1068 | ||
1069 | * configure.in: Link with the PIC version of libiberty on | |
1070 | Linux/MIPS hosts. | |
1071 | * configure: Regenerate. | |
1072 | ||
19a6653c AM |
1073 | 2008-04-14 Edmar Wienskoski <edmar@freescale.com> |
1074 | ||
1075 | * archures.c: Add bfd_mach_ppc_e500mc. | |
1076 | * bfd-in2.h: Regenerate. | |
1077 | ||
2ec9638b AM |
1078 | 2008-04-08 Alan Modra <amodra@bigpond.net.au> |
1079 | ||
1080 | * elf32-spu.c (spu_elf_build_stubs): Correct error message. | |
1081 | (mark_functions_via_relocs): Remove premature init of symtab_hdr. | |
1082 | (collect_overlays): Commment typo fix. | |
1083 | ||
a94b9d2d AM |
1084 | 2008-04-08 Kees Cook <kees@canonical.com> |
1085 | ||
1086 | * elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note | |
1087 | in EXEC_P bfds. | |
1088 | ||
9dcc4794 AM |
1089 | 2008-04-08 Alan Modra <amodra@bigpond.net.au> |
1090 | ||
1091 | * elf32-spu.c: Include libiberty.h. | |
1092 | (struct spu_link_hash_table): Add local_stire, overlay_fixed, reserved, | |
1093 | non_ovly_stub, spu_elf_load_ovl_mgr, spu_elf_open_overlay_script, | |
1094 | spu_elf_relink, auto_overlay fields. | |
1095 | (AUTO_OVERLAY, AUTO_RELINK, OVERLAY_RODATA): Define. | |
1096 | (needs_ovl_stub): Flip test so that call to non-function warning | |
1097 | is emitted during relocate_section rather than earlier. | |
1098 | (spu_elf_check_vma): Stash --auto-overlay parameters, and clear | |
1099 | auto_overlay if no section exceeds local store. | |
1100 | (struct call_info): Add count, max_depth, is_pasted fields. | |
1101 | (struct function_info): Add rodata, last_caller, call_count, | |
1102 | depth, new visit flags. | |
1103 | (insert_callee): Increment call count. | |
1104 | (copy_callee): New function. | |
1105 | (mark_functions_via_relocs): Investigate all reloc types to count | |
1106 | possible function pointer stubs for --auto-overlay. Track | |
1107 | last_caller and increment function call_count. | |
1108 | (pasted_function): Insert a "call" into call info for pasted section. | |
1109 | (remove_cycles): Track max depth of calls. Don't emit call graph | |
1110 | pruning warning for --auto-overlay. | |
1111 | (build_call_tree): Don't transfer_calls for --auto-overlay. | |
1112 | Adjust remove_cycles call. | |
1113 | (sort_calls, sort_lib, sort_bfds): New functions. | |
1114 | (struct _mos_param, struct _uos_param, struct _cl_param): New. | |
1115 | (mark_overlay_section, unmark_overlay_section): New functions. | |
1116 | (collect_lib_sectios, auto_ovl_lib_functions): New functions. | |
1117 | (collect_overlays, find_pasted_call): New functions. | |
1118 | (sum_stack): Deal with is_pasted "calls". Exit before printing | |
1119 | when --auto-overlay. | |
1120 | (spu_elf_auto_overlay): New function. | |
1121 | (spu_elf_final_link): Call spu_elf_auto_overlay. | |
1122 | * elf32-spu.h (spu_elf_check_vma): Update prototype. | |
1123 | ||
380814a6 AM |
1124 | 2008-04-07 Alan Modra <amodra@bigpond.net.au> |
1125 | ||
1126 | * elf32-spu.c (allocate_spuear_stubs): Ensure _SPUEAR_ symbol | |
1127 | is defined in overlay section before creating a stub. | |
1128 | (build_spuear_stubs): Likewise. | |
1129 | (spu_elf_size_stubs, spu_elf_build_stubs): Adjust calls. | |
1130 | ||
055ed83b AM |
1131 | 2008-04-02 Alan Modra <amodra@bigpond.net.au> |
1132 | ||
1133 | * elf32-spu.c (insert_callee): Reorder call list so most recent | |
1134 | call is always first. | |
1135 | (interesting_section): Move. | |
1136 | (mark_functions_via_relocs): Fold interesting_section and | |
1137 | reloc_count tests in callers to here. Simplify output section | |
1138 | owner test. | |
1139 | (discover_functions): Set "gaps" when no symbols and some | |
1140 | "interesting_section". Run pasted_function loop for no symbol | |
1141 | bfds. | |
1142 | (for_each_node, transfer_calls): New functions. | |
1143 | (mark_non_root): Adjust to suit for_each_node. | |
1144 | (call_graph_traverse): Likewise. Fix memory leak. Rename to.. | |
1145 | (remove_cycles): ..this. | |
1146 | (build_call_tree): Use for_each_node and transfer_calls. | |
1147 | (struct _sum_stack_param): New. | |
1148 | (sum_stack): Adjust to suit for_each_node. Return error on | |
1149 | malloc failure. Move code to print root node cumulative stack from.. | |
1150 | (spu_elf_stack_analysis): ..here. Use for_each_node. | |
1151 | ||
89a58aeb AM |
1152 | 2008-03-31 Cary Coutant <ccoutant@google.com> |
1153 | ||
1154 | PR 6006 | |
1155 | * archive.c (_bfd_slurp_extended_name_table): Change | |
1156 | ARFMAG[0] to ARFMAG[1]. | |
1157 | (_bfd_construct_extended_name_table): Likewise. | |
1158 | ||
3a3b6725 DJ |
1159 | 2008-03-31 Daniel Jacobowitz <dan@codesourcery.com> |
1160 | ||
1161 | * elfxx-mips.c (mips_elf_record_got_page_entry): Update comment. | |
1162 | (_bfd_mips_elf_check_relocs): Update comments. Always call | |
1163 | mips_elf_record_got_page_entry for R_MIPS_GOT_PAGE. | |
1164 | ||
1165 | 2008-03-27 Cary Coutant <ccoutant@google.com> | |
a8da6403 | 1166 | |
89a58aeb | 1167 | Add support for thin archives. |
a8da6403 NC |
1168 | * archive.c (_bfd_find_nested_archive): New function. |
1169 | (get_extended_arelt_filename): Add origin parameter. | |
1170 | (_bfd_generic_read_ar_hdr_mag): Deal with extended name | |
1171 | combined with a file offset. | |
1172 | (append_relative_path): New function. | |
1173 | (_bfd_get_elt_at_filepos): Deal with external members and | |
1174 | nested archives. | |
1175 | (bfd_generic_openr_next_archived_file): Thin archives. | |
1176 | (bfd_generic_archive_p): Recognize new magic string. | |
1177 | (adjust_relative_path): New function. | |
1178 | (_bfd_construct_extended_name_table): Construct extended | |
1179 | names for thin archive members. | |
1180 | (_bfd_write_archive_contents): Emit new magic string, skip | |
1181 | copying files for thin archives. | |
1182 | * bfd-in.h (bfd_is_thin_archive): New macro. | |
1183 | * bfd.c (struct bfd): New fields for thin archives. | |
1184 | * libbfd-in.h (struct areltdata): New field for thin archives. | |
1185 | * opncls.c (bfd_close): Delete BFDs for nested archives. | |
1186 | ||
c35e54f4 BS |
1187 | 2008-03-25 Bernd Schmidt <bernd.schmidt@analog.com> |
1188 | ||
1189 | * elf32-bfin.c (bfin_final_link_relocate): New function, wrapper around | |
1190 | _bfd_final_link_relocate that also handles R_pcrel24 relocs. | |
1191 | (bfinfdpic_relocate_section, bfin_relocate_section): Use it. | |
1192 | ||
3348747a NS |
1193 | 2008-03-25 Nathan Sidwell <nathan@codesourcery.com> |
1194 | ||
1195 | * elf32-arm.c (elf32_arm_final_link_relocate): Skip dynamic relocs | |
1196 | in vxworks tls_vars sections. | |
1197 | (allocate_dynrelocs, elf32_arm_size_dynamic_sections): Likewise. | |
1198 | * elf32-i386.c (allocate_dynrelocs, | |
1199 | elf_i386_size_dynamic_sections, elf_i386_relocate_section): Likewise. | |
1200 | * elf32-ppc.c (allocate_dynrelocs, ppc_elf_size_dynamic_sections, | |
1201 | ppc_elf_relocate_section): Likewise. | |
1202 | * elf32-sh.c (allocate_dynrelocs, sh_elf_size_dynamic_sections, | |
1203 | sh_elf_relocate_section): Likewise. | |
1204 | * elfxx-sparc.c (allocate_dynrelocs, | |
1205 | _bfd_sparc_elf_size_dynamic_sections, | |
1206 | _bfd_sparc_elf_relocate_section): Likewise. | |
1207 | ||
a1f3c56e AN |
1208 | 2008-03-21 Adam Nemet <anemet@caviumnetworks.com> |
1209 | ||
1210 | * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to | |
1211 | print the values from the dynamic section. | |
1212 | ||
51e38d68 RS |
1213 | 2008-03-20 Richard Sandiford <rsandifo@nildram.co.uk> |
1214 | ||
1215 | * elfxx-mips.c (MIPS_ELF_GNU_GOT1_MASK): New macro. | |
1216 | (_bfd_mips_elf_finish_dynamic_sections): Use it instead of 0x80000000. | |
1217 | ||
c65be8d7 AM |
1218 | 2008-03-20 Alan Modra <amodra@bigpond.net.au> |
1219 | ||
1220 | * elf32-spu.c (spu_elf_create_sections): Remove output_bfd parameter. | |
1221 | (spu_elf_find_overlays, spu_elf_size_stubs): Likewise | |
1222 | (process_stubs, discover_functions, build_call_tree): Likewise. | |
1223 | (spu_elf_stack_analysis): Likewise. | |
1224 | (spu_elf_check_vma): Likewise. Move. | |
1225 | (struct call_info): Make "is_tail" a bitfield. | |
1226 | (insert_callee): Clear fun->start and set fun->is_func if we find | |
1227 | a non-tail call. | |
1228 | * elf32-spu.h (spu_elf_create_sections): Update prototype. | |
1229 | (spu_elf_find_overlays, spu_elf_size_stubs, spu_elf_check_vma): Ditto. | |
1230 | ||
58c85be7 RW |
1231 | 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1232 | ||
1233 | * aclocal.m4: Regenerate. | |
1234 | * configure: Likewise. | |
1235 | * Makefile.in: Likewise. | |
1236 | ||
41bed6dd L |
1237 | 2008-03-16 H.J. Lu <hongjiu.lu@intel.com> |
1238 | ||
1239 | PR ld/5789 | |
1240 | PR ld/5943 | |
1241 | * elf32-i386.c (elf_i386_relocate_section): Issue an error | |
1242 | for R_386_GOTOFF relocaton against undefined hidden/internal | |
1243 | symbols when building a shared object. | |
1244 | ||
1245 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Issue an | |
1246 | error for R_X86_64_PC8/R_X86_64_PC16/R_X86_64_PC32 | |
1247 | relocaton against undefined hidden/internal symbols when | |
1248 | building a shared object. | |
1249 | (elf64_x86_64_finish_dynamic_symbol): Return FALSE when symbol | |
1250 | is referenced locally, but isn't defined in a regular file. | |
1251 | ||
6ad2759d L |
1252 | 2008-03-15 H.J. Lu <hongjiu.lu@intel.com> |
1253 | ||
1254 | * bfd-in.h (BFD_NO_FLAGS, HAS_RELOC, EXEC_P, HAS_LINENO, | |
1255 | HAS_DEBUG, HAS_SYMS, HAS_LOCALS, DYNAMIC, WP_TEXT, D_PAGED, | |
1256 | BFD_IS_RELAXABLE, BFD_TRADITIONAL_FORMAT, BFD_IN_MEMORY, | |
1257 | HAS_LOAD_PAGE, BFD_LINKER_CREATED): Moved to ... | |
1258 | * bfd.c: Here. | |
1259 | ||
1260 | * bfd.c (bfd): Change cacheable, target_defaulted, opened_once, | |
1261 | mtime_set, no_export, output_has_begun and has_armap to bit | |
1262 | field. | |
1263 | ||
1264 | * bfd-in2.h: Regenerated. | |
1265 | ||
c04ea773 DJ |
1266 | 2008-03-14 Daniel Jacobowitz <dan@codesourcery.com> |
1267 | ||
1268 | * cache.c (close_one): Remove mtime hack. | |
1269 | ||
0f2830ff L |
1270 | 2008-03-14 H.J. Lu <hongjiu.lu@intel.com> |
1271 | ||
1272 | PR ld/5913 | |
1273 | * elfxx-ia64.c (elfNN_ia64_tprel_base): Remove BFD_ASSERT. | |
1274 | (elfNN_ia64_dtprel_base): Likewise. | |
1275 | (elfNN_ia64_relocate_section): Go to missing_tls_sec if | |
1276 | tls_sec is NULL before calling elfNN_ia64_tprel_base or | |
1277 | elfNN_ia64_dtprel_base. Report unsupported TLS relocations. | |
1278 | ||
fdba2fcd AM |
1279 | 2008-03-14 Alan Modra <amodra@bigpond.net.au> |
1280 | ||
1281 | * elf32-spu.c (process_stubs, spu_elf_relocate_section): Move | |
1282 | common code to.. | |
1283 | (maybe_needs_stub): ..here, a new function that also omits stubs | |
1284 | for .eh_frame, and.. | |
1285 | (needs_ovl_stub): ..here. Create stubs for labels in code section | |
1286 | referenced by switch jump table. | |
1287 | (spu_elf_find_overlays): Set htab->ovly_load and htab->ovly_return. | |
1288 | (enum _insn_type): Delete. | |
1289 | (enum _stub_type): New. | |
1290 | (count_stub, build_stub): Adjust. | |
1291 | (allocate_spuear_stubs, build_spuear_stubs): Adjust. | |
1292 | ||
72de5009 AM |
1293 | 2008-03-13 Alan Modra <amodra@bigpond.net.au> |
1294 | ||
1295 | * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast. | |
1296 | (_bfd_elf_assign_file_position_for_section): Simplify align. | |
1297 | (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough | |
1298 | for sh_addralign. | |
1299 | (elf_fake_sections, swap_out_syms): Likewise. | |
1300 | * elflink.c (bfd_elf_final_link): Likewise. | |
1301 | ||
50e7d84b AM |
1302 | 2008-03-13 Alan Modra <amodra@bigpond.net.au> |
1303 | ||
1304 | * Makefile.am: Run "make dep-am". | |
1305 | * Makefile.in: Regenerate. | |
1306 | * po/SRC-POTFILES.in: Regenerate. | |
1307 | ||
2774f1a6 BS |
1308 | 2008-03-12 Bernd Schmidt <bernd.schmidt@analog.com> |
1309 | ||
1310 | From Jie Zhang <jie.zhang@analog.com> | |
1311 | * elf32-bfin.c (struct bfinfdpic_relocs_info): Make got17m4, | |
1312 | gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, fdgoffhilo, | |
1313 | gotoff, call and sym not bitfields. | |
1314 | (bfinfdpic_gc_sweep_hook): New function; update the relocation | |
1315 | information for the relocations of the section being removed. | |
1316 | (bfinfdpic_check_relocs): Accumulate the number of relocations | |
1317 | which set got17m4, gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, | |
1318 | fdgoffhilo, gotoff, call and sym fields. | |
1319 | (elf_backend_gc_sweep_hook): Redefine for FD-PIC. | |
1320 | ||
4fbb74a6 AM |
1321 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
1322 | ||
1323 | PR 5900 | |
1324 | * elf-bfd.h: Include elf/internal.h after elf/external.h. | |
1325 | * elfcode.h (elf_swap_symbol_in): Map reserved shndx range. | |
1326 | (elf_swap_symbol_out): Adjust SHN_XINDEX test. | |
1327 | (elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values | |
1328 | seen in external structs. | |
1329 | (valid_section_index_p): Delete. | |
1330 | (elf_object_p): Don't increment section numbers over reserved range. | |
1331 | Simplify test for valid sh_link, sh_info and e_shstrndx fields. | |
1332 | (elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values | |
1333 | seen in external structs. Don't increment section numbers over | |
1334 | reserved range. | |
1335 | * elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx. | |
1336 | (bfd_section_from_shdr): Likewise. | |
1337 | (group_signature): Range check before accessing elf_elfsections. | |
1338 | (_bfd_elf_setup_sections): Likewise. | |
1339 | (bfd_section_from_shdr): Likewise. | |
1340 | (bfd_section_from_shdr): Don't increment section number over | |
1341 | reserved sections. | |
1342 | (assign_file_positions_for_non_load_sections): Likewise. | |
1343 | (assign_file_positions_except_relocs): Likewise. | |
1344 | (_bfd_elf_write_object_contents): Likewise. | |
1345 | (assign_section_numbers): Likewise. Adjust for changed SHN_*. | |
1346 | (prep_headers): Delete unused variable. | |
1347 | * elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust | |
1348 | for changed SHN_* values. | |
1349 | (check_dynsym, elf_link_input_bfd): Likewise. | |
1350 | (bfd_elf_final_link): Likewise. Don't skip over reserved section | |
1351 | range. | |
1352 | (elf_fixup_link_order): Check that sh_link field is valid. | |
1353 | * elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned. | |
1354 | * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before | |
1355 | accesssing elf_elfsections. | |
1356 | * elf32-avr.c (elf32_avr_size_stubs): Likewise. | |
1357 | * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. | |
1358 | * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise. | |
1359 | * elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed | |
1360 | SHN_* defines. Test for SHN_BAD return from | |
1361 | _bfd_elf_section_from_bfd_section | |
1362 | ||
cb33740c AM |
1363 | 2008-03-12 Alan Modra <amodra@bigpond.net.au> |
1364 | ||
1365 | * elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype. | |
1366 | * elf.c (_bfd_elf_section_from_bfd_section): Return unsigned int, | |
1367 | SHN_BAD on error. | |
1368 | (_bfd_elf_print_private_bfd_data): Test for SHN_BAD result from | |
1369 | _bfd_elf_section_from_bfd_section, not -1. | |
1370 | (swap_out_syms): Likewise. | |
1371 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
1372 | (bfd_elf_get_bfd_needed_list): Likewise. | |
1373 | (bfd_elf_match_symbols_in_sections): Likewise. | |
1374 | (elf_link_add_object_symbols): Don't bother testing for symbols | |
1375 | using normal sections before calling bfd_section_from_elf_index. | |
1376 | (elf_link_input_bfd, bfd_elf_final_link): Likewise. | |
1377 | (bfd_elf_reloc_symbol_deleted_p): Likewise. | |
1378 | * elfcode.h (elf_slurp_symbol_table): Likewise. | |
1379 | * elf32-spu.c (get_sym_h): Likewise. | |
1380 | * elf32-xtensa.c (get_elf_r_symndx_section): Likewise. | |
1381 | * elf64-ppc.c (opd_entry_value, get_sym_h, ppc64_elf_edit_toc): Ditto. | |
1382 | * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise. | |
1383 | ||
5f5fb9ec AM |
1384 | 2008-03-11 Alan Modra <amodra@bigpond.net.au> |
1385 | ||
1386 | * elf32-spu.c (spu_elf_relocate_section): Test identical conditions | |
1387 | to those in process_stubs for overlay symbols. | |
1388 | ||
b1cc4aeb PB |
1389 | 2008-03-09 Paul Brook <paul@codesourcery.com> |
1390 | ||
1391 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new | |
1392 | Tag_VFP_arch values. | |
1393 | ||
12a0a0fd PB |
1394 | 2008-03-08 Paul Brook <paul@codesourcery.com> |
1395 | ||
1396 | * elf32-arm.c (insert_thumb_branch): Rewrite. | |
1397 | (elf32_thumb_to_arm_stub): Use new insert_thumb_branch. | |
1398 | ||
39623e12 PB |
1399 | 2008-03-07 Paul Brook <paul@codesourcery.com> |
1400 | ||
1401 | * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and | |
1402 | MOVT relocations. | |
1403 | (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign | |
1404 | extension. | |
1405 | (elf32_arm_relocate_section): Handle MOVW and MOVT | |
1406 | relocations. Improve safety check for other weird relocations. | |
1407 | (elf32_arm_check_relocs): Only set h->needs_plt for branch/call | |
1408 | relocations. | |
1409 | ||
77cba8a3 | 1410 | 2008-03-03 Bob Wilson <bob.wilson@acm.org> |
50e7d84b | 1411 | |
77cba8a3 BW |
1412 | * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and |
1413 | only compute its value once. | |
50e7d84b | 1414 | |
4a628337 AM |
1415 | 2008-03-03 Alan Modra <amodra@bigpond.net.au> |
1416 | ||
1417 | * elf32-spu.c (struct got_entry): Add "addend" field. | |
1418 | (count_stub, build_stub): Use a new stub if relocation addend | |
1419 | differs from existing stubs for this symbol. | |
1420 | (process_stubs): Deal with addends. | |
1421 | (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise. | |
1422 | ||
d95edcac L |
1423 | 2008-03-02 H.J. Lu <hongjiu.lu@intel.com> |
1424 | ||
1425 | PR ld/5789 | |
1426 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true | |
1427 | for hidden and local symbols. | |
1428 | ||
89200bf8 AM |
1429 | 2008-03-03 Alan Modra <amodra@bigpond.net.au> |
1430 | ||
1431 | * elf32-ppc.c (allocate_dynrelocs): Discard relocs on | |
1432 | undefined symbols with internal or hidden visibility. | |
1433 | (ppc_elf_relocate_section): Likewise. Use SYMBOL_CALLS_LOCAL | |
1434 | rather than SYMBOL_REFERENCES_LOCAL on branches. Don't | |
1435 | return immediately on dynamic reloc error. | |
1436 | ||
176a0d42 AM |
1437 | 2008-03-01 Alan Modra <amodra@bigpond.net.au> |
1438 | ||
1439 | * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs | |
1440 | if emitrelocations. | |
1441 | (get_relocs): New function, split out from.. | |
1442 | (ppc_build_one_stub): ..here. Add relocs on plt_branch stubs if | |
1443 | emitrelocations. Remove indx temp. | |
1444 | (ppc_size_one_stub): Count new stub relocs. | |
1445 | (ppc64_elf_size_stubs): Count new glink reloc. | |
1446 | (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations. | |
1447 | (ppc64_elf_finish_dynamic_sections): Output glink relocs. | |
1448 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic | |
1449 | glink code. | |
1450 | ||
911f096e AM |
1451 | 2008-02-28 Alan Modra <amodra@bigpond.net.au> |
1452 | ||
1453 | * elf32-spu.c (mark_functions_via_relocs): Don't assume that | |
1454 | the "->start" pointer reaches to function origin, so that we | |
1455 | can handle functions split over more than two sections. | |
1456 | (build_call_tree): Likewise. | |
1457 | (pasted_function): Don't attempt to set fun->start back to the | |
1458 | function origin, just go back one section. | |
1459 | ||
ad9563d6 CM |
1460 | 2008-02-27 Catherine Moore <clm@codesourcery.com> |
1461 | ||
1462 | * elf.c ( _bfd_elf_print_private_bfd_data): Call | |
1463 | elf_backend_get_target_dtag if defined. | |
1464 | * elf32-mips.c (elf_backend_get_target_dtag): Define. | |
1465 | * elf64-mips.c: Likewise. | |
1466 | * elfn32-mips.c: Likewise. | |
1467 | * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New. | |
1468 | * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare. | |
1469 | * elf-bfd.h (elf_backend_get_target_dtag): Add prototype. | |
1470 | * elfxx-target.h (elf_backend_get_target_dtag): Add default. | |
911f096e | 1471 | (elf_backend_data): Add elf_backend_get_target_dtag. |
ad9563d6 | 1472 | |
625af618 AM |
1473 | 2008-02-26 Alan Modra <amodra@bigpond.net.au> |
1474 | ||
1475 | * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed | |
1476 | for R_PPC_REL32 syms. Don't set non_got_ref on branch reloc syms, | |
1477 | and assume branch relocs are not dynamic when non-shared. | |
1478 | (readonly_dynrelocs): New function, split out from.. | |
1479 | (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs. | |
1480 | (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries, | |
1481 | clear non_got_ref.. | |
1482 | (allocate_dynrelocs): ..and don't set u.def for undefined weak. | |
1483 | Do allow dynamic relocs on undefined symbols. | |
1484 | (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs. | |
1485 | (ppc_elf_relocate_section): Mirror dynamic reloc changes in | |
1486 | check_relocs. | |
1487 | (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak | |
1488 | plt symbols needing pointer_equality_needed. | |
1489 | ||
1cd81501 AM |
1490 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
1491 | ||
1492 | * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change. | |
1493 | ||
0eb4a168 AM |
1494 | 2008-02-23 Alan Modra <amodra@bigpond.net.au> |
1495 | ||
1496 | * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy | |
1497 | pointer_equality_needed. | |
1498 | (ppc_elf_check_relocs): Split out non-branch relocs from others | |
1499 | that might emit dynamic relocs. Set pointer_equality_needed | |
1500 | for their symbols. Don't set non_got_ref on branch reloc symbols. | |
1501 | (ppc_elf_hash_symbol): New function. | |
1502 | (elf_backend_hash_symbol): Define. | |
1503 | (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed. | |
1504 | Error if pointer_equality_needed on weak plt symbol. | |
1505 | ||
3ae181ee L |
1506 | 2008-02-22 H.J. Lu <hongjiu.lu@intel.com> |
1507 | ||
1508 | PR ld/5788 | |
1509 | * elflink.c (elf_create_symbuf): Correct buffer size and | |
1510 | position. | |
1511 | ||
34b5e0b2 NC |
1512 | 2008-02-22 Nick Clifton <nickc@redhat.com> |
1513 | ||
1514 | PR 868 | |
3ae181ee | 1515 | * dwarf2.c: Revert previous patch. All of the allocate memory is |
34b5e0b2 | 1516 | on an obstack which will be freed at some other time. |
0eb4a168 | 1517 | |
515ef31d NC |
1518 | 2008-02-20 Nick Clifton <nickc@redhat.com> |
1519 | ||
1520 | PR 868 | |
1521 | * libbfd.c (bfd_realloc_or_free): New function. Performs like | |
1522 | bfd_realloc, but if the (re)allocation fails, the pointer is | |
1523 | freed. | |
1524 | * libbfd-in.h: Prototype. | |
1525 | * libbfd.h: Regenerate. | |
1526 | * bfdio.c (bfd_bwrite): Use the new function. | |
1527 | (bfd_seek): Likewise. | |
1528 | * bfdwin.c:(bfd_get_file_window): Likewise. | |
1529 | * elf-strtab.c (_bfd_elf_strtab_add): Likewise. | |
1530 | * elf32-ppc.c (ppc_elf_relax_section): Likewise. | |
1531 | * elf32-xtensa.c (vsprintf_msg): Likewise. | |
1532 | * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise. | |
1533 | * stabs.c (_bfd_link_seciton_stabs): Likewise. | |
1534 | * vms-misc.c (_bfd_vms_get_record): Likewise. | |
1535 | * vms-tir.c (check_section): Likewise. | |
1536 | * vms.c (vms_new_section_hook): Likewise. | |
1537 | * elf32-arm.c (elf32_arm_section_map_add): Check that the | |
1538 | allocation of sec_data->map succeeded before using it. | |
1539 | * elflink.c (elf_link_output_sym): Do not overwrite finfo-> | |
1540 | symshndxbuf until it is known that the reallocation succeeded. | |
1541 | ||
b42bf1e0 NC |
1542 | 2008-02-20 Diogo de Carvalho Kraemer <diogo@kraemer.eng.br> |
1543 | Nick Clifton <nickc@redhat.com> | |
1544 | ||
1545 | PR 868 | |
1546 | * dwarf2.c (read_abbrevs): Free the abbreviation table if we run | |
1547 | out of memory. | |
1548 | (decode_line_info): Free the line_info_table before returning a | |
1549 | failure result. | |
1550 | (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table. | |
1551 | Free the line table. Free the function table. Free the variable | |
1552 | table. | |
1553 | ||
0a40daed MK |
1554 | 2008-02-17 Mark Kettenis <kettenis@gnu.org> |
1555 | ||
1556 | * elf.c (swap_out_syms): Avoid preprocessing directive within | |
1557 | macro arg. | |
1558 | ||
3f001e84 JK |
1559 | 2008-02-17 Jan Kratochvil <jan.kratochvil@redhat.com> |
1560 | ||
1561 | * elf.c (assign_file_positions_for_load_sections): Set the type of | |
1562 | PT_NOTE sections to SHT_NOTE. | |
1563 | ||
37da76e8 AM |
1564 | 2008-02-17 Ulrich Weigand <uweigand@de.ibm.com> |
1565 | ||
1566 | * simple.c (bfd_simple_get_relocated_section_contents): Set | |
1567 | link_info.output_bfd. | |
1568 | ||
d74e4b29 NS |
1569 | 2008-02-16 Nathan Sidwell <nathan@codesourcery.com> |
1570 | ||
1571 | * dwarf2.c (find_line): Don't trust debug information after an | |
1572 | unparseable compilation unit. | |
1573 | ||
f856272b AM |
1574 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
1575 | ||
1576 | PR 5765 | |
1577 | * section.c (SEC_LINK_DUPLICATES): Correct. Renumber following flags. | |
1578 | * bfd-in2.h: Regenerate. | |
1579 | ||
0c8d6e5c AM |
1580 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
1581 | ||
1582 | * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA. | |
1583 | * elf.c (bfd_elf_allocate_object): Don't check for already allocated | |
1584 | tdata. | |
1585 | * elf32-hppa.c (elf32_hppa_mkobject): New function. | |
1586 | (bfd_elf32_mkobject): Define. | |
1587 | * elf32-ppc.c (is_ppc_elf_target): Delete. Replace all uses with.. | |
1588 | (is_ppc_elf): ..this new macro. | |
1589 | * elf64-ppc.c (is_ppc64_elf_target): Delete. Replace all uses with.. | |
1590 | (is_ppc64_elf): ..this new macro. | |
1591 | ||
f13a99db AM |
1592 | 2008-02-15 Alan Modra <amodra@bigpond.net.au> |
1593 | ||
1594 | * elflink.c: Replace all accesses to hash->creator field with | |
1595 | output_bfd->xvec. | |
1596 | * cofflink.c: Likewise. | |
1597 | * coff-h8300.c: Likewise. | |
1598 | * ecoff.c: Likewise. | |
1599 | * elf32-m68hc1x.c: Likewise. | |
1600 | * elf32-ppc.c: Likewise. | |
1601 | * elf64-alpha.c: Likewise. | |
1602 | * elf64-ppc.c: Likewise. | |
1603 | * elf64-sparc.c: Likewise. | |
1604 | * elfxx-mips.c: Likewise. | |
1605 | * i386linux.c: Likewise. | |
1606 | * m68klinux.c: Likewise. | |
1607 | * sparclinux.c: Likewise. | |
1608 | * sunos.c: Likewise. | |
1609 | * xcofflink.c: Likewise. | |
1610 | * linker.c: Likewise. | |
1611 | (_bfd_link_hash_table_init): Don't store creator. | |
1612 | ||
e81819a5 NC |
1613 | 2008-02-14 Peter Jones <pjones@redhat.com> |
1614 | ||
1615 | * efi-rtdrv-ia32.c: New file. | |
1616 | * efi-bsdrv-ia32.c: New file. | |
1617 | * efi-rtdrv-ia64.c: New file. | |
1618 | * efi-bsdrv-ia64.c: New file. | |
1619 | * efi-rtdrv-x86_64.c: New file. | |
1620 | * efi-bsdrv-x86_64.c: New file. | |
1621 | * peicode.h (pe_bfd_object_p): Add support for boot service and | |
1622 | runtime service drivers. | |
1623 | * libpei.h: Add macros for EFI formats, and rename the efi application | |
1624 | format macros to disambiguate. | |
1625 | * targets.c: Add bfd_target _vec externs. | |
1626 | (_bfd_tar): Add EFI _vec entries. | |
1627 | * config.bfd: Add EFI vectors into the selection routines. | |
1628 | * configure.in: add EFI _vec entries. | |
1629 | * configure: Regenerate. | |
1630 | * Makefile.am: Add EFI files. | |
1631 | * Makefile.in: Regenerate. | |
1632 | ||
ab1579fd NS |
1633 | 2008-02-14 Nathan Sidwell <nathan@codesourcery.com> |
1634 | ||
1635 | * dwarf1.c (struct dwarf1_debug): Add syms member. | |
1636 | (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory. | |
1637 | (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate | |
1638 | section contents, check for out of memory. | |
1639 | ||
1640 | * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte. | |
1641 | (parse_die): Change data pointers to bfd_byte. | |
1642 | (parse_line_table, parse_functions_in_unit): Likewise. | |
1643 | ||
d40f3da9 AM |
1644 | 2008-02-14 Alan Modra <amodra@bigpond.net.au> |
1645 | ||
1646 | * elflink.c (compute_bucket_count): Warning fixes. | |
1647 | ||
f15557e4 DD |
1648 | 2008-02-12 DJ Delorie <dj@redhat.com> |
1649 | ||
1650 | * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of | |
1651 | relocation pointing to local symbol in merged section. | |
1652 | ||
1653 | * elf32-iq2000.c (iq2000_elf_relocate_offset16): New. | |
1654 | (iq2000_elf_relocate_section): Call it. | |
1655 | ||
0ffa91dd NC |
1656 | 2008-02-12 Nick Clifton <nickc@redhat.com> |
1657 | ||
1658 | PR ld/5692 | |
1659 | * elf-bfd.h (enum elf_object_id): New enum, used to identify | |
1660 | target specific extensions to the elf_obj_tdata structure. | |
1661 | (struct elf_obj_tdata): New field 'object_id'. | |
1662 | (elf_object_id, elf_program_header_size, elf_symtab_hdr): New | |
1663 | macros for accessing fields in the elf_obj_tdata structure. | |
1664 | (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object. | |
1665 | (bfd_elf_allocate_object): New function. | |
1666 | * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object | |
1667 | and implement by calling bfd_elf_allocate_object. | |
1668 | (bfd_elf_allocate_object): New function: Allocates an | |
1669 | elf_obj_tdata structure, possibly with a target specific | |
1670 | extension. | |
1671 | * elfxx-target.h (bfd_elfNN_mkobject): Use | |
1672 | bfd_elf_make_generic_object as the default value. | |
1673 | * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata | |
1674 | for consistency with other, similar structures. | |
1675 | (is_arm_elf): New macro. Checks a BFD to make sure that is an ARM | |
1676 | ELF bfd. | |
1677 | (elf32_arm_mkobject): Call bfd_elf_allocate_object. | |
1678 | (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check | |
1679 | the bfd being processed. | |
1680 | (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise. | |
1681 | (bfd_elf32_arm_set_target_relocs): Likewise. | |
1682 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
1683 | (bfd_elf32_arm_copy_private_bfd_data): Likewise. | |
1684 | (bfd_elf32_arm_merge_eabi_attributes): Likewise. | |
1685 | (bfd_elf32_arm_merge_private_bfd_data): Likewise. | |
1686 | (bfd_elf32_arm_check_relocs): Likewise. | |
1687 | (bfd_elf32_arm_gc_mark_extra_sections): Likewise. | |
1688 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
1689 | (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr. | |
1690 | (bfd_elf32_arm_init_maps): Likewise. | |
1691 | (bfd_elf32_arm_final_link_relocate): Likewise. | |
1692 | (bfd_elf32_arm_relocate_section): Likewise. | |
1693 | (bfd_elf32_arm_gc_sweep_hook): Likewise. | |
1694 | (bfd_elf32_arm_check_relocs): Likewise. | |
1695 | (bfd_elf32_arm_size_dynamic_sections): Likewise. | |
1696 | * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object. | |
1697 | (is_i386_elf): New macro. Checks a BFD to make sure that is an x86 | |
1698 | ELF bfd. | |
1699 | (elf_i386_check_relocs): Use is_i386_elf macro to check the bfd | |
1700 | being processed. | |
1701 | (elf_i386_size_dynamic_sections): Likewise. | |
1702 | (elf_i386_relocate_section): Likewise. | |
1703 | (elf_i386_check_relocs): Use elf_symtab_hdr. | |
1704 | (elf_i386_gc_sweep_hook): Likewise. | |
1705 | (elf_i386_size_dynamic_sections): Likewise. | |
1706 | (elf_i386_relocate_section): Likewise. | |
1707 | * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object. | |
1708 | (elf_create_pointer_linker_section): Use is_ppc_elf_target to | |
1709 | verify that the bfd before accessing target specific fields. | |
1710 | (ppc_elf_check_relocs): Likewise. | |
1711 | (elf_finish_pointer_linker_section): Likewise. | |
1712 | (elf_create_pointer_linker_section): Use elf_symtab_hdr. | |
1713 | (ppc_elf_check_relocs): Likewise. | |
1714 | (ppc_elf_gc_sweep_hook): Likewise. | |
1715 | (ppc_elf_tls_optimize): Likewise. | |
1716 | (ppc_elf_size_dynamic_sections): Likewise. | |
1717 | (ppc_elf_relax_section): Likewise. | |
1718 | (ppc_elf_relocate_section): Likewise. | |
1719 | * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment | |
1720 | reminding programmers to keep this structure in sync with the one | |
1721 | defined in elf64-s390.c. | |
1722 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
1723 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
1724 | ELF bfd. | |
1725 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
1726 | being processed. | |
1727 | (elf_s390_size_dynamic_sections): Likewise. | |
1728 | (elf_s390_relocate_section): Likewise. | |
1729 | (elf_s390_check_relocs): Use elf_symtab_hdr. | |
1730 | (elf_s390_gc_sweep_hook): Likewise. | |
1731 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 1732 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
1733 | * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object. |
1734 | (is_sh_elf): New macro. Checks a BFD to make sure that is an SH | |
1735 | ELF bfd. | |
1736 | (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the | |
1737 | bfd being processed. | |
1738 | (sh_elf_relocate_section): Likewise. | |
1739 | (sh_elf_check_relocs): Likewise. | |
1740 | (sh_elf_copy_private_data): Likewise. | |
1741 | (sh_elf_relax_section): Use elf_symtab_hdr. | |
1742 | (sh_elf_size_dynamic_sections): Likewise. | |
1743 | (sh_elf_relocate_section): Likewise. | |
1744 | (sh_elf_get_relocated_section_contents): Likewise. | |
1745 | (sh_elf_gc_sweep_hook): Likewise. | |
1746 | (sh_elf_check_relocs): Likewise. | |
1747 | * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object. | |
1748 | (is_alpha_elf): New macro. Checks a BFD to make sure that is an | |
1749 | Alpha ELF bfd. | |
1750 | (elf64_alpha_create_got_section): Use is_alpha_elf macro to check | |
1751 | the bfd being processed. | |
1752 | (elf64_alpha_create_dynamic_section): Likewise. | |
1753 | (elf64_alpha_check_relocs): Likewise. | |
1754 | (elf64_alpha_size_got_sections): Likewise. | |
1755 | (elf64_alpha_relax_section): Likewise. | |
1756 | (elf64_alpha_relocate_section): Likewise. | |
1757 | (elf64_alpha_final_link): Likewise. | |
1758 | (elf64_alpha_check_relocs): Use elf_symtab_hdr. | |
1759 | (elf64_alpha_relax_section): Likewise. | |
1760 | (elf64_alpha_relocate_section_r): Likewise. | |
1761 | (elf64_alpha_relocate_section): Likewise. | |
1762 | * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object. | |
1763 | (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd | |
1764 | being processed. | |
1765 | (opd_entry_value): Likewise. | |
1766 | (allocate_dynrelocs): Likewise. | |
1767 | (ppc64_elf_relocate_section): Likewise. | |
1768 | (ppc64_elf_check_relocs): Use elf_symtab_hdr. | |
1769 | (opd_entry_value): Likewise. | |
1770 | (ppc64_elf_gc_sweep_hook): Likewise. | |
1771 | (get_sym_h): Likewise. | |
1772 | (ppc64_elf_edit_opd): Likewise. | |
1773 | (ppc64_elf_tls_optimize): Likewise. | |
1774 | (ppc64_elf_edit_toc): Likewise. | |
1775 | (ppc64_elf_size_dynamic_sections): Likewise. | |
1776 | (toc_adjusting_stub_needed): Likewise. | |
1777 | (ppc64_elf_size_stubs): Likewise. | |
1778 | (ppc64_elf_relocate_section): Likewise. | |
1779 | * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment | |
1780 | reminding programmers to keep this structure in sync with the one | |
1781 | defined in elf32-s390.c. | |
1782 | (elf_s390_mkobject): Call bfd_elf_allocate_object. | |
1783 | (is_s390_elf): New macro. Checks a BFD to make sure that is an s390 | |
1784 | ELF bfd. | |
1785 | (elf_s390_check_relocs): Use is_s390_elf macro to check the bfd | |
1786 | being processed. | |
1787 | (elf_s390_size_dynamic_sections): Likewise. | |
0eb4a168 | 1788 | (elf_s390_relocate_section): Likewise. |
0ffa91dd NC |
1789 | (elf_s390_check_relocs): Use elf_symtab_hdr. |
1790 | (elf_s390_gc_sweep_hook): Likewise. | |
1791 | (elf_s390_size_dynamic_sections): Likewise. | |
1792 | (elf_s390_relocate_section): Likewise. | |
1793 | * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object. | |
1794 | (is_x86_64_elf): New macro. Checks a BFD to make sure that is an | |
1795 | x86_64 ELF bfd. | |
1796 | (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd | |
1797 | being processed. | |
1798 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
1799 | (elf64_x86_64_relocate_section): Likewise. | |
1800 | (elf64_x86_64_check_relocs): Use elf_symtab_hdr. | |
1801 | (elf64_x86_64_gc_sweep_hook): Likewise. | |
1802 | (elf64_x86_64_size_dynamic_sections): Likewise. | |
1803 | (elf64_x86_64_relocate_section): Likewise. | |
1804 | * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object. | |
1805 | (is_sparc_elf): New macro. Checks a BFD to make sure that is a Sparc | |
1806 | ELF bfd. | |
1807 | (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the | |
1808 | bfd being processed. | |
1809 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
1810 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
1811 | (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr. | |
1812 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
1813 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
0eb4a168 | 1814 | (_bfd_sparc_elf_relocate_section): Likewise. |
0ffa91dd | 1815 | |
be4291f1 AM |
1816 | 2008-02-12 Alan Modra <amodra@bigpond.net.au> |
1817 | ||
1818 | PR 5303, 5755 | |
1819 | * arange-set.c: Delete. | |
1820 | * arange-set.h: Delete. | |
1821 | * dwarf2.c: Revert 2007-09-21 changes. | |
1822 | * Makefile.am: Likewise. | |
1823 | * Makefile.in: Regenerate. | |
1824 | * po/SRC-POTFILES.in: Regenerate. | |
1825 | ||
7a84e3da BS |
1826 | 2008-02-11 Bernd Schmidt <bernd.schmidt@analog.com> |
1827 | ||
1828 | * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it | |
1829 | if necessary. | |
1830 | (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type | |
1831 | mismatches are detected. | |
1832 | ||
ca889129 BS |
1833 | * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to |
1834 | emit invalid relocs or rofixup entries for deleted .eh_frame entries. | |
1835 | ||
662ed161 DJ |
1836 | 2008-02-11 Daniel Jacobowitz <dan@codesourcery.com> |
1837 | ||
1838 | * cache.c (cache_bread): Set bfd_error_file_truncated if EOF | |
1839 | was reached. | |
1840 | * srec.c (srec_scan): Calculate the checksum. Complain on mismatch. | |
1841 | ||
2e444bea AM |
1842 | 2008-02-07 Alan Modra <amodra@bigpond.net.au> |
1843 | ||
1844 | * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling | |
1845 | of _ovly_buf_table size. | |
1846 | (spu_elf_build_stubs): Use low bit of .size as "present" bit. | |
1847 | Adjust initialisations relating to _ovly_buf_table. | |
1848 | ||
d9ab3f29 | 1849 | 2008-02-04 Bob Wilson <bob.wilson@acm.org> |
0eb4a168 | 1850 | |
d9ab3f29 BW |
1851 | * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid |
1852 | relocation, do not continue processing it. Ignore R_XTENSA_ASM_EXPAND | |
1853 | relocations against dynamic symbols. | |
1854 | (elf_xtensa_finish_dynamic_sections): Do not fail if there is no | |
1855 | .xt.lit section. | |
0eb4a168 | 1856 | |
bb8541b9 L |
1857 | 2008-02-04 Kai Tietz <kai.tietz@onevision.com> |
1858 | H.J. Lu <hongjiu.lu@intel.com> | |
1859 | ||
1860 | PR 5715 | |
1861 | * warning.m4: Enable -Wno-format by default when using gcc on | |
1862 | mingw. | |
1863 | * configure: Regenerated. | |
1864 | ||
6f179bd0 AN |
1865 | 2008-02-04 Adam Nemet <anemet@caviumnetworks.com> |
1866 | ||
1867 | * archures.c: Update copyright. | |
1868 | (bfd_mach_mips_octeon): New macro. | |
1869 | * bfd-in2.h: Regenerate. | |
1870 | * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon. | |
1871 | (mips_set_isa_flags): Likewise. | |
1872 | (mips_mach_extensions): Add Octeon. | |
1873 | * cpu-mips.c: Update copyright. | |
1874 | (I_mipsocteon): New enum constant. | |
1875 | (arch_info_struct): Add Octeon. | |
1876 | ||
d16c7321 AM |
1877 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
1878 | ||
1879 | * elf32-spu.c (spu_elf_relocate_section): Correct return type. | |
1880 | Return error status on unexpected relocation errors. | |
1881 | ||
e44a2c9c AM |
1882 | 2008-02-04 Alan Modra <amodra@bigpond.net.au> |
1883 | ||
1884 | PR ld/5692 | |
1885 | * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31. Instead abort | |
1886 | on non-ELF input. | |
1887 | * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue | |
1888 | processing on non-ELF input. | |
1889 | ||
f8a52b59 BW |
1890 | 2008-01-31 Marc Gauthier <marc@tensilica.com> |
1891 | ||
1892 | * config.bfd (xtensa*-*-*): Recognize processor variants. | |
1893 | ||
b7c368d0 NC |
1894 | 2008-01-31 Nick Clifton <nickc@redhat.com> |
1895 | ||
1896 | PR ld/5692 | |
1897 | * elf.c (bfd_elf_get_elf_syms): Check the return value of | |
1898 | get_elf_backend_data. | |
1899 | ||
00b2bfc1 NC |
1900 | 2008-01-28 Fabian Groffen <grobian@gentoo.org> |
1901 | ||
1902 | * config.bfd (x86_64-*-solaris2): Add support for this target. | |
1903 | ||
47f6dab9 AM |
1904 | 2008-01-28 Alan Modra <amodra@bigpond.net.au> |
1905 | ||
1906 | Rewrite SPU overlay handling code. Put overlay calls stubs in the | |
1907 | overlays where possible. Use a faster call stub, or optionally at | |
1908 | compile time, a more compact stub. Double size of _ovly_buf_table | |
1909 | so that low bit of _ovly_table.buf can be used as a "present" bit. | |
1910 | Reserve an extra _ovly_table entry for index zero. | |
1911 | * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields, | |
1912 | add new ones. | |
1913 | (struct got_entry): New. | |
1914 | (struct spu_stub_hash_entry): Delete. | |
1915 | (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete. | |
1916 | (spu_elf_link_hash_table_create): Adjust for struct changes. | |
1917 | (spu_stub_name): Delete. | |
1918 | (spu_elf_find_overlays): Don't track sections from overlay regions. | |
1919 | Instead set ovl_buf number in spu elf section data. Error if | |
1920 | overlays in one region don't start at the same address. Adjust | |
1921 | for struct _spu_elf_section_data changes. | |
1922 | (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete. | |
1923 | (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define. | |
1924 | (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes. | |
1925 | (enum _insn_type): New. | |
1926 | (count_stub, build_stub): New functions. | |
1927 | (allocate_spuear_stubs): Use count_stub. | |
1928 | (build_spuear_stubs): Use build_stub. | |
1929 | (populate_stubs, sort_stubs): Delete. | |
1930 | (process_stubs): New function. | |
1931 | (write_one_stub): Delete. | |
1932 | (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite. | |
1933 | (alloc_stack_info): Adjust for struct _spu_elf_section_data changes. | |
1934 | (maybe_insert_function, check_function_ranges): Likewise. | |
1935 | (find_function, pasted_function, build_call_tree): Likewise. | |
1936 | (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise. | |
1937 | (spu_elf_modify_program_headers): Likewise. | |
1938 | (interesting_section): Detect stub sections differently. Delete | |
1939 | htab param, adjust all callers. | |
1940 | (spu_elf_relocate_section): Rewrite stub handling. | |
1941 | (spu_elf_output_symbol_hook): Likewise. | |
1942 | (bfd_elf32_bfd_link_hash_table_free): Delete. | |
1943 | * elf32-spu.h (struct _spu_elf_section_data): Move input-only and | |
1944 | output-only fields into a union. Add ovl_buf. | |
1945 | (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes. | |
1946 | ||
c006d697 DD |
1947 | 2008-01-25 DJ Delorie <dj@redhat.com> |
1948 | ||
1949 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New. | |
1950 | ||
6e3d6dc1 NC |
1951 | 2008-01-25 Kai Tietz <kai.tietz@onevision.com> |
1952 | ||
1953 | * bfd-in.h: Add mingw I64 support. | |
1954 | * bfd-in2.h: Regenerated. | |
1955 | * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64. | |
1956 | ||
fbb3bb98 AM |
1957 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
1958 | ||
1959 | PR 4453 | |
1960 | * format.c (bfd_check_format_matches): Don't accept archives as | |
1961 | fully matching unless they have a map. | |
1962 | ||
297d8443 AM |
1963 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
1964 | ||
1965 | * elflink.c (_bfd_elf_link_output_relocs): Correct error return. | |
1966 | ||
66cd82b5 AM |
1967 | 2008-01-21 Alan Modra <amodra@bigpond.net.au> |
1968 | ||
1969 | * ecoff.c (_bfd_ecoff_archive_p): Delete. | |
1970 | * libecoff.h (_bfd_ecoff_archive_p): Delete. | |
1971 | * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p. | |
1972 | * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise. | |
1973 | (ecoff_biglittle_vec): Likewise. | |
1974 | ||
85f7a9cb AM |
1975 | 2008-01-19 Alan Modra <amodra@bigpond.net.au> |
1976 | ||
1977 | PR 5646 | |
1978 | * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr | |
1979 | non-NULL before dereferencing. | |
1980 | ||
74f0fb50 AM |
1981 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
1982 | ||
1983 | PR 5604 | |
1984 | * elf-bfd.h (struct elf_backend_data): Add gc_keep. Remove param | |
1985 | names from others. | |
1986 | (_bfd_elf_gc_keep): Declare. | |
1987 | * elfxx-target.h (elf_backend_gc_keep): Define. | |
1988 | (elfNN_bed): Init new field. | |
1989 | * elflink.c (_bfd_elf_gc_keep): New function. | |
1990 | (bfd_elf_gc_sections): Call gc_keep. | |
1991 | * elf64-ppc.c (elf_backend_gc_keep): Define. | |
1992 | (struct _ppc64_elf_section_data): Move .opd related fields to | |
1993 | a struct so they don't occupy the same storage. Adjust accesses | |
1994 | throughout file. | |
1995 | (ppc64_elf_gc_keep): New function, split out from.. | |
1996 | (ppc64_elf_gc_mark_hook): ..here. Don't call _bfd_elf_gc_mark | |
1997 | to mark .opd section, just set gc_mark. | |
1998 | (ppc64_elf_edit_opd): Remove no_opd_opt parm. Don't set opd->adjust | |
1999 | unless we are changing .opd. Test non-NULL opd->adjust at all | |
2000 | accesses throughout file. | |
2001 | * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype. | |
2002 | ||
787daa7a AM |
2003 | 2008-01-15 Alan Modra <amodra@bigpond.net.au> |
2004 | ||
2005 | * bfd-in.h (BFD_HOST_LONG_LONG): Delete. | |
2006 | * bfd-in2.h: Regenerate. | |
2007 | ||
7dda2462 TG |
2008 | 2008-01-11 Tristan Gingold <gingold@adacore.com> |
2009 | Eric Botcazou <ebotcazou@adacore.com> | |
2010 | ||
2011 | * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a | |
2012 | relocatable. | |
2013 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise. | |
2014 | * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise. | |
2015 | * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise. | |
2016 | * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise. | |
2017 | * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise. | |
2018 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise. | |
2019 | * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
2020 | * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise. | |
2021 | * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise. | |
2022 | * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise. | |
2023 | * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise. | |
2024 | * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise. | |
2025 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise. | |
2026 | * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise. | |
2027 | * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
2028 | * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output | |
2029 | or executable output with relocations. | |
2030 | ||
d2e2e649 NC |
2031 | 2008-01-09 Nick Clifton <nickc@redhat.com> |
2032 | ||
2033 | PR gas/5552 | |
2034 | * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field | |
2035 | to FALSE for all relocs. | |
2036 | ||
184d07da RS |
2037 | 2008-01-09 Richard Sandiford <rsandifo@nildram.co.uk> |
2038 | ||
2039 | PR ld/5526 | |
2040 | * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged | |
2041 | fields. Rename u.cie.u.merged to u.cie.u.merged_with. | |
2042 | (eh_frame_sec_info): Add a cies field. | |
2043 | (eh_frame_hdr_info): Add a merge_cies field. | |
2044 | * elf-eh-frame.c (cie): Add a reloc_index member to the personality | |
2045 | union. | |
2046 | (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead | |
2047 | of hdr_info->cies. | |
2048 | (_bfd_elf_parse_eh_frame): Remove tmp_cie. Ccreate an array of | |
2049 | cie structures in all cases and use it instead of extended_cies. | |
2050 | If merging, store the cie array in sec_info->cies and point each | |
2051 | CIE's eh_fde_cie at the associated element. Do not try to | |
2052 | calculate the value of the personality routine here; record the | |
2053 | offset of the relocation instead. Do not merge CIEs here. | |
2054 | (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here... | |
2055 | (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead. | |
2056 | (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE. | |
2057 | (find_merged_cie): New function. | |
2058 | (_bfd_elf_gc_mark_fdes): Use it. Free sec_info->cies. | |
2059 | ||
780b2360 NC |
2060 | 2008-01-07 Nick Clifton <nickc@redhat.com> |
2061 | ||
2062 | PR binutils/5535 | |
2063 | * vms.c (vms_close_and_cleanup): Check for the presence of a | |
2064 | vms_private_data_struct before examining any of its fields. | |
2065 | ||
ace79388 L |
2066 | 2008-01-07 H.J. Lu <hongjiu.lu@intel.com> |
2067 | ||
2068 | PR ld/5522 | |
2069 | * elflink.c (elf_link_input_bfd): Don't write out a section if | |
2070 | its output section is marked with SEC_NEVER_LOAD. | |
2071 | ||
6c7ac64e | 2072 | For older changes see ChangeLog-2007 |
56882138 AM |
2073 | \f |
2074 | Local Variables: | |
2075 | mode: change-log | |
2076 | left-margin: 8 | |
2077 | fill-column: 74 | |
2078 | version-control: never | |
2079 | End: |