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