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