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