]>
Commit | Line | Data |
---|---|---|
b48ca1d4 DM |
1 | 2010-03-01 David S. Miller <davem@davemloft.net> |
2 | ||
3 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and | |
4 | h->def_regular, set h->ref_regular. | |
5 | (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries | |
6 | and dynamic relocations if h->ref_regular. | |
7 | ||
679b7c76 DM |
8 | * elfxx-sparc.c (struct elf_reloc_map): Delete. |
9 | (sparc_reloc_map): Delete. | |
10 | (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each | |
11 | relocation type in switch statements. | |
12 | ||
dfa7b0b8 AM |
13 | 2010-02-25 Alan Modra <amodra@gmail.com> |
14 | ||
15 | PR ld/11304 | |
16 | * elf.c (_bfd_elf_init_private_section_data): Rename need_group | |
17 | to final_link and invert. For final link allow some flags to | |
18 | differ. Don't specially allow flags to be all zero. | |
19 | ||
d4a77f3f NC |
20 | 2010-02-24 Alan Modra <amodra@gmail.com> |
21 | ||
22 | PR binutils/10858 | |
23 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise | |
24 | SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol | |
25 | table. | |
26 | ||
17e57237 NC |
27 | 2010-02-23 Andrew Zabolotny <anpaza@mail.ru> |
28 | ||
29 | PR binutils/11297 | |
30 | * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8. | |
31 | (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8. | |
32 | ||
263badd7 AM |
33 | 2010-02-22 Alan Modra <amodra@gmail.com> |
34 | ||
35 | * reloc.c (bfd_check_overflow): When forming addrmask, shift | |
36 | fieldmask left by rightshift. | |
37 | (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all | |
38 | overflow checks. | |
39 | ||
c35bdf6e L |
40 | 2010-02-20 H.J. Lu <hongjiu.lu@intel.com> |
41 | ||
42 | * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check | |
43 | STT_GNU_IFUNC on large common symbol. | |
44 | ||
c16153ae L |
45 | 2010-02-18 H.J. Lu <hongjiu.lu@intel.com> |
46 | ||
47 | * elf32-i386.c (elf_i386_add_symbol_hook): Don't set | |
48 | has_ifunc_symbols if the symbol comes from a shared library. | |
49 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. | |
50 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise. | |
51 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise. | |
52 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise. | |
53 | * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise. | |
54 | ||
d0bf826b AM |
55 | 2010-02-19 Alan Modra <amodra@gmail.com> |
56 | ||
57 | * elf.c (_bfd_elf_fixup_group_sections): New function, split out from.. | |
58 | (_bfd_elf_copy_private_header_data): ..here. | |
59 | * elflink.c (_bfd_elf_size_group_sections): New function. | |
60 | (bfd_elf_size_dynamic_sections): Call it. | |
61 | * elf-bfd.h (_bfd_elf_size_group_sections): Declare. | |
62 | (_bfd_elf_fixup_group_sections): Declare. | |
63 | ||
cd21e546 MGD |
64 | 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
65 | ||
66 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for | |
67 | merging Tag_DIV_use, Tag_MPextension_use, and | |
68 | Tag_MPextension_use_legacy tags. | |
69 | ||
415f38a6 AM |
70 | 2010-02-18 Alan Modra <amodra@gmail.com> |
71 | ||
72 | * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15 | |
73 | commit. Don't write zeros for removed group members. | |
74 | (_bfd_elf_copy_private_header_data): Adjust size of group section | |
75 | when group members are removed by objcopy. | |
76 | ||
b946d5d8 DK |
77 | 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com> |
78 | ||
79 | PR binutils/11280 | |
80 | * configure.host (*-*-solaris2.11): Add host define to select | |
81 | valid default code page for windres/windmc on solaris. | |
82 | ||
ab7875de NC |
83 | 2010-02-15 Nick Clifton <nickc@redhat.com> |
84 | ||
85 | * po/vi.po: Updated Vietnamese translation. | |
86 | ||
33811162 DG |
87 | 2010-02-12 Daniel Gutson <dgutson@codesourcery.com> |
88 | ||
89 | * elf32-arm.c (elf32_arm_output_arch_local_syms): add | |
90 | missing mapping symbol to data only sections. | |
91 | ||
00c50991 DM |
92 | 2010-02-11 David S. Miller <davem@davemloft.net> |
93 | ||
94 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22 | |
95 | and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global | |
96 | symbols. | |
97 | (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for | |
98 | these relocs on global symbols. | |
99 | (gdopoff): New. | |
100 | (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on | |
101 | local symbol references which are not STT_GNU_IFUNC. Handle | |
102 | relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively, | |
103 | and deal with negative vs. non-negative values properly. | |
104 | ||
1523fa24 TG |
105 | 2010-02-09 Tristan Gingold <gingold@adacore.com> |
106 | ||
107 | * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for | |
108 | non-external relocation. | |
109 | ||
7865406b AM |
110 | 2010-02-09 Alan Modra <amodra@gmail.com> |
111 | ||
112 | * elf64-ppc.c (merge_got_entries): Move earlier in file. | |
113 | (allocate_dynrelocs): Merge got entries here if not doing multi-toc. | |
114 | (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got. | |
115 | (ppc64_elf_layout_multitoc): Don't resize if we have already | |
116 | merged got entries. | |
117 | ||
d7eeb400 MS |
118 | 2010-02-09 Michael Holzheu <holzheu@de.ibm.com> |
119 | ||
120 | * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp, | |
121 | elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, | |
122 | elfcore_write_s390_prefix): New. | |
123 | * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp, | |
124 | elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, | |
125 | elfcore_write_s390_prefix): New. | |
126 | (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP, | |
127 | NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX. | |
128 | (elfcore_write_register_note): Handle .reg-s390-timer, | |
129 | .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs, | |
130 | .reg-s390-prefix section. | |
131 | ||
f961d9dd AM |
132 | 2010-02-09 Alan Modra <amodra@gmail.com> |
133 | ||
134 | * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect | |
135 | unsigned char. Update variables and code using them throughout file. | |
136 | (struct ppc_link_hash_entry): Likewise for tls_mask. | |
137 | ||
d0fae19d AM |
138 | * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents. |
139 | ||
d77c8a4b AM |
140 | * elf64-ppc.c (has_small_toc_reloc): Don't define. |
141 | (makes_toc_func_call, call_check_in_progress): Shuffle flags. | |
142 | (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update | |
143 | code setting the flag. | |
144 | (ppc64_elf_next_toc_section): Group big-toc sections in | |
145 | 0x80008000 chunks. | |
146 | ||
72fbc6e5 DM |
147 | 2010-02-08 David S. Miller <davem@davemloft.net> |
148 | ||
149 | * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot, | |
150 | srelgot, splt, srelplt, and sgotplt members in favor of generic copies. | |
151 | ||
152 | * elfxx-sparc.c (create_got_section): Delete. | |
153 | (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic | |
154 | section creator does that work for us. Use ->elf.foo instead of | |
155 | ->foo where applicable. | |
156 | (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo | |
157 | where applicable. | |
158 | (allocate_dynrelocs): Likewise. | |
159 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
160 | (_bfd_sparc_elf_relocate_section): Likewise. | |
161 | (sparc_vxworks_build_plt_entry): Likewise. | |
162 | (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
163 | (sparc_finish_dyn): Likewise. | |
164 | (sparc_vxworks_finish_exec_plt): Likewise. | |
165 | (sparc_vxworks_finish_shared_plt): Likewise. | |
166 | (_bfd_sparc_elf_finish_dynamic_sections): Likewise. | |
167 | ||
168 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_* | |
169 | macros for visibilty and locality checks. | |
170 | (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. | |
171 | (allocate_dynrelocs): Likewise. | |
172 | (_bfd_sparc_elf_relocate_section): Likewise. | |
173 | (_bfd_sparc_elf_finish_dynamic_symbol):Likewise. | |
174 | ||
175 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set | |
176 | but never used local var 'dynobj'. | |
177 | ||
178 | * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle | |
179 | nocopyreloc. | |
180 | ||
d0c9aeb3 DM |
181 | * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New. |
182 | (BFD_RELOC_SPARC_IRELATIVE): Likewise. | |
183 | * bfd-in2.h: Regenerate. | |
184 | * libbfd.h: Regenerate. | |
185 | ||
186 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table | |
187 | and loc_hash_memory. | |
188 | (_bfd_sparc_elf_link_hash_table_free): Declare. | |
189 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): New. | |
190 | (elf_backend_add_symbol_hook, elf_backend_post_process_headers, | |
191 | bfd_elf32_bfd_link_hash_table_free): Define. | |
192 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set | |
193 | has_ifunc_symbols if STT_GNU_IFUNC. | |
194 | (bfd_elf64_bfd_link_hash_table_free): Define. | |
195 | (elf_backend_post_process_headers): Define always. | |
196 | * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New. | |
197 | (sparc_reloc_map): Add entries for new IFUNC relocs. | |
198 | (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs. | |
199 | (_bfd_sparc_elf_info_to_howto_ptr): Likewise. | |
200 | (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq, | |
201 | elf_sparc_get_local_sym_hash): New. | |
202 | (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization | |
203 | from here... | |
204 | (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate | |
205 | local hash table. | |
206 | (_bfd_sparc_elf_link_hash_table_free): New. | |
207 | (create_ifunc_sections): New. | |
208 | (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj | |
209 | and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols | |
210 | cons up a fake local hash table entry for it. Unconditionally add | |
211 | a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count | |
212 | dyn relocs for ifunc. | |
213 | (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc. | |
214 | (allocate_dynrelocs): Unconditionally emit a PLT entry when | |
215 | STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc. | |
216 | (allocate_local_dynrelocs): New function. | |
217 | (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash | |
218 | table. Emit dynamic relocs to irelplt when not shared. Treat iplt | |
219 | like splt. | |
220 | (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand. | |
221 | (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc | |
222 | plt in iplt/irelplt. | |
223 | ||
9ea2b942 RS |
224 | 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com> |
225 | ||
226 | * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating | |
227 | max_contents_size, only consider sections whose contents must | |
228 | be swapped in. | |
229 | ||
0b8bcf0d AM |
230 | 2010-02-09 Alan Modra <amodra@gmail.com> |
231 | ||
232 | * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here.. | |
233 | (ppc64_elf_size_dynamic_sections): ..and here.. | |
234 | (merge_got_entries): ..rather than here. | |
235 | ||
33c0ec9d AM |
236 | 2010-02-09 Alan Modra <amodra@gmail.com> |
237 | ||
238 | * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc. | |
239 | (has_small_toc_reloc): Define. | |
240 | (ppc64_elf_check_relocs): Set the above flags. | |
241 | (ppc64_elf_edit_opd): Delete obfd param. | |
242 | (ppc64_elf_tls_optimize): Likewise. | |
243 | (ppc64_elf_edit_toc): Likewise. | |
244 | (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param. | |
245 | * elf64-ppc.h: Update prototypes. | |
246 | ||
b0dddeec AM |
247 | 2010-02-08 Alan Modra <amodra@gmail.com> |
248 | ||
249 | * section.c (struct bfd_section): Delete has_tls_reloc, | |
250 | has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done. | |
251 | Add sec_flg0 thru sec_flg5. | |
252 | (BFD_FAKE_SECTION): Update for changed flags. | |
253 | * ecoff.c (bfd_debug_section): Likewise. | |
254 | * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define. | |
255 | * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define. | |
256 | (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update. | |
257 | * elf32-xtensa.c (reloc_done): Define. | |
258 | * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update. | |
259 | * bfd-in2.h: Regenerate. | |
260 | ||
06988dfc TG |
261 | 2010-02-08 Tristan Gingold <gingold@adacore.com> |
262 | ||
263 | * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern | |
264 | for non-scattered relocations. | |
265 | ||
deddc40b NS |
266 | 2010-02-08 Nathan Sidwell <nathan@codesourcery.com> |
267 | ||
268 | * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty | |
269 | apuinfo sections, only scan input sections once and reuse the | |
270 | buffer. | |
271 | ||
ce3d2015 AM |
272 | 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
273 | ||
274 | * archures.c (bfd_mach_ppc_titan): Define. | |
275 | * bfd-in2.h: Regenerate. | |
276 | * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry. | |
277 | ||
06a162cf AM |
278 | 2010-02-08 Alan Modra <amodra@gmail.com> |
279 | ||
280 | * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code. | |
281 | ||
4c348442 SA |
282 | 2010-02-05 Sterling Augustine <sterling@tensilica.com> |
283 | ||
284 | * elf.c (assign_file_positions_for_load_sections) Update lma of | |
285 | section if necessary. Fixes Bugzilla 11219. | |
286 | ||
6bbec505 L |
287 | 2010-02-05 H.J. Lu <hongjiu.lu@intel.com> |
288 | ||
289 | * elf32-i386.c: Remove trailing white spaces. | |
290 | * elf64-x86-64.c: Likewise. | |
291 | ||
4dfe6ac6 NC |
292 | 2010-02-03 Nick Clifton <nickc@redhat.com> |
293 | ||
294 | * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add | |
295 | entries for other architectures. | |
296 | (struct elf_link_hash_table): Add hash_table_id field. | |
297 | (elf_hash_table_id): New accessor macro. | |
298 | * elflink.c (_bfd_elf_link_hash_table_init): Add target_id | |
299 | parameter. | |
300 | * elf-m10300.c (elf32_mn10300_hash_table): Check table id before | |
301 | returning cast pointer. | |
302 | (elf32_mn10300_link_hash_table_create): Identify new table as | |
303 | containing MN10300 extensions. | |
304 | (mn10300_elf_relax_section): Check pointer returned by | |
305 | elf32_mn10300_hash_table. | |
306 | * elf32-arm.c: Likewise, except using ARM extensions. | |
307 | * elf32-avr.c: Likewise, except using AVR extensions. | |
308 | * elf32-bfin.c: Likewise, except using BFIN extensions. | |
309 | * elf32-cris.c: Likewise, except using CRIS extensions. | |
310 | * elf32-frv.c: Likewise, except using FRV extensions. | |
311 | * elf32-hppa.c: Likewise, except using HPPA32 extensions. | |
312 | * elf32-i386.c: Likewise, except using I386 extensions. | |
313 | * elf32-lm32.c: Likewise, except using LM32 extensions. | |
314 | * elf32-m32r.c: Likewise, except using M32RM extensions. | |
315 | * elf32-m68hc11.c: Likewise, except using M68HC11 extensions. | |
316 | * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions. | |
317 | * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions. | |
318 | * elf32-m68k.c: Likewise, except using M68K extensions. | |
319 | * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions. | |
320 | * elf32-ppc.c: Likewise, except using PPC32 extensions. | |
321 | * elf32-s390.c: Likewise, except using S390 extensions. | |
322 | * elf32-sh.c: Likewise, except using SH extensions. | |
323 | * elf32-spu.c: Likewise, except using SPU extensions. | |
324 | * elf32-xtensa.c: Likewise, except using XTENSA extensions. | |
325 | * elf64-alpha.c: Likewise, except using ALPHA extensions. | |
326 | * elf64-hppa.c: Likewise, except using HPPA64 extensions. | |
327 | * elf64-ppc.c: Likewise, except using PPC64 extensions. | |
328 | * elf64-s390.c: Likewise, except using S390 extensions. | |
329 | * elf64-x86-64.c: Likewise, except using X86_64 extensions. | |
330 | * elfxx-ia64.c: Likewise, except using IA64 extensions. | |
331 | * elfxx-mips.c: Likewise, except using MIPS extensions. | |
332 | * elfxx-sparc.c: Likewise, except using SPARC extensions. | |
333 | * elfxx-sparc.h: Likewise, except using SPARC extensions. | |
334 | * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete | |
335 | redundant structure. | |
336 | (elf32_cr16_hash_table): Delete unused macro. | |
337 | (elf32_cr16_link_hash_traverse): Delete unused macro. | |
338 | * elf32-score.c: Likewise. | |
339 | * elf32-score7.c: Likewise. | |
340 | * elf32-vax.c: Likewise. | |
341 | * elf64-sh64.c: Likewise. | |
342 | ||
927be08e AM |
343 | 2010-02-03 Alan Modra <amodra@gmail.com> |
344 | ||
345 | * elf64-ppc.c (struct plt_entry): Move earlier in file. | |
346 | (struct got_entry): Likewise. Add is_indirect and got.ent fields. | |
347 | (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry. | |
348 | Update all uses. | |
349 | (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass. | |
350 | Remove no_multi_toc. | |
351 | (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect | |
352 | when allocating a new struct got_entry. | |
353 | (allocate_got): New function, extracted from.. | |
354 | (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd. | |
355 | (ppc64_elf_size_dynamic_sections): Track got relocs allocated in | |
356 | .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries. | |
357 | (ppc64_elf_setup_section_lists): Remove output_bfd param and | |
358 | no_multi_toc, add add_stub_section and layout_sections_again. Stash | |
359 | new params in htab. Extract some code to.. | |
360 | (ppc64_elf_start_multitoc_partition): ..here. New function. | |
361 | (ppc64_elf_next_toc_section): Check for linker script errors. Handle | |
362 | second pass toc scan. | |
363 | (merge_got_entries, merge_global_got, reallocate_got): New functions. | |
364 | (ppc64_elf_reinit_toc): Rename to.. | |
365 | (ppc64_elf_finish_multitoc_partition): ..this. | |
366 | (ppc64_elf_layout_multitoc): New function. | |
367 | (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and | |
368 | layout_sections_again params. | |
369 | (ppc64_elf_relocate_section): Handle indirect got entries. | |
370 | * elf64-ppc.h: Update prototypes. Declare new functions. | |
371 | ||
4339cae0 L |
372 | 2010-02-02 H.J. Lu <hongjiu.lu@intel.com> |
373 | ||
374 | * elf-bfd.h (elfcore_write_xstatereg): New. | |
375 | ||
376 | * elf.c (elfcore_grok_xstatereg): New. | |
377 | (elfcore_write_xstatereg): Likewise. | |
378 | (elfcore_grok_note): Handle NT_X86_XSTATE. | |
379 | (elfcore_write_register_note): Handle .reg-xstate section. | |
380 | ||
9848eadf TG |
381 | 2010-02-01 Tristan Gingold <gingold@adacore.com> |
382 | ||
383 | * som.c (som_write_ar_hdr): Define this macro. | |
384 | ||
f6fd0237 DA |
385 | 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
386 | ||
387 | * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L, | |
388 | R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the | |
389 | linkage table pointer to use the global table pointer if not doing | |
390 | a shared link. | |
391 | ||
a1504221 JB |
392 | 2010-01-29 Joel Brobecker <brobecker@adacore.com> |
393 | ||
394 | * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal | |
395 | if it has already been set. | |
396 | ||
771deb08 TG |
397 | 2010-01-27 Tristan Gingold <gingold@adacore.com> |
398 | ||
399 | * vms.h: Remove trailing spaces. | |
400 | (struct hdr_struct): Remove unused hdr_c_cpr field. | |
401 | (enum file_format_enum): Add comments. | |
402 | * vms.c (vms_bfd_print_private_bfd_data): New function that | |
403 | replaces the macro. | |
404 | Remove trailing spaces. | |
405 | * vms-misc.c: Improve comments. | |
406 | (_bfd_vms_get_object_record): Also handle files without pads. | |
407 | * vms-hdr.c (_bfd_vms_write_dbg): Fix format string. | |
408 | * vms-gsd.c (struct flagdescstruct): Make name field const. | |
409 | (gsyflagdesc): Fix typo. | |
410 | ||
bf102f86 AM |
411 | 2010-01-27 Alan Modra <amodra@gmail.com> |
412 | ||
413 | PR ld/11217 | |
414 | * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec. | |
415 | (ppc64_elf_setup_section_lists): Init them. | |
416 | (ppc64_elf_next_toc_section): Don't partition multi-toc between .got | |
417 | and .toc on the same input file. | |
418 | (ppc64_elf_relocate_section): Correct GOT entry offset. | |
419 | ||
8f95b6e4 TG |
420 | 2010-01-26 Tristan Gingold <gingold@adacore.com> |
421 | ||
422 | * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr. | |
423 | (bfd_target): Add _bfd_write_ar_hdr_fn field. | |
424 | * archive.c (is_bsd44_extended_name): New macro. | |
425 | (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size. | |
426 | (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended | |
427 | name. | |
428 | (_bfd_archive_bsd44_construct_extended_name_table): New function. | |
429 | (_bfd_generic_write_ar_hdr): Ditto. | |
430 | (_bfd_bsd44_write_ar_hdr): Ditto. | |
431 | (_bfd_write_archive_contents): Call _bfd_write_ar_hdr. | |
432 | (bsd_write_armap): Adjust firstreal computation. | |
433 | * libbfd-in.h (struct areltdata): Add extra_size field. | |
434 | (_bfd_generic_write_ar_hdr): Add prototype. | |
435 | (_bfd_bsd44_write_ar_hdr): Ditto. | |
436 | (_bfd_write_ar_hdr): Define. | |
437 | (_bfd_noarchive_write_ar_hdr): Ditto. | |
438 | (_bfd_archive_bsd_write_ar_hdr): Ditto. | |
439 | (_bfd_archive_coff_write_ar_hdr): Ditto. | |
440 | (_bfd_archive_bsd44_slurp_armap): Ditto. | |
441 | (_bfd_archive_bsd44_slurp_extended_name_table): Ditto. | |
442 | (_bfd_archive_bsd44_construct_extended_name_table): New prototype. | |
443 | (_bfd_archive_bsd44_truncate_arname): Ditto. | |
444 | (_bfd_archive_bsd44_write_armap): Ditto. | |
445 | (_bfd_archive_bsd44_read_ar_hdr): Ditto. | |
446 | (_bfd_archive_bsd44_write_ar_hdr): Ditto. | |
447 | (_bfd_archive_bsd44_openr_next_archived_file): Ditto. | |
448 | (_bfd_archive_bsd44_get_elt_at_index): Ditto. | |
449 | (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto. | |
450 | (_bfd_archive_bsd44_update_armap_timestamp): Ditto. | |
451 | * libbfd.h: Regenerate. | |
452 | * oasys.c (oasys_write_ar_hdr): Define. | |
453 | * libecoff.h (_bfd_ecoff_write_ar_hdr): Define. | |
454 | * ieee.c (ieee_write_ar_hdr): Define. | |
455 | * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define. | |
456 | * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field. | |
457 | (bfd_pmac_xcoff_backend_data): Ditto. | |
458 | * coff64-rs6000.c (rs6000coff64_vec): Ditto. | |
459 | (bfd_xcoff_aix5_backend_data): Ditto. | |
460 | * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define. | |
461 | * aout-target.h (MY_write_ar_hdr): Define it if not defined. | |
462 | * aout-tic30.c (MY_write_ar_hdr): Ditto. | |
463 | * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive. | |
464 | (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr) | |
465 | (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table) | |
466 | (bfd_mach_o_construct_extended_name_table) | |
467 | (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap) | |
468 | (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt) | |
469 | (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c | |
470 | * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr) | |
471 | (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table) | |
472 | (bfd_mach_o_construct_extended_name_table) | |
473 | (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap) | |
474 | (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt) | |
475 | (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c | |
476 | * bfd-in2.h: Regenerate. | |
477 | ||
98da7939 L |
478 | 2010-01-26 Alan Modra <amodra@gmail.com> |
479 | H.J. Lu <hongjiu.lu@intel.com> | |
480 | ||
481 | PR ld/11218 | |
482 | * elflink.c (elf_link_output_extsym): Do not ignore undefined | |
483 | symbols with ref_regular set when gc_sections is active. | |
484 | ||
766bc656 AM |
485 | 2010-01-25 Alan Modra <amodra@gmail.com> |
486 | ||
487 | PR ld/11217 | |
488 | * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences | |
489 | with relocations against undefined weak symbols. | |
490 | (ppc64_elf_relocate_section): Don't optimize calls to undefined | |
491 | weak functions if the symbol is dynamic. | |
492 | (ppc64_elf_relocate_section): Edit tprel tls sequences. | |
493 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
494 | (_bfd_elf_ppc_at_tprel_transform): New function. | |
495 | * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare. | |
496 | * bfd-in2.h: Regenerate. | |
497 | ||
c865e45b RS |
498 | 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com> |
499 | ||
500 | * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1. | |
501 | (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE. | |
502 | * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and | |
503 | bitsize to 1. | |
504 | (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE. | |
505 | ||
b918acf9 NC |
506 | 2010-01-21 Nick Clifton <nickc@redhat.com> |
507 | ||
508 | * elflink.c (elf_link_add_object_symbols): Look up name of | |
509 | undefined symbol both before and after versioning has been | |
510 | applied. Do not bother with symbols that are weakly undefined. | |
511 | ||
55786da2 | 512 | 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
b918acf9 | 513 | |
55786da2 AK |
514 | * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function. |
515 | (bfd_elf32_bfd_merge_private_bfd_data): New macro definition. | |
516 | ||
a37a68dd CC |
517 | 2010-01-19 Cary Coutant <ccoutant@google.com> |
518 | ||
519 | * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8. | |
520 | ||
ecd12bc1 AM |
521 | 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com> |
522 | Alan Modra <amodra@gmail.com> | |
523 | ||
524 | * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff. | |
525 | (elf_object_p): Read e_phnum extension. | |
526 | (elf_write_shdrs_and_ehdr): Write e_phnum extension. | |
527 | * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check | |
528 | that we can read last program header. | |
529 | ||
f6ebfac0 AM |
530 | 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
531 | ||
532 | * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of | |
533 | R_ARM_THM_CALL entry. | |
534 | (elf32_arm_final_link_relocate): Correct calculation of | |
535 | reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22, | |
536 | or R_ARM_THM_JUMP24 relocation. | |
537 | ||
22eb4b1d AM |
538 | 2010-01-18 Alan Modra <amodra@gmail.com> |
539 | ||
540 | PR 11168 | |
541 | * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C | |
542 | block past vars in COFF_IMAGE_WITH_PE block. Report error on more | |
543 | than 32k sections. | |
544 | ||
6ec12636 JK |
545 | 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com> |
546 | ||
547 | Fix compilation warning on gcc-3.4. | |
548 | * vms-tir.c (start_etir_record, sto_imm): Rename the prototype | |
549 | parameter index to sec_index according to the function definition. | |
550 | ||
38a7df63 CF |
551 | 2010-01-13 Chao-ying Fu <fu@mips.com> |
552 | ||
553 | * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B. | |
554 | It is true for all CPUs. | |
555 | (jal_reloc_p): New function. | |
556 | (mips_elf_calculate_relocation): Rename require_jalxp to | |
557 | cross_mode_jump_p. | |
558 | Update comment for CROSS_MODE_JUMP_P. | |
559 | Set up cross_mode_jump_p based on the mode change. | |
560 | (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p. | |
561 | Update comment for CROSS_MODE_JUMP_P. | |
562 | Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx. | |
563 | Use !cross_mode_jump_p to guard conversion. | |
564 | Convert "jr t9" to "b", if possible. | |
565 | (_bfd_mips_elf_relocate_section): Rename require_jalx to | |
566 | cross_mode_jump_p. | |
567 | Pass &cross_mode_jump_p to call mips_elf_calculate_relocation. | |
568 | Pass cross_mode_jump_p to call mips_elf_perform_relocation. | |
569 | ||
91b9a4a4 NC |
570 | 2010-01-13 Nick Clifton <nickc@redhat.com> |
571 | ||
572 | * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for | |
573 | "m32c" returns the m32c arch_info_struct and not the m16c | |
574 | arch_info_struct. | |
575 | (arch_info_struct): Use the new scan function. | |
576 | (bfd_m32c_arch): Likewise. | |
577 | ||
618b7301 TG |
578 | 2010-01-13 Tristan Gingold <gingold@adacore.com> |
579 | ||
580 | * config.bfd: Remove duplicated target vector for i386-*-darwin. | |
581 | Appends new arch instead of overriding. | |
582 | Use mach_o_x86_64_vec for x86_64-*-darwin. | |
583 | * configure.in: Add mach_o_x86_64_vec. | |
584 | * configure: Regenerate. | |
585 | * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector. | |
586 | * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo | |
587 | (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c | |
588 | * Makefile.in: Regenerate. | |
589 | * mach-o-x86-64.c: New file. | |
590 | ||
f88af2f1 TG |
591 | 2010-01-13 Tristan Gingold <gingold@adacore.com> |
592 | ||
593 | * reloc.c: Add MACH_O_X86_64 relocations. | |
594 | * bfd-in2.h: Regenerate. | |
595 | * libbfd.h: Regenerate. | |
596 | ||
19172f39 TG |
597 | 2010-01-13 Tristan Gingold <gingold@adacore.com> |
598 | ||
599 | * archive.c (normalize): Use lbasename. | |
600 | (bfd_bsd_truncate_arname): Ditto. | |
601 | (bfd_gnu_truncate_arname): Ditto. | |
602 | ||
6cdb8d82 TG |
603 | 2010-01-12 Tristan Gingold <gingold@adacore.com> |
604 | ||
605 | * makefile.vms (CFLAGS): Turns warnings into informational messages. | |
606 | ||
9a753de0 TG |
607 | 2010-01-11 Tristan Gingold <gingold@adacore.com> |
608 | ||
609 | * mach-o.h: Add x86-64 relocation types. | |
610 | ||
42fa0891 TG |
611 | 2010-01-11 Tristan Gingold <gingold@adacore.com> |
612 | ||
613 | * mach-o.h (bfd_mach_o_backend_data): Add arch field. | |
614 | (bfd_mach_o_set_arch_mach): New prototype. | |
615 | * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject. | |
616 | (bfd_mach_o_set_arch_mach): New function. | |
617 | (bfd_mach_o_gen_mkobject): New function. | |
618 | Set TARGET_ARCHITECTURE for the generic back-ends. | |
619 | * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define. | |
620 | Check that TARGET_ARCHITECTURE is defined. | |
621 | Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure. | |
622 | * mach-o-i386.c (TARGET_ARCHITECTURE): Define. | |
623 | ||
cba0723b TG |
624 | 2010-01-11 Tristan Gingold <gingold@adacore.com> |
625 | ||
19172f39 | 626 | * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap. |
cba0723b | 627 | |
4d421096 NC |
628 | 2010-01-11 Nick Clifton <nickc@redhat.com> |
629 | ||
630 | * elf32-v850.c (v850_elf_perform_relocation): Fix overflow | |
631 | handling of R_V850_HI16_S relocation. | |
632 | ||
20b1d3e3 AM |
633 | 2010-01-11 Alan Modra <amodra@gmail.com> |
634 | ||
635 | PR 11103 | |
636 | * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment. | |
637 | ||
a358ecb8 AM |
638 | 2010-01-11 Alan Modra <amodra@gmail.com> |
639 | ||
640 | PR 6832 | |
641 | * dwarf2.c (struct comp_unit): Add sec_info_ptr. | |
642 | (find_abstract_instance_name): Use it. | |
643 | (parse_comp_unit): Set it. | |
644 | ||
3725885a RW |
645 | 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
646 | ||
647 | * Makefile.in: Regenerate. | |
648 | * configure: Regenerate. | |
649 | ||
3ee87829 TG |
650 | 2010-01-08 Tristan Gingold <gingold@adacore.com> |
651 | ||
652 | * archive.c: Remove bfd_special_undocumented_glue. | |
653 | ||
fb34365b AM |
654 | 2010-01-08 Alan Modra <amodra@gmail.com> |
655 | ||
656 | PR ld/11133 | |
657 | * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook. | |
658 | * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise. | |
659 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise. | |
660 | ||
d023c380 L |
661 | 2010-01-07 H.J. Lu <hongjiu.lu@intel.com> |
662 | ||
663 | PR ld/11138 | |
664 | * elflink.c (elf_link_check_versioned_symbol): Don't abort if | |
665 | a symbol referenced by DSO is is defined in a non-shared object | |
666 | and forced local. | |
667 | ||
bde6f3eb L |
668 | 2010-01-07 H.J. Lu <hongjiu.lu@intel.com> |
669 | ||
670 | PR ld/11133 | |
671 | * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for | |
672 | undefined __start_XXX/__stop_XXX in all input files and set | |
673 | SEC_KEEP. | |
674 | ||
16583161 L |
675 | 2010-01-07 H.J. Lu <hongjiu.lu@intel.com> |
676 | ||
677 | PR ld/11143 | |
678 | * elflink.c (elf_gc_sweep): Keep SHT_NOTE section. | |
679 | ||
16231b7b DG |
680 | 2010-01-04 Daniel Gutson <dgutson@codesourcery.com> |
681 | ||
682 | * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC | |
683 | before including procfs.h. | |
684 | (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise. | |
685 | * configure.in: Added autoconf probe for the pr_fpreg member. | |
686 | * configure: Regenerated. | |
687 | * config.in: Regenerated. | |
688 | * elf.c: Define _STRUCTURE_PROC before including procfs.h. | |
689 | ||
608fa8d3 JB |
690 | 2010-01-04 Joel Brobecker <brobecker@adacore.com> |
691 | ||
692 | Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64). | |
693 | * dwarf2.c (concat_filename): Rename dirname with dir_name | |
694 | to void shadowing the dirname function. | |
695 | Rename subdirname with subdir_name to stay consistent with | |
696 | the new dir_name variable name. | |
697 | ||
0dc93057 AM |
698 | 2010-01-04 Edmar Wienskoski <edmar@freescale.com> |
699 | ||
700 | * archures.c: Add bfd_mach_ppc_e500mc64. | |
701 | * bfd-in2.h: Regenerate. | |
702 | * cpu-powerpc.c (bfd_powerpc_archs): Add entry for | |
703 | bfd_mach_ppc_e500mc64. | |
704 | ||
baf9bed3 JB |
705 | 2010-01-01 Joel Brobecker <brobecker@adacore.com> |
706 | ||
707 | Fix -Wshadow warnings (seen on ppc-aix) | |
708 | * xcofflink.c: Replace finfo by flinfo throughout. | |
709 | ||
43ecc30f | 710 | For older changes see ChangeLog-2009 |
56882138 AM |
711 | \f |
712 | Local Variables: | |
713 | mode: change-log | |
714 | left-margin: 8 | |
715 | fill-column: 74 | |
716 | version-control: never | |
717 | End: |