]>
Commit | Line | Data |
---|---|---|
ddfd6795 AM |
1 | 2010-03-26 Alan Modra <[email protected]> |
2 | ||
3 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative. | |
4 | * bfd-in.h (elf_discarded_section): Clarify comment. | |
5 | * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise. | |
6 | * bfd-in2.h: Regenerate. | |
7 | ||
1352b58a AM |
8 | 2010-03-26 Matt Rice <[email protected]> |
9 | ||
10 | * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged | |
11 | as unique in the armap. | |
12 | ||
6abec6bc AM |
13 | 2010-03-26 Alan Modra <[email protected]> |
14 | ||
15 | PR ld/11375 | |
16 | * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a | |
17 | possible stub on branches. | |
18 | ||
40b36596 JM |
19 | 2010-03-25 Joseph Myers <[email protected]> |
20 | ||
21 | * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo. | |
22 | (ALL_MACHINES_CFILES): Add cpu-tic6x.c. | |
23 | (BFD32_BACKENDS): Add elf32-tic6x.lo. | |
24 | (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c. | |
25 | * Makefile.in: Regenerate. | |
26 | * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New. | |
27 | (bfd_archures_list): Update. | |
28 | * config.bfd (tic6x-*-elf): New. | |
29 | * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): | |
30 | New. | |
31 | * configure: Regenerate. | |
32 | * cpu-tic6x.c, elf32-tic6x.c: New. | |
33 | * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12, | |
34 | BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7, | |
35 | BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16, | |
36 | BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B, | |
37 | BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W, | |
38 | BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B, | |
39 | BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W, | |
40 | BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H, | |
41 | BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W, | |
42 | BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W, | |
43 | BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31, | |
44 | BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN, | |
45 | BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New. | |
46 | * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New. | |
47 | (_bfd_target_vector): Update. | |
48 | * bfd-in2.h, libbfd.h: Regenerate. | |
49 | ||
4f608e79 L |
50 | 2010-03-24 H.J. Lu <[email protected]> |
51 | ||
52 | * aout-target.h: Update copyright year. | |
53 | * aout-tic30.c: Likewise. | |
54 | * coff-alpha.c: Likewise. | |
55 | * coff-rs6000.c: Likewise. | |
56 | * coff64-rs6000.c: Likewise. | |
57 | * elf64-mips.c: Likewise. | |
58 | * ieee.c: Likewise. | |
59 | * libecoff.h: Likewise. | |
60 | * mach-o-target.c: Likewise. | |
61 | * mach-o.c: Likewise. | |
62 | * oasys.c: Likewise. | |
63 | * targets.c: Likewise. | |
64 | ||
337660d8 L |
65 | 2010-03-24 H.J. Lu <[email protected]> |
66 | ||
67 | * libbfd-in.h: Update copyright year. | |
68 | ||
ca4a656b L |
69 | 2010-03-21 H.J. Lu <[email protected]> |
70 | ||
71 | PR ld/11413 | |
72 | * elflink.c (_bfd_elf_add_default_symbol): Check !executable | |
73 | instead of shared. | |
74 | ||
47b2e99c JZ |
75 | 2010-03-19 Jie Zhang <[email protected]> |
76 | ||
77 | * elf32-arm.c (struct section_list): Remove. | |
78 | (section_list): Remove typedef. | |
79 | (record_section_with_arm_elf_section_data): Remove. | |
80 | (find_arm_elf_section_entry): Remove. | |
81 | (get_arm_elf_section_data): Use is_arm_elf. | |
82 | (unrecord_section_with_arm_elf_section_data): Remove. | |
83 | (elf32_arm_new_section_hook): Don't call | |
84 | record_section_with_arm_elf_section_data. | |
85 | (elf32_arm_write_section): Set mapcount to -1 when | |
86 | the map has been used. Don't call | |
87 | unrecord_section_with_arm_elf_section_data. | |
88 | (unrecord_section_via_map_over_sections): Remove. | |
89 | (elf32_arm_close_and_cleanup): Remove. | |
90 | (elf32_arm_bfd_free_cached_info): Remove. | |
91 | (bfd_elf32_close_and_cleanup): Don't define. | |
92 | (bfd_elf32_bfd_free_cached_info): Don't define. | |
93 | ||
441f34fa L |
94 | 2010-03-18 H.J. Lu <[email protected]> |
95 | ||
96 | PR binutils/11396 | |
97 | * libcoff-in.h (pe_tdata): Add dont_strip_reloc. | |
98 | * libcoff.h: Regenerated. | |
99 | ||
100 | * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG | |
101 | if dont_strip_reloc is set. | |
102 | (_bfd_XX_bfd_copy_private_bfd_data_common): Set | |
103 | dont_strip_reloc on output if there is no .reloc and | |
104 | IMAGE_FILE_RELOCS_STRIPPED isn't set in input. | |
105 | ||
b43420e6 NC |
106 | 2010-03-18 Wei Guozhi <[email protected]> |
107 | ||
108 | PR gas/11323 | |
109 | * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to | |
110 | R_ARM_GOT_PREL. | |
111 | * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation. | |
112 | * bfd-in2.h: Regenerate. | |
113 | * libbfd.h: Regenerate. | |
114 | ||
a1b88b01 L |
115 | 2010-03-17 H.J. Lu <[email protected]> |
116 | ||
117 | * reloc.c (BFD_RELOC_SPU_PIC18): Removed. | |
118 | (BFD_RELOC_SPU_STUB): Likewise. | |
119 | ||
4b0f0711 L |
120 | 2010-03-17 Jie Zhang <[email protected]> |
121 | ||
122 | * elf.c (assign_file_positions_for_load_sections): Avoid | |
123 | overflow. | |
124 | ||
f4bacdc0 AM |
125 | 2010-03-17 Alan Modra <[email protected]> |
126 | ||
93620fdb | 127 | PR binutils/11382 |
f4bacdc0 AM |
128 | * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using |
129 | proper type. | |
130 | ||
8f73510c AM |
131 | 2010-03-17 Alan Modra <[email protected]> |
132 | ||
133 | * elf32-arm.c (cortex_a8_erratum_scan): Warning fix. | |
134 | ||
67f0cbdb AM |
135 | 2010-03-16 Alan Modra <[email protected]> |
136 | ||
137 | * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt. | |
138 | (ppc64_elf_edit_toc): Set it here. | |
139 | (ha_reloc_match): New function. | |
140 | (ppc64_elf_relocate_section): Optimize bigtoc insn sequences. | |
141 | ||
1bbe0902 AM |
142 | 2010-03-15 Alan Modra <[email protected]> |
143 | ||
144 | * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function. | |
145 | * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare. | |
146 | ||
70cc837d AM |
147 | 2010-03-14 Alan Modra <[email protected]> |
148 | ||
149 | PR ld/11378 | |
150 | * elf64-ppc.h (ppc64_elf_check_init_fini): Declare. | |
151 | * elf64-ppc.c (call_check_done): Define. | |
152 | (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro. | |
153 | (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise. | |
154 | (ppc64_elf_finish_multitoc_partition): Remove unnecessary check. | |
155 | (toc_adjusting_stub_needed): Use call_check_done rather than toc_off. | |
156 | Simplify return logic. Iterate over all .init and .fini fragments | |
157 | by recursion. Set makes_toc_func_call here.. | |
158 | (ppc64_elf_next_input_section): ..rather than here. | |
159 | (check_pasted_section, ppc64_elf_check_init_fini): New functions. | |
160 | ||
7b8f6675 AM |
161 | 2010-03-13 Alan Modra <[email protected]> |
162 | ||
163 | PR ld/11375 | |
164 | * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the | |
165 | function descriptor symbol if there is one, not just for plt stubs. | |
166 | (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls. | |
167 | ||
a6cc6b3b RO |
168 | 2010-03-05 Rainer Orth <[email protected]> |
169 | ||
170 | * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base | |
171 | version twice. | |
172 | Skip it when constructing def.vd_next. | |
173 | ||
174 | * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to | |
175 | bfd_elf32_i386_sol2_vec. | |
176 | (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2. | |
177 | (elf32_bed): Redefine to elf32_i386_sol2_bed. | |
178 | (elf_backend_want_plt_sym): Redefine to 1. | |
179 | ||
180 | * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to | |
181 | bfd_elf64_x86_64_sol2_vec. | |
182 | (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2. | |
183 | (elf64_bed): Redefine to elf64_x86_64_sol2_bed. | |
184 | (elf_backend_want_plt_sym): Redefine to 1. | |
185 | ||
186 | * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to | |
187 | bfd_elf32_i386_sol2_vec. | |
188 | Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in | |
189 | targ64_selvecs. | |
190 | (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec. | |
191 | Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in | |
192 | targ_selvecs. | |
193 | ||
194 | * configure.in: Handle bfd_elf32_i386_sol2_vec, | |
195 | bfd_elf64_x86_64_sol2_vec. | |
196 | * configure: Regenerate. | |
197 | ||
198 | * targets.c (bfd_elf32_i386_sol2_vec): Declare. | |
199 | (bfd_elf64_x86_64_sol2_vec): Declare. | |
200 | (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec, | |
201 | bfd_elf64_x86_64_sol2_vec. | |
202 | ||
f7dd8c79 DJ |
203 | 2010-03-04 Daniel Jacobowitz <[email protected]> |
204 | ||
205 | * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program | |
206 | sections. | |
207 | ||
8af6b354 AM |
208 | 2010-03-04 Alan Modra <[email protected]> |
209 | ||
210 | PR 11302 | |
211 | * dwarf2.c (read_abbrevs): Return NULL on alloc failures. | |
212 | (read_attribute_value, decode_line_info): Likewise. | |
213 | (add_line_info, read_rangelist): Return FALSE on alloc failures. | |
214 | (arange_add, sort_line_sequences): Likewise. | |
215 | (find_abstract_instance_name): Handle failures from called funcs. | |
216 | (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise. | |
217 | (find_line): Realloc to a temp, and handle alloc fail. | |
218 | ||
501abfe0 DJ |
219 | 2010-03-03 Daniel Jacobowitz <[email protected]> |
220 | ||
221 | * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add | |
222 | a mapping symbol to an empty section. | |
223 | ||
5488d830 MGD |
224 | 2010-03-02 Matthew Gretton-Dann <[email protected]> |
225 | ||
226 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the | |
227 | return value from the call to _bfd_elf_merge_object_attributes. | |
228 | ||
fe33d2fa CL |
229 | 2010-03-02 Christophe Lyon <[email protected]> |
230 | Alan Modra <[email protected]> | |
231 | ||
232 | * elf32-arm.c (a8_erratum_fix): Add st_type field to record the | |
233 | destination mode of the a8 stub. | |
234 | (elf32_arm_link_hash_table): Add top_id field. | |
235 | (elf32_arm_link_hash_table_create): Initialize top_id. | |
236 | (arm_type_of_stub): Update prototype, st_type can now be updated | |
237 | by this function. Actual destination address in case of PLT is | |
238 | computed here, to help factorizing code. | |
239 | (elf32_arm_stub_name): Update prototype, use stub_type additional | |
240 | parameter to build stub name. | |
241 | (elf32_arm_get_stub_entry): Update prototype, use stub_type | |
242 | additional parameter to build stub entry. | |
243 | (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of | |
244 | put_thumb_insn/put_arm_insn as BE8 encoding is now handled later. | |
245 | Call elf32_arm_final_link_relocate to process all in-stub | |
246 | relocations. | |
247 | (elf32_arm_setup_section_lists): Update top_id. | |
248 | (cortex_a8_erratum_scan): Record stub destination mode. | |
249 | (elf32_arm_size_stubs): Update call to arm_type_of_stub according | |
250 | to new prototype. | |
251 | (elf32_arm_final_link_relocate): Enable processing of in-stub | |
252 | REL32 relocations. Rely on arm_type_of_stub to detect if a stub is | |
253 | needed, enabling code factorization. | |
254 | (elf32_arm_final_link): Process stub sections. | |
255 | (elf32_arm_output_map_sym): Add entry to code/data map. | |
256 | ||
b48ca1d4 DM |
257 | 2010-03-01 David S. Miller <[email protected]> |
258 | ||
259 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and | |
260 | h->def_regular, set h->ref_regular. | |
261 | (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries | |
262 | and dynamic relocations if h->ref_regular. | |
263 | ||
679b7c76 DM |
264 | * elfxx-sparc.c (struct elf_reloc_map): Delete. |
265 | (sparc_reloc_map): Delete. | |
266 | (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each | |
267 | relocation type in switch statements. | |
268 | ||
dfa7b0b8 AM |
269 | 2010-02-25 Alan Modra <[email protected]> |
270 | ||
271 | PR ld/11304 | |
272 | * elf.c (_bfd_elf_init_private_section_data): Rename need_group | |
273 | to final_link and invert. For final link allow some flags to | |
274 | differ. Don't specially allow flags to be all zero. | |
275 | ||
d4a77f3f NC |
276 | 2010-02-24 Alan Modra <[email protected]> |
277 | ||
278 | PR binutils/10858 | |
279 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise | |
280 | SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol | |
281 | table. | |
282 | ||
17e57237 NC |
283 | 2010-02-23 Andrew Zabolotny <[email protected]> |
284 | ||
285 | PR binutils/11297 | |
286 | * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8. | |
287 | (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8. | |
288 | ||
263badd7 AM |
289 | 2010-02-22 Alan Modra <[email protected]> |
290 | ||
291 | * reloc.c (bfd_check_overflow): When forming addrmask, shift | |
292 | fieldmask left by rightshift. | |
293 | (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all | |
294 | overflow checks. | |
295 | ||
c35bdf6e L |
296 | 2010-02-20 H.J. Lu <[email protected]> |
297 | ||
298 | * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check | |
299 | STT_GNU_IFUNC on large common symbol. | |
300 | ||
c16153ae L |
301 | 2010-02-18 H.J. Lu <[email protected]> |
302 | ||
303 | * elf32-i386.c (elf_i386_add_symbol_hook): Don't set | |
304 | has_ifunc_symbols if the symbol comes from a shared library. | |
305 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. | |
306 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise. | |
307 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise. | |
308 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise. | |
309 | * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise. | |
310 | ||
d0bf826b AM |
311 | 2010-02-19 Alan Modra <[email protected]> |
312 | ||
313 | * elf.c (_bfd_elf_fixup_group_sections): New function, split out from.. | |
314 | (_bfd_elf_copy_private_header_data): ..here. | |
315 | * elflink.c (_bfd_elf_size_group_sections): New function. | |
316 | (bfd_elf_size_dynamic_sections): Call it. | |
317 | * elf-bfd.h (_bfd_elf_size_group_sections): Declare. | |
318 | (_bfd_elf_fixup_group_sections): Declare. | |
319 | ||
cd21e546 MGD |
320 | 2010-02-18 Matthew Gretton-Dann <[email protected]> |
321 | ||
322 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for | |
323 | merging Tag_DIV_use, Tag_MPextension_use, and | |
324 | Tag_MPextension_use_legacy tags. | |
325 | ||
415f38a6 AM |
326 | 2010-02-18 Alan Modra <[email protected]> |
327 | ||
328 | * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15 | |
329 | commit. Don't write zeros for removed group members. | |
330 | (_bfd_elf_copy_private_header_data): Adjust size of group section | |
331 | when group members are removed by objcopy. | |
332 | ||
b946d5d8 DK |
333 | 2010-02-15 Dave Korn <[email protected]> |
334 | ||
335 | PR binutils/11280 | |
336 | * configure.host (*-*-solaris2.11): Add host define to select | |
337 | valid default code page for windres/windmc on solaris. | |
338 | ||
ab7875de NC |
339 | 2010-02-15 Nick Clifton <[email protected]> |
340 | ||
341 | * po/vi.po: Updated Vietnamese translation. | |
342 | ||
33811162 DG |
343 | 2010-02-12 Daniel Gutson <[email protected]> |
344 | ||
345 | * elf32-arm.c (elf32_arm_output_arch_local_syms): add | |
346 | missing mapping symbol to data only sections. | |
347 | ||
00c50991 DM |
348 | 2010-02-11 David S. Miller <[email protected]> |
349 | ||
350 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22 | |
351 | and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global | |
352 | symbols. | |
353 | (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for | |
354 | these relocs on global symbols. | |
355 | (gdopoff): New. | |
356 | (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on | |
357 | local symbol references which are not STT_GNU_IFUNC. Handle | |
358 | relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively, | |
359 | and deal with negative vs. non-negative values properly. | |
360 | ||
1523fa24 TG |
361 | 2010-02-09 Tristan Gingold <[email protected]> |
362 | ||
363 | * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for | |
364 | non-external relocation. | |
365 | ||
7865406b AM |
366 | 2010-02-09 Alan Modra <[email protected]> |
367 | ||
368 | * elf64-ppc.c (merge_got_entries): Move earlier in file. | |
369 | (allocate_dynrelocs): Merge got entries here if not doing multi-toc. | |
370 | (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got. | |
371 | (ppc64_elf_layout_multitoc): Don't resize if we have already | |
372 | merged got entries. | |
373 | ||
d7eeb400 MS |
374 | 2010-02-09 Michael Holzheu <[email protected]> |
375 | ||
376 | * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp, | |
377 | elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, | |
378 | elfcore_write_s390_prefix): New. | |
379 | * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp, | |
380 | elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, | |
381 | elfcore_write_s390_prefix): New. | |
382 | (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP, | |
383 | NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX. | |
1352b58a | 384 | (elfcore_write_register_note): Handle .reg-s390-timer, |
d7eeb400 MS |
385 | .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs, |
386 | .reg-s390-prefix section. | |
387 | ||
f961d9dd AM |
388 | 2010-02-09 Alan Modra <[email protected]> |
389 | ||
390 | * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect | |
391 | unsigned char. Update variables and code using them throughout file. | |
392 | (struct ppc_link_hash_entry): Likewise for tls_mask. | |
393 | ||
d0fae19d AM |
394 | * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents. |
395 | ||
d77c8a4b AM |
396 | * elf64-ppc.c (has_small_toc_reloc): Don't define. |
397 | (makes_toc_func_call, call_check_in_progress): Shuffle flags. | |
398 | (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update | |
399 | code setting the flag. | |
400 | (ppc64_elf_next_toc_section): Group big-toc sections in | |
401 | 0x80008000 chunks. | |
402 | ||
72fbc6e5 DM |
403 | 2010-02-08 David S. Miller <[email protected]> |
404 | ||
405 | * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot, | |
406 | srelgot, splt, srelplt, and sgotplt members in favor of generic copies. | |
407 | ||
408 | * elfxx-sparc.c (create_got_section): Delete. | |
409 | (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic | |
410 | section creator does that work for us. Use ->elf.foo instead of | |
411 | ->foo where applicable. | |
412 | (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo | |
413 | where applicable. | |
414 | (allocate_dynrelocs): Likewise. | |
415 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
416 | (_bfd_sparc_elf_relocate_section): Likewise. | |
417 | (sparc_vxworks_build_plt_entry): Likewise. | |
418 | (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
419 | (sparc_finish_dyn): Likewise. | |
420 | (sparc_vxworks_finish_exec_plt): Likewise. | |
421 | (sparc_vxworks_finish_shared_plt): Likewise. | |
422 | (_bfd_sparc_elf_finish_dynamic_sections): Likewise. | |
423 | ||
424 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_* | |
425 | macros for visibilty and locality checks. | |
426 | (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. | |
427 | (allocate_dynrelocs): Likewise. | |
428 | (_bfd_sparc_elf_relocate_section): Likewise. | |
429 | (_bfd_sparc_elf_finish_dynamic_symbol):Likewise. | |
430 | ||
431 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set | |
432 | but never used local var 'dynobj'. | |
433 | ||
434 | * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle | |
435 | nocopyreloc. | |
436 | ||
d0c9aeb3 DM |
437 | * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New. |
438 | (BFD_RELOC_SPARC_IRELATIVE): Likewise. | |
439 | * bfd-in2.h: Regenerate. | |
440 | * libbfd.h: Regenerate. | |
441 | ||
442 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table | |
443 | and loc_hash_memory. | |
444 | (_bfd_sparc_elf_link_hash_table_free): Declare. | |
445 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): New. | |
446 | (elf_backend_add_symbol_hook, elf_backend_post_process_headers, | |
447 | bfd_elf32_bfd_link_hash_table_free): Define. | |
448 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set | |
449 | has_ifunc_symbols if STT_GNU_IFUNC. | |
450 | (bfd_elf64_bfd_link_hash_table_free): Define. | |
451 | (elf_backend_post_process_headers): Define always. | |
452 | * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New. | |
453 | (sparc_reloc_map): Add entries for new IFUNC relocs. | |
454 | (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs. | |
455 | (_bfd_sparc_elf_info_to_howto_ptr): Likewise. | |
456 | (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq, | |
457 | elf_sparc_get_local_sym_hash): New. | |
458 | (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization | |
459 | from here... | |
460 | (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate | |
461 | local hash table. | |
462 | (_bfd_sparc_elf_link_hash_table_free): New. | |
463 | (create_ifunc_sections): New. | |
464 | (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj | |
465 | and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols | |
466 | cons up a fake local hash table entry for it. Unconditionally add | |
467 | a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count | |
468 | dyn relocs for ifunc. | |
469 | (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc. | |
470 | (allocate_dynrelocs): Unconditionally emit a PLT entry when | |
471 | STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc. | |
472 | (allocate_local_dynrelocs): New function. | |
473 | (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash | |
474 | table. Emit dynamic relocs to irelplt when not shared. Treat iplt | |
475 | like splt. | |
476 | (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand. | |
477 | (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc | |
478 | plt in iplt/irelplt. | |
479 | ||
9ea2b942 RS |
480 | 2010-02-08 Richard Sandiford <[email protected]> |
481 | ||
482 | * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating | |
483 | max_contents_size, only consider sections whose contents must | |
484 | be swapped in. | |
485 | ||
0b8bcf0d AM |
486 | 2010-02-09 Alan Modra <[email protected]> |
487 | ||
488 | * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here.. | |
489 | (ppc64_elf_size_dynamic_sections): ..and here.. | |
490 | (merge_got_entries): ..rather than here. | |
491 | ||
33c0ec9d AM |
492 | 2010-02-09 Alan Modra <[email protected]> |
493 | ||
494 | * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc. | |
495 | (has_small_toc_reloc): Define. | |
496 | (ppc64_elf_check_relocs): Set the above flags. | |
497 | (ppc64_elf_edit_opd): Delete obfd param. | |
498 | (ppc64_elf_tls_optimize): Likewise. | |
499 | (ppc64_elf_edit_toc): Likewise. | |
500 | (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param. | |
501 | * elf64-ppc.h: Update prototypes. | |
502 | ||
b0dddeec AM |
503 | 2010-02-08 Alan Modra <[email protected]> |
504 | ||
505 | * section.c (struct bfd_section): Delete has_tls_reloc, | |
506 | has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done. | |
507 | Add sec_flg0 thru sec_flg5. | |
508 | (BFD_FAKE_SECTION): Update for changed flags. | |
509 | * ecoff.c (bfd_debug_section): Likewise. | |
510 | * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define. | |
511 | * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define. | |
512 | (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update. | |
513 | * elf32-xtensa.c (reloc_done): Define. | |
514 | * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update. | |
515 | * bfd-in2.h: Regenerate. | |
516 | ||
06988dfc TG |
517 | 2010-02-08 Tristan Gingold <[email protected]> |
518 | ||
519 | * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern | |
520 | for non-scattered relocations. | |
521 | ||
deddc40b NS |
522 | 2010-02-08 Nathan Sidwell <[email protected]> |
523 | ||
524 | * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty | |
525 | apuinfo sections, only scan input sections once and reuse the | |
526 | buffer. | |
527 | ||
ce3d2015 AM |
528 | 2010-02-08 Philipp Tomsich <[email protected]> |
529 | ||
530 | * archures.c (bfd_mach_ppc_titan): Define. | |
531 | * bfd-in2.h: Regenerate. | |
532 | * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry. | |
533 | ||
06a162cf AM |
534 | 2010-02-08 Alan Modra <[email protected]> |
535 | ||
536 | * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code. | |
537 | ||
4c348442 SA |
538 | 2010-02-05 Sterling Augustine <[email protected]> |
539 | ||
540 | * elf.c (assign_file_positions_for_load_sections) Update lma of | |
541 | section if necessary. Fixes Bugzilla 11219. | |
542 | ||
6bbec505 L |
543 | 2010-02-05 H.J. Lu <[email protected]> |
544 | ||
545 | * elf32-i386.c: Remove trailing white spaces. | |
546 | * elf64-x86-64.c: Likewise. | |
547 | ||
4dfe6ac6 NC |
548 | 2010-02-03 Nick Clifton <[email protected]> |
549 | ||
550 | * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add | |
551 | entries for other architectures. | |
552 | (struct elf_link_hash_table): Add hash_table_id field. | |
553 | (elf_hash_table_id): New accessor macro. | |
554 | * elflink.c (_bfd_elf_link_hash_table_init): Add target_id | |
555 | parameter. | |
556 | * elf-m10300.c (elf32_mn10300_hash_table): Check table id before | |
557 | returning cast pointer. | |
558 | (elf32_mn10300_link_hash_table_create): Identify new table as | |
559 | containing MN10300 extensions. | |
560 | (mn10300_elf_relax_section): Check pointer returned by | |
561 | elf32_mn10300_hash_table. | |
562 | * elf32-arm.c: Likewise, except using ARM extensions. | |
563 | * elf32-avr.c: Likewise, except using AVR extensions. | |
564 | * elf32-bfin.c: Likewise, except using BFIN extensions. | |
565 | * elf32-cris.c: Likewise, except using CRIS extensions. | |
566 | * elf32-frv.c: Likewise, except using FRV extensions. | |
567 | * elf32-hppa.c: Likewise, except using HPPA32 extensions. | |
568 | * elf32-i386.c: Likewise, except using I386 extensions. | |
569 | * elf32-lm32.c: Likewise, except using LM32 extensions. | |
570 | * elf32-m32r.c: Likewise, except using M32RM extensions. | |
571 | * elf32-m68hc11.c: Likewise, except using M68HC11 extensions. | |
572 | * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions. | |
573 | * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions. | |
574 | * elf32-m68k.c: Likewise, except using M68K extensions. | |
575 | * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions. | |
576 | * elf32-ppc.c: Likewise, except using PPC32 extensions. | |
577 | * elf32-s390.c: Likewise, except using S390 extensions. | |
578 | * elf32-sh.c: Likewise, except using SH extensions. | |
579 | * elf32-spu.c: Likewise, except using SPU extensions. | |
580 | * elf32-xtensa.c: Likewise, except using XTENSA extensions. | |
581 | * elf64-alpha.c: Likewise, except using ALPHA extensions. | |
582 | * elf64-hppa.c: Likewise, except using HPPA64 extensions. | |
583 | * elf64-ppc.c: Likewise, except using PPC64 extensions. | |
584 | * elf64-s390.c: Likewise, except using S390 extensions. | |
585 | * elf64-x86-64.c: Likewise, except using X86_64 extensions. | |
586 | * elfxx-ia64.c: Likewise, except using IA64 extensions. | |
587 | * elfxx-mips.c: Likewise, except using MIPS extensions. | |
588 | * elfxx-sparc.c: Likewise, except using SPARC extensions. | |
589 | * elfxx-sparc.h: Likewise, except using SPARC extensions. | |
590 | * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete | |
591 | redundant structure. | |
592 | (elf32_cr16_hash_table): Delete unused macro. | |
593 | (elf32_cr16_link_hash_traverse): Delete unused macro. | |
594 | * elf32-score.c: Likewise. | |
595 | * elf32-score7.c: Likewise. | |
596 | * elf32-vax.c: Likewise. | |
597 | * elf64-sh64.c: Likewise. | |
598 | ||
927be08e AM |
599 | 2010-02-03 Alan Modra <[email protected]> |
600 | ||
601 | * elf64-ppc.c (struct plt_entry): Move earlier in file. | |
602 | (struct got_entry): Likewise. Add is_indirect and got.ent fields. | |
603 | (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry. | |
604 | Update all uses. | |
605 | (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass. | |
606 | Remove no_multi_toc. | |
607 | (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect | |
608 | when allocating a new struct got_entry. | |
609 | (allocate_got): New function, extracted from.. | |
610 | (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd. | |
611 | (ppc64_elf_size_dynamic_sections): Track got relocs allocated in | |
612 | .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries. | |
613 | (ppc64_elf_setup_section_lists): Remove output_bfd param and | |
614 | no_multi_toc, add add_stub_section and layout_sections_again. Stash | |
615 | new params in htab. Extract some code to.. | |
616 | (ppc64_elf_start_multitoc_partition): ..here. New function. | |
617 | (ppc64_elf_next_toc_section): Check for linker script errors. Handle | |
618 | second pass toc scan. | |
619 | (merge_got_entries, merge_global_got, reallocate_got): New functions. | |
620 | (ppc64_elf_reinit_toc): Rename to.. | |
621 | (ppc64_elf_finish_multitoc_partition): ..this. | |
622 | (ppc64_elf_layout_multitoc): New function. | |
623 | (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and | |
624 | layout_sections_again params. | |
625 | (ppc64_elf_relocate_section): Handle indirect got entries. | |
626 | * elf64-ppc.h: Update prototypes. Declare new functions. | |
627 | ||
4339cae0 L |
628 | 2010-02-02 H.J. Lu <[email protected]> |
629 | ||
630 | * elf-bfd.h (elfcore_write_xstatereg): New. | |
631 | ||
632 | * elf.c (elfcore_grok_xstatereg): New. | |
633 | (elfcore_write_xstatereg): Likewise. | |
634 | (elfcore_grok_note): Handle NT_X86_XSTATE. | |
635 | (elfcore_write_register_note): Handle .reg-xstate section. | |
636 | ||
9848eadf TG |
637 | 2010-02-01 Tristan Gingold <[email protected]> |
638 | ||
639 | * som.c (som_write_ar_hdr): Define this macro. | |
640 | ||
f6fd0237 DA |
641 | 2010-01-30 John David Anglin <[email protected]> |
642 | ||
643 | * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L, | |
644 | R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the | |
645 | linkage table pointer to use the global table pointer if not doing | |
646 | a shared link. | |
647 | ||
a1504221 JB |
648 | 2010-01-29 Joel Brobecker <[email protected]> |
649 | ||
650 | * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal | |
651 | if it has already been set. | |
652 | ||
771deb08 TG |
653 | 2010-01-27 Tristan Gingold <[email protected]> |
654 | ||
655 | * vms.h: Remove trailing spaces. | |
656 | (struct hdr_struct): Remove unused hdr_c_cpr field. | |
657 | (enum file_format_enum): Add comments. | |
658 | * vms.c (vms_bfd_print_private_bfd_data): New function that | |
659 | replaces the macro. | |
660 | Remove trailing spaces. | |
661 | * vms-misc.c: Improve comments. | |
662 | (_bfd_vms_get_object_record): Also handle files without pads. | |
663 | * vms-hdr.c (_bfd_vms_write_dbg): Fix format string. | |
664 | * vms-gsd.c (struct flagdescstruct): Make name field const. | |
665 | (gsyflagdesc): Fix typo. | |
666 | ||
bf102f86 AM |
667 | 2010-01-27 Alan Modra <[email protected]> |
668 | ||
669 | PR ld/11217 | |
670 | * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec. | |
671 | (ppc64_elf_setup_section_lists): Init them. | |
672 | (ppc64_elf_next_toc_section): Don't partition multi-toc between .got | |
673 | and .toc on the same input file. | |
674 | (ppc64_elf_relocate_section): Correct GOT entry offset. | |
675 | ||
8f95b6e4 TG |
676 | 2010-01-26 Tristan Gingold <[email protected]> |
677 | ||
678 | * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr. | |
679 | (bfd_target): Add _bfd_write_ar_hdr_fn field. | |
680 | * archive.c (is_bsd44_extended_name): New macro. | |
681 | (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size. | |
682 | (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended | |
683 | name. | |
684 | (_bfd_archive_bsd44_construct_extended_name_table): New function. | |
685 | (_bfd_generic_write_ar_hdr): Ditto. | |
686 | (_bfd_bsd44_write_ar_hdr): Ditto. | |
687 | (_bfd_write_archive_contents): Call _bfd_write_ar_hdr. | |
688 | (bsd_write_armap): Adjust firstreal computation. | |
689 | * libbfd-in.h (struct areltdata): Add extra_size field. | |
690 | (_bfd_generic_write_ar_hdr): Add prototype. | |
691 | (_bfd_bsd44_write_ar_hdr): Ditto. | |
692 | (_bfd_write_ar_hdr): Define. | |
693 | (_bfd_noarchive_write_ar_hdr): Ditto. | |
694 | (_bfd_archive_bsd_write_ar_hdr): Ditto. | |
695 | (_bfd_archive_coff_write_ar_hdr): Ditto. | |
696 | (_bfd_archive_bsd44_slurp_armap): Ditto. | |
697 | (_bfd_archive_bsd44_slurp_extended_name_table): Ditto. | |
698 | (_bfd_archive_bsd44_construct_extended_name_table): New prototype. | |
699 | (_bfd_archive_bsd44_truncate_arname): Ditto. | |
700 | (_bfd_archive_bsd44_write_armap): Ditto. | |
701 | (_bfd_archive_bsd44_read_ar_hdr): Ditto. | |
702 | (_bfd_archive_bsd44_write_ar_hdr): Ditto. | |
703 | (_bfd_archive_bsd44_openr_next_archived_file): Ditto. | |
704 | (_bfd_archive_bsd44_get_elt_at_index): Ditto. | |
705 | (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto. | |
706 | (_bfd_archive_bsd44_update_armap_timestamp): Ditto. | |
707 | * libbfd.h: Regenerate. | |
708 | * oasys.c (oasys_write_ar_hdr): Define. | |
709 | * libecoff.h (_bfd_ecoff_write_ar_hdr): Define. | |
710 | * ieee.c (ieee_write_ar_hdr): Define. | |
711 | * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define. | |
712 | * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field. | |
713 | (bfd_pmac_xcoff_backend_data): Ditto. | |
714 | * coff64-rs6000.c (rs6000coff64_vec): Ditto. | |
715 | (bfd_xcoff_aix5_backend_data): Ditto. | |
716 | * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define. | |
717 | * aout-target.h (MY_write_ar_hdr): Define it if not defined. | |
718 | * aout-tic30.c (MY_write_ar_hdr): Ditto. | |
719 | * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive. | |
720 | (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr) | |
721 | (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table) | |
722 | (bfd_mach_o_construct_extended_name_table) | |
723 | (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap) | |
724 | (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt) | |
725 | (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c | |
726 | * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr) | |
727 | (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table) | |
728 | (bfd_mach_o_construct_extended_name_table) | |
729 | (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap) | |
730 | (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt) | |
731 | (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c | |
732 | * bfd-in2.h: Regenerate. | |
733 | ||
98da7939 L |
734 | 2010-01-26 Alan Modra <[email protected]> |
735 | H.J. Lu <[email protected]> | |
736 | ||
737 | PR ld/11218 | |
738 | * elflink.c (elf_link_output_extsym): Do not ignore undefined | |
739 | symbols with ref_regular set when gc_sections is active. | |
740 | ||
766bc656 AM |
741 | 2010-01-25 Alan Modra <[email protected]> |
742 | ||
743 | PR ld/11217 | |
744 | * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences | |
745 | with relocations against undefined weak symbols. | |
746 | (ppc64_elf_relocate_section): Don't optimize calls to undefined | |
747 | weak functions if the symbol is dynamic. | |
748 | (ppc64_elf_relocate_section): Edit tprel tls sequences. | |
749 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
750 | (_bfd_elf_ppc_at_tprel_transform): New function. | |
751 | * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare. | |
752 | * bfd-in2.h: Regenerate. | |
753 | ||
c865e45b RS |
754 | 2010-01-23 Richard Sandiford <[email protected]> |
755 | ||
756 | * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1. | |
757 | (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE. | |
758 | * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and | |
759 | bitsize to 1. | |
760 | (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE. | |
761 | ||
b918acf9 NC |
762 | 2010-01-21 Nick Clifton <[email protected]> |
763 | ||
764 | * elflink.c (elf_link_add_object_symbols): Look up name of | |
765 | undefined symbol both before and after versioning has been | |
766 | applied. Do not bother with symbols that are weakly undefined. | |
767 | ||
55786da2 | 768 | 2010-01-21 Andreas Krebbel <[email protected]> |
b918acf9 | 769 | |
55786da2 AK |
770 | * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function. |
771 | (bfd_elf32_bfd_merge_private_bfd_data): New macro definition. | |
772 | ||
a37a68dd CC |
773 | 2010-01-19 Cary Coutant <[email protected]> |
774 | ||
775 | * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8. | |
776 | ||
ecd12bc1 AM |
777 | 2010-01-19 Daisuke Hatayama <[email protected]> |
778 | Alan Modra <[email protected]> | |
779 | ||
1352b58a | 780 | * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff. |
ecd12bc1 AM |
781 | (elf_object_p): Read e_phnum extension. |
782 | (elf_write_shdrs_and_ehdr): Write e_phnum extension. | |
1352b58a | 783 | * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check |
ecd12bc1 AM |
784 | that we can read last program header. |
785 | ||
f6ebfac0 AM |
786 | 2010-01-19 Matthew Gretton-Dann <[email protected]> |
787 | ||
788 | * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of | |
789 | R_ARM_THM_CALL entry. | |
790 | (elf32_arm_final_link_relocate): Correct calculation of | |
791 | reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22, | |
792 | or R_ARM_THM_JUMP24 relocation. | |
793 | ||
22eb4b1d AM |
794 | 2010-01-18 Alan Modra <[email protected]> |
795 | ||
796 | PR 11168 | |
797 | * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C | |
798 | block past vars in COFF_IMAGE_WITH_PE block. Report error on more | |
799 | than 32k sections. | |
800 | ||
6ec12636 JK |
801 | 2010-01-15 Jan Kratochvil <[email protected]> |
802 | ||
803 | Fix compilation warning on gcc-3.4. | |
804 | * vms-tir.c (start_etir_record, sto_imm): Rename the prototype | |
805 | parameter index to sec_index according to the function definition. | |
806 | ||
38a7df63 CF |
807 | 2010-01-13 Chao-ying Fu <[email protected]> |
808 | ||
809 | * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B. | |
810 | It is true for all CPUs. | |
811 | (jal_reloc_p): New function. | |
812 | (mips_elf_calculate_relocation): Rename require_jalxp to | |
813 | cross_mode_jump_p. | |
814 | Update comment for CROSS_MODE_JUMP_P. | |
815 | Set up cross_mode_jump_p based on the mode change. | |
816 | (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p. | |
817 | Update comment for CROSS_MODE_JUMP_P. | |
818 | Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx. | |
819 | Use !cross_mode_jump_p to guard conversion. | |
820 | Convert "jr t9" to "b", if possible. | |
821 | (_bfd_mips_elf_relocate_section): Rename require_jalx to | |
822 | cross_mode_jump_p. | |
823 | Pass &cross_mode_jump_p to call mips_elf_calculate_relocation. | |
824 | Pass cross_mode_jump_p to call mips_elf_perform_relocation. | |
825 | ||
91b9a4a4 NC |
826 | 2010-01-13 Nick Clifton <[email protected]> |
827 | ||
828 | * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for | |
829 | "m32c" returns the m32c arch_info_struct and not the m16c | |
830 | arch_info_struct. | |
831 | (arch_info_struct): Use the new scan function. | |
832 | (bfd_m32c_arch): Likewise. | |
833 | ||
618b7301 TG |
834 | 2010-01-13 Tristan Gingold <[email protected]> |
835 | ||
836 | * config.bfd: Remove duplicated target vector for i386-*-darwin. | |
837 | Appends new arch instead of overriding. | |
838 | Use mach_o_x86_64_vec for x86_64-*-darwin. | |
839 | * configure.in: Add mach_o_x86_64_vec. | |
840 | * configure: Regenerate. | |
841 | * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector. | |
842 | * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo | |
843 | (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c | |
844 | * Makefile.in: Regenerate. | |
845 | * mach-o-x86-64.c: New file. | |
846 | ||
f88af2f1 TG |
847 | 2010-01-13 Tristan Gingold <[email protected]> |
848 | ||
849 | * reloc.c: Add MACH_O_X86_64 relocations. | |
850 | * bfd-in2.h: Regenerate. | |
851 | * libbfd.h: Regenerate. | |
852 | ||
19172f39 TG |
853 | 2010-01-13 Tristan Gingold <[email protected]> |
854 | ||
855 | * archive.c (normalize): Use lbasename. | |
856 | (bfd_bsd_truncate_arname): Ditto. | |
857 | (bfd_gnu_truncate_arname): Ditto. | |
858 | ||
6cdb8d82 TG |
859 | 2010-01-12 Tristan Gingold <[email protected]> |
860 | ||
861 | * makefile.vms (CFLAGS): Turns warnings into informational messages. | |
862 | ||
9a753de0 TG |
863 | 2010-01-11 Tristan Gingold <[email protected]> |
864 | ||
865 | * mach-o.h: Add x86-64 relocation types. | |
866 | ||
42fa0891 TG |
867 | 2010-01-11 Tristan Gingold <[email protected]> |
868 | ||
869 | * mach-o.h (bfd_mach_o_backend_data): Add arch field. | |
870 | (bfd_mach_o_set_arch_mach): New prototype. | |
871 | * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject. | |
872 | (bfd_mach_o_set_arch_mach): New function. | |
873 | (bfd_mach_o_gen_mkobject): New function. | |
874 | Set TARGET_ARCHITECTURE for the generic back-ends. | |
875 | * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define. | |
876 | Check that TARGET_ARCHITECTURE is defined. | |
877 | Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure. | |
878 | * mach-o-i386.c (TARGET_ARCHITECTURE): Define. | |
879 | ||
cba0723b TG |
880 | 2010-01-11 Tristan Gingold <[email protected]> |
881 | ||
19172f39 | 882 | * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap. |
cba0723b | 883 | |
4d421096 NC |
884 | 2010-01-11 Nick Clifton <[email protected]> |
885 | ||
886 | * elf32-v850.c (v850_elf_perform_relocation): Fix overflow | |
887 | handling of R_V850_HI16_S relocation. | |
888 | ||
20b1d3e3 AM |
889 | 2010-01-11 Alan Modra <[email protected]> |
890 | ||
891 | PR 11103 | |
892 | * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment. | |
893 | ||
a358ecb8 AM |
894 | 2010-01-11 Alan Modra <[email protected]> |
895 | ||
896 | PR 6832 | |
897 | * dwarf2.c (struct comp_unit): Add sec_info_ptr. | |
898 | (find_abstract_instance_name): Use it. | |
899 | (parse_comp_unit): Set it. | |
900 | ||
3725885a RW |
901 | 2010-01-09 Ralf Wildenhues <[email protected]> |
902 | ||
903 | * Makefile.in: Regenerate. | |
904 | * configure: Regenerate. | |
905 | ||
3ee87829 TG |
906 | 2010-01-08 Tristan Gingold <[email protected]> |
907 | ||
908 | * archive.c: Remove bfd_special_undocumented_glue. | |
909 | ||
fb34365b AM |
910 | 2010-01-08 Alan Modra <[email protected]> |
911 | ||
912 | PR ld/11133 | |
913 | * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook. | |
914 | * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise. | |
915 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise. | |
916 | ||
d023c380 L |
917 | 2010-01-07 H.J. Lu <[email protected]> |
918 | ||
919 | PR ld/11138 | |
920 | * elflink.c (elf_link_check_versioned_symbol): Don't abort if | |
921 | a symbol referenced by DSO is is defined in a non-shared object | |
922 | and forced local. | |
923 | ||
bde6f3eb L |
924 | 2010-01-07 H.J. Lu <[email protected]> |
925 | ||
926 | PR ld/11133 | |
927 | * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for | |
928 | undefined __start_XXX/__stop_XXX in all input files and set | |
929 | SEC_KEEP. | |
930 | ||
16583161 L |
931 | 2010-01-07 H.J. Lu <[email protected]> |
932 | ||
933 | PR ld/11143 | |
934 | * elflink.c (elf_gc_sweep): Keep SHT_NOTE section. | |
935 | ||
16231b7b DG |
936 | 2010-01-04 Daniel Gutson <[email protected]> |
937 | ||
938 | * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC | |
939 | before including procfs.h. | |
940 | (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise. | |
941 | * configure.in: Added autoconf probe for the pr_fpreg member. | |
942 | * configure: Regenerated. | |
943 | * config.in: Regenerated. | |
944 | * elf.c: Define _STRUCTURE_PROC before including procfs.h. | |
945 | ||
608fa8d3 JB |
946 | 2010-01-04 Joel Brobecker <[email protected]> |
947 | ||
948 | Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64). | |
949 | * dwarf2.c (concat_filename): Rename dirname with dir_name | |
950 | to void shadowing the dirname function. | |
951 | Rename subdirname with subdir_name to stay consistent with | |
952 | the new dir_name variable name. | |
953 | ||
0dc93057 AM |
954 | 2010-01-04 Edmar Wienskoski <[email protected]> |
955 | ||
956 | * archures.c: Add bfd_mach_ppc_e500mc64. | |
957 | * bfd-in2.h: Regenerate. | |
958 | * cpu-powerpc.c (bfd_powerpc_archs): Add entry for | |
959 | bfd_mach_ppc_e500mc64. | |
960 | ||
baf9bed3 JB |
961 | 2010-01-01 Joel Brobecker <[email protected]> |
962 | ||
963 | Fix -Wshadow warnings (seen on ppc-aix) | |
964 | * xcofflink.c: Replace finfo by flinfo throughout. | |
965 | ||
43ecc30f | 966 | For older changes see ChangeLog-2009 |
56882138 AM |
967 | \f |
968 | Local Variables: | |
969 | mode: change-log | |
970 | left-margin: 8 | |
971 | fill-column: 74 | |
972 | version-control: never | |
973 | End: |