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