]>
Commit | Line | Data |
---|---|---|
5369db0a TG |
1 | 2010-08-04 Tristan Gingold <[email protected]> |
2 | ||
3 | * vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ... | |
4 | (alpha_vms_add_fixup_lr): ... this for consistency. | |
5 | (alpha_vms_add_qw_fixup): Removed. | |
6 | Fix some comments. | |
7 | (vms_get_symbol_info): Adjust type for unknown sections. | |
8 | ||
21e003e8 TG |
9 | 2010-08-04 Tristan Gingold <[email protected]> |
10 | ||
11 | * vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute | |
12 | section for any absolute section. Remove some debugging code. | |
13 | ||
e1be4b13 DD |
14 | 2010-08-03 DJ Delorie <[email protected]> |
15 | ||
16 | * elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes. | |
17 | ||
bfea910e TG |
18 | 2010-08-03 Tristan Gingold <[email protected]> |
19 | ||
20 | * vms-misc.c (vms_convert_to_var): Make it static. | |
21 | (_bfd_vms_convert_to_var_unix_filename): Make it public. | |
22 | ||
1222b291 TG |
23 | 2010-08-03 Tristan Gingold <[email protected]> |
24 | ||
25 | * makefile.vms (OBJS): Update list. | |
26 | ||
56213172 TG |
27 | 2010-08-03 Tristan Gingold <[email protected]> |
28 | ||
29 | * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS | |
30 | nor SEC_RELOC for empty sections. | |
31 | ||
d833fa0d TG |
32 | 2010-08-03 Tristan Gingold <[email protected]> |
33 | ||
34 | * vms-alpha.c (evax_section_flags): Fix flags for absolute | |
35 | section. Remove useless parenthesis. | |
36 | ||
22b6a042 TG |
37 | 2010-08-03 Tristan Gingold <[email protected]> |
38 | ||
39 | * vms-lib.c (vms_lib_bread_raw): Change type of BUF argument. | |
40 | (vms_lib_bread, vms_lib_bopen): Adjust. | |
41 | ||
85cfcbfb AM |
42 | 2010-08-02 Alan Modra <[email protected]> |
43 | ||
44 | PR 11866 | |
45 | * elf.c (assign_file_positions_for_load_sections): Use p_vaddr to | |
46 | calculate off_adjust rather than first section vma. | |
47 | ||
b20dd2ce L |
48 | 2010-07-30 H.J. Lu <[email protected]> |
49 | ||
50 | * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info. | |
51 | ||
e95c64cb AG |
52 | 2010-07-30 Anthony Green <[email protected]> |
53 | ||
54 | * config.bfd (targ_cpu): Add moxie-*-rtems support. | |
55 | ||
d62b3684 AM |
56 | 2010-07-29 Alan Modra <[email protected]> |
57 | ||
58 | * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in | |
59 | .toc section, even when none are used in relocs. | |
60 | ||
9684f078 MR |
61 | 2010-07-27 Maciej W. Rozycki <[email protected]> |
62 | ||
63 | * elfxx-mips.h: Include "elf/mips.h". | |
64 | (gprel16_reloc_p): New static inline function. | |
65 | * elfxx-mips.c (_bfd_mips_elf_check_relocs) | |
66 | [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]: | |
67 | Use got16_reloc_p. | |
68 | (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use | |
69 | gprel16_reloc_p. | |
70 | * elf32-mips.c (mips_info_to_howto_rel): Likewise. | |
71 | * elfn32-mips.c (mips_info_to_howto_rel): Likewise. | |
72 | ||
2b2c11bd MR |
73 | 2010-07-27 Maciej W. Rozycki <[email protected]> |
74 | ||
75 | * elf64-mips.c (mips_elf64_howto_table_rela) | |
76 | [R_MIPS_TLS_DTPMOD64]: Clear partial_inplace. | |
77 | [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise. | |
78 | [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise. | |
79 | [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise. | |
80 | [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise. | |
81 | * elfn32-mips.c (elf_mips_howto_table_rela) | |
82 | [R_MIPS_TLS_DTPMOD32]: Likewise. | |
83 | [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise. | |
84 | [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise. | |
85 | [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise. | |
86 | [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise. | |
87 | ||
1cd986c5 NC |
88 | 2010-07-23 Naveen.H.S <[email protected]> |
89 | Ina Pandit <[email protected]> | |
90 | ||
91 | * archures.c (DESCRIPTION): Define bfd_mach_v850e2 and | |
92 | bfd_mach_v850e2v3. | |
93 | * reloc.c (bfd_architecture): Define bfd_mach_v850e2 and | |
94 | bfd_mach_v850e2v3. | |
95 | (BFD_RELOC_V850_16_PCREL, BFD_RELOC_V850_17_PCREL, | |
96 | BFD_RELOC_V850_22_PCREL, BFD_RELOC_V850_23, | |
97 | BFD_RELOC_V850_32_PCREL, BFD_RELOC_V850_32_ABS, | |
98 | BFD_RELOC_V850_16_SPLIT_OFFSET, BFD_RELOC_V850_16_S1, | |
99 | BFD_RELOC_V850_LO16_SPLIT_OFFSET, BFD_RELOC_V850_SDA_15_16_OFFSET, | |
100 | BFD_RELOC_V850_ZDA_16_16_OFFSET, BFD_RELOC_V850_CALLT_15_16_OFFSET, | |
101 | BFD_RELOC_V850_32_GOTPCREL, BFD_RELOC_V850_16_GOT, | |
102 | BFD_RELOC_V850_32_GOT, BFD_RELOC_V850_22_PLT_PCREL, | |
103 | BFD_RELOC_V850_32_PLT_PCREL, BFD_RELOC_V850_COPY, | |
104 | BFD_RELOC_V850_GLOB_DAT, BFD_RELOC_V850_JMP_SLOT, | |
105 | BFD_RELOC_V850_RELATIVE, BFD_RELOC_V850_16_GOTOFF, | |
106 | BFD_RELOC_V850_32_GOTOFF, BFD_RELOC_V850_CODE, | |
107 | BFD_RELOC_V850_DATA): New relocations for V850 target. | |
108 | * config.bfd: Match all v850 targets. | |
109 | * cpu-v850.c (arch_info_struct): Define V850e2 and V850e2v3. | |
110 | * elf32-v850.c (v850_elf_check_relocs): Check the newly added | |
111 | relocations. | |
112 | (v850_elf_perform_relocation ): Update the newly added | |
113 | relocations. | |
114 | (v850_elf_howto_t): Update the specifications of added | |
115 | relocations. | |
116 | (v850_elf_reloc_map): Update the relocation mappings. | |
117 | (v850_elf_final_link_relocate): Maps added relocation into the | |
118 | appropriate howto structure. | |
119 | (v850_elf_object_p): Add support for V850E2 and V850E2V3. | |
120 | (v850_elf_final_write_processing): Likewise. | |
121 | (v850_elf_merge_private_bfd_data): Likewise. | |
122 | (v850_elf_print_private_bfd_data): Likewise. | |
123 | * libbfd.h: Regenerate. | |
124 | * bfd-in2.h: Regenerate. | |
125 | ||
21fd2dbd AM |
126 | 2010-07-23 Alan Modra <[email protected]> |
127 | ||
128 | * archive.c (_bfd_archive_bsd44_construct_extended_name_table): | |
129 | Correct format specifier. | |
130 | ||
c6a3cf87 AM |
131 | 2010-07-22 Alan Modra <[email protected]> |
132 | ||
133 | * ecoff.c: Don't include aout/ranlib.h. | |
134 | (_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs. | |
135 | (_bfd_ecoff_write_armap): Output ar_date and ar_size using | |
136 | _bfd_ar_spacepad. | |
137 | ||
4c1534c7 AM |
138 | 2010-07-22 Alan Modra <[email protected]> |
139 | ||
140 | * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with | |
141 | relocs. | |
142 | ||
f4638467 AM |
143 | 2010-07-20 Alan Modra <[email protected]> |
144 | ||
145 | * elf.c (assign_file_positions_for_load_sections): Check that | |
146 | zero size sections are allocated in segments too. | |
147 | (assign_file_positions_for_non_load_sections): Warn if zero | |
148 | size alloc sections are found here. | |
149 | (copy_elf_program_header): Don't drop zero size sections from | |
150 | segment map. | |
151 | (copy_private_bfd_data): Check for changes in zero size sections. | |
152 | ||
b5599592 AM |
153 | 2010-07-17 Alan Modra <[email protected]> |
154 | ||
155 | * elf.c (_bfd_elf_map_sections_to_segments): Force new segment | |
156 | for sections with overlapping LMAs. | |
157 | (assign_file_positions_for_load_sections): Catch overlap for | |
158 | sections that wrap around the address space. Replace a | |
159 | warning that duplicates ld's --check-sections error with a | |
160 | warning that lma has been adjusted for overlapping sections. | |
161 | ||
8c2ccebd CC |
162 | 2010-07-14 Cary Coutant <[email protected]> |
163 | ||
164 | PR ld/11817 | |
165 | * dwarf2.c (read_section): Revert patch for compressed debug sections. | |
166 | (find_line): Likewise. | |
167 | (read_and_uncompress_section): Remove. | |
168 | ||
a7b16ceb L |
169 | 2010-07-13 H.J. Lu <[email protected]> |
170 | ||
171 | PR ld/11812 | |
172 | * elf32-i386.c (elf_i386_size_dynamic_sections): Don't | |
173 | allocate .got.plt section if there are no GOT nor PLT | |
174 | entries. | |
175 | * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise. | |
176 | ||
bb1cb422 L |
177 | 2010-07-13 H.J. Lu <[email protected]> |
178 | ||
179 | PR ld/11791 | |
180 | * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support | |
181 | garbage collection against STT_GNU_IFUNC symbols. | |
182 | ||
183 | * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set | |
184 | elf.plt.offset/elf.got.offset to -1. | |
185 | (elf_i386_tls_transition): Skip TLS transition for functions. | |
186 | (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols. | |
187 | ||
188 | * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set | |
189 | elf.plt.offset/elf.got.offset to -1. | |
190 | (elf64_x86_64_tls_transition): Skip TLS transition for functions. | |
191 | (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols. | |
192 | ||
9fff0c39 L |
193 | 2010-07-12 H.J. Lu <[email protected]> |
194 | ||
195 | * elf32-i386.c (elf_i386_check_relocs): Re-indent. | |
196 | (elf_i386_relocate_section): Likewise. | |
197 | ||
f5296ddc L |
198 | 2010-07-06 H.J. Lu <[email protected]> |
199 | ||
200 | * dwarf2.c (add_line_info): Initialize prev_line. | |
201 | ||
50248c89 AM |
202 | 2010-07-06 Alan Modra <[email protected]> |
203 | ||
204 | * elf32-ppc.c (ppc_elf_relax_section): Insert branch around | |
205 | trampolines only for .init and .fini sections. | |
206 | ||
5b914448 AM |
207 | 2010-07-05 Alan Modra <[email protected]> |
208 | ||
209 | * elf32-ppc.c: Formatting. | |
210 | (ppc_elf_finish_dynamic_sections): Don't make plt_entry var static. | |
211 | ||
0acf065b CC |
212 | 2010-07-03 Cary Coutant <[email protected]> |
213 | ||
214 | * compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED. | |
215 | * dwarf2.c (read_and_uncompress_section): New function. | |
216 | (read_section): Call it. | |
217 | (find_line): Likewise. | |
218 | ||
726d3ab0 AM |
219 | 2010-07-01 Alan Modra <[email protected]> |
220 | ||
221 | * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather | |
222 | than SYMBOL_REFERENCES_LOCAL. | |
223 | (ppc64_elf_relocate_section): Likewise. | |
224 | ||
bddc25c9 AM |
225 | 2010-07-01 Alan Modra <[email protected]> |
226 | ||
227 | * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs. | |
228 | ||
360cfc9c AM |
229 | 2010-06-29 Alan Modra <[email protected]> |
230 | ||
231 | * cpu-maxq.c: Delete file. | |
232 | * coff-maxq.c: Delete file. | |
233 | * Makefile.am: Remove references to maxq. | |
234 | * archures.c: Likewise. | |
235 | * coffcode.h: Likewise. | |
236 | * configure.in: Likewise. | |
237 | * targets.c: Likewise. | |
238 | * config.bfd: Move maxq from obsolete to removed. | |
239 | * Makefile.in: Regenerate. | |
240 | * bfd-in2.h: Regenerate. | |
241 | * configure: Regenerate. | |
242 | * libbfd.h: Regenerate. | |
243 | * po/SRC-POTFILES.in: Regenerate. | |
244 | ||
3f062f44 AM |
245 | 2010-06-28 Alan Modra <[email protected]> |
246 | ||
247 | * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED | |
248 | to silence gcc warning. | |
249 | ||
6bee8834 AM |
250 | 2010-06-27 Alan Modra <[email protected]> |
251 | ||
252 | * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data. | |
253 | (group_sections): Likewise. | |
254 | ||
c7e2358a AM |
255 | 2010-06-27 Alan Modra <[email protected]> |
256 | ||
257 | * bout.c (aligncode): Delete set but unused variables. | |
258 | * coff-mcore.c (coff_mcore_relocate_section): Likewise. | |
259 | * coff-ppc.c (ppc_record_toc_entry): Likewise. | |
260 | (coff_ppc_relocate_section): Likewise. | |
261 | * coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise. | |
262 | * elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise. | |
263 | * elf-m10300.c (mn10300_elf_final_link_relocate): Likewise. | |
264 | (mn10300_elf_relax_section): Likewise. | |
265 | * elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise. | |
266 | (record_vfp11_erratum_veneer): Likewise. | |
267 | (bfd_elf32_arm_vfp11_erratum_scan): Likewise. | |
268 | (elf32_arm_final_link_relocate): Likewise. | |
269 | (elf32_arm_check_relocs, arm_map_one_stub): Likewise. | |
270 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise. | |
271 | (elf32_avr_relax_section): Likewise. | |
272 | (avr_mark_stub_not_to_be_necessary): Likewise. | |
273 | * elf32-bfin.c (_bfin_create_got_section): Likewise. | |
274 | * elf32-cr16.c (cr16_elf_final_link_relocate): Likewise. | |
275 | (elf32_cr16_relax_delete_bytes): Likewise. | |
276 | * elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise. | |
277 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
278 | * elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise. | |
279 | * elf32-h8300.c (elf32_h8_relax_section): Likewise. | |
280 | (elf32_h8_relax_delete_bytes): Likewise. | |
281 | * elf32-hppa.c (elf32_hppa_check_relocs): Likewise. | |
282 | * elf32-i370.c (i370_elf_check_relocs): Likewise. | |
283 | (elf_relocate_section): Likewise. | |
284 | * elf32-ip2k.c (adjust_all_relocations): Likewise. | |
285 | (ip2k_elf_relax_section): Likewise. | |
286 | * elf32-lm32.c (lm32_elf_relocate_section): Likewise. | |
287 | (lm32_elf_check_relocs): Likewise. | |
288 | (lm32_elf_finish_dynamic_sections): Likewise. | |
289 | (lm32_elf_finish_dynamic_symbol): Likewise. | |
290 | * elf32-m32c.c (m32c_offset_for_reloc): Likewise. | |
291 | (m32c_elf_relax_delete_bytes): Likewise. | |
292 | * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise. | |
293 | (m32r_elf_finish_dynamic_sections): Likewise. | |
294 | (m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise. | |
295 | * elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise. | |
296 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. | |
297 | * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise. | |
298 | * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise. | |
299 | (microblaze_elf_check_relocs): Likewise. | |
300 | (microblaze_elf_finish_dynamic_symbol): Likewise. | |
301 | * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise. | |
302 | * elf32-ppc.c (ppc_elf_tls_optimize): Likewise. | |
303 | * elf32-rx.c (rx_elf_relocate_section): Likewise. | |
304 | (elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise. | |
305 | (elf32_rx_relax_section): Likewise. | |
306 | * elf32-score.c (score_elf_got_offset_from_index): Likewise. | |
307 | (score_elf_final_link_relocate): Likewise. | |
308 | (s3_bfd_score_elf_relocate_section): Likewise. | |
309 | * elf32-score7.c (score_elf_got_offset_from_index): Likewise. | |
310 | (s7_bfd_score_elf_relocate_section): Likewise. | |
311 | * elf32-sh.c (sh_elf_check_relocs): Likewise. | |
312 | * elf32-spu.c (spu_elf_relocate_section): Likewise. | |
313 | * elf32-v850.c (v850_elf_check_relocs): Likewise. | |
314 | (find_remembered_hi16s_reloc): Likewise. | |
315 | * elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise. | |
316 | (elf_vax_relocate_section): Likewise. | |
317 | * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise. | |
318 | * elf32-xtensa.c (xlate_offset_with_removed_text): Likewise. | |
319 | (move_literal): Likewise. | |
320 | * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise. | |
321 | (elf64_hppa_check_relocs): Likewise. | |
322 | (elf64_hppa_finish_dynamic_symbol): Likewise. | |
323 | (elf64_hppa_relocate_section): Likewise. | |
324 | * elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise. | |
325 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
326 | (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise. | |
327 | * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise. | |
328 | (elfNN_vms_section_from_shdr): Likewise. | |
329 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
330 | (_bfd_sparc_elf_relocate_section): Likewise. | |
331 | * hp300hpux.c (slurp_symbol_table): Likewise. | |
332 | * i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise. | |
333 | * mach-o.c (bfd_mach_o_write_thread): Likewise. | |
334 | * mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise. | |
335 | * nlm32-sparc.c (nlm_sparc_read_reloc): Likewise. | |
336 | * pdp11.c (pdp11_aout_link_input_section): Likewise. | |
337 | (aout_link_input_section, aout_link_input_bfd): Likewise. | |
338 | * pe-mips.c (mips_swap_reloc_out): Likewise. | |
339 | (coff_pe_mips_relocate_section): Likewise. | |
340 | * som.c (som_bfd_ar_write_symbol_stuff): Likewise. | |
341 | * vms-alpha.c (_bfd_vms_slurp_egsd): Likewise. | |
342 | * xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise. | |
343 | ||
344 | * coff-i860.c (i860_reloc_processing): Avoid set but unused warning. | |
345 | * coffcode.h (coff_compute_section_file_positions): Likewise. | |
346 | (coff_slurp_reloc_table): Likewise. | |
347 | * cpu-arm.c (arm_check_note): Likewise. | |
348 | * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise. | |
349 | * elf32-avr.c (elf32_avr_relocate_section): Likewise. | |
350 | * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise. | |
351 | * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. | |
352 | * elf32-moxie.c (moxie_elf_relocate_section): Likewise. | |
353 | * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. | |
354 | * elf32-sh64.c (_bfd_sh_align_load_span): Likewise. | |
355 | * ieee.c (parse_expression): Likewise. | |
356 | (ieee_slurp_external_symbols, drop_int): Likewise. | |
357 | * peXXigen.c (pe_print_pdata): Likewise. | |
358 | * versados.c (process_esd): Likewise. | |
359 | ||
4ba2ab9f TG |
360 | 2010-06-25 Tristan Gingold <[email protected]> |
361 | ||
362 | * vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with | |
363 | its flags. Create an absolute section if needed. | |
364 | ||
1b3d1dbf TG |
365 | 2010-06-25 Tristan Gingold <[email protected]> |
366 | ||
367 | * vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of | |
368 | sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create | |
369 | dummy psect anymore. Adjust. | |
370 | (_bfd_vms_write_eeom): Adjust (use target_index instead of index) | |
371 | (_bfd_vms_write_etir): Ditto. | |
372 | (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of | |
373 | section name. Adjust. | |
374 | ||
9714ee48 TG |
375 | 2010-06-25 Tristan Gingold <[email protected]> |
376 | ||
377 | * vms-alpha.c (alpha_vms_write_exec): Set linktime field. | |
378 | ||
ba761f19 AM |
379 | 2010-06-25 Alan Modra <[email protected]> |
380 | ||
381 | * elf64-ppc.c (toc_skip_enum): Define. | |
382 | (ppc64_elf_edit_toc): Use two low bits of skip array as markers. | |
383 | Optimize largetoc sequences. | |
384 | (adjust_toc_syms): Update for skip array change. | |
385 | (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT. | |
386 | ||
854b41e7 AM |
387 | 2010-06-25 Alan Modra <[email protected]> |
388 | ||
389 | * elf64-ppc.c (is_static_defined): New function. | |
390 | (get_tls_mask, ppc_type_of_stub): Use it here. | |
391 | (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input. | |
392 | (ppc64_elf_tls_setup): Typo fix. | |
393 | (adjust_toc_syms): Correctly handle symbols defined past the end | |
394 | of the toc. Move syms on removed entries to next entry rather | |
395 | than to start of toc. | |
396 | (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to | |
397 | edit ppc64 input. Allocate one extra word in skip array. | |
398 | Honour info->keep_memory when reading relocs if we can. | |
399 | Adjust toc relocs after adjusting symbols. | |
400 | ||
61e8a5ea NS |
401 | 2010-06-23 Nathan Sidwell <[email protected]> |
402 | ||
403 | * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun | |
404 | when scaning map. | |
405 | ||
24df9a51 TG |
406 | 2010-06-17 Tristan Gingold <[email protected]> |
407 | ||
408 | * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ... | |
409 | (BFD64_BACKENDS_CFILES): ... here. | |
410 | (BFD32_BACKENDS): Move vms-alpha.lo to ... | |
411 | (BFD64_BACKENDS): ... here. | |
412 | * Makefile.in: Regenerate. | |
413 | ||
59e6276b JM |
414 | 2010-06-15 Joseph Myers <[email protected]> |
415 | ||
416 | * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2. | |
417 | * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type, | |
418 | elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes, | |
419 | elf32_tic6x_merge_private_bfd_data): New. | |
420 | (bfd_elf32_bfd_merge_private_bfd_data, | |
421 | elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section, | |
422 | elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor): | |
423 | Define. | |
424 | * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare. | |
425 | ||
3de4a297 JM |
426 | 2010-06-15 Joseph Myers <[email protected]> |
427 | ||
428 | * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define. | |
429 | (struct elf_backend_data): Update comment on obj_attrs_order. | |
430 | * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents, | |
431 | _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE | |
432 | instead of hardcoded 4. | |
433 | * elf32-arm.c (elf32_arm_obj_attrs_order): Use | |
434 | LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1 | |
435 | instead of hardcoded 4 and 5. | |
436 | (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE | |
437 | instead of hardcoded 4. | |
438 | ||
84477db9 KB |
439 | 2010-06-14 Kevin Buettner <[email protected]> |
440 | ||
441 | * elf32-h8300.c (elf_symbol_leading_char): Define. | |
442 | ||
dddb0e80 JK |
443 | 2010-06-11 Jan Kratochvil <[email protected]> |
444 | ||
445 | * vms-alpha.c (_bfd_vms_write_egsd): Make sname const. | |
446 | ||
f654f403 TG |
447 | 2010-06-11 Tristan Gingold <[email protected]> |
448 | ||
449 | * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute | |
450 | sections to 0. | |
451 | ||
ff150b92 TG |
452 | 2010-06-11 Tristan Gingold <[email protected]> |
453 | ||
454 | * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW. | |
455 | ||
81bb31c0 TG |
456 | 2010-06-11 Tristan Gingold <[email protected]> |
457 | ||
458 | * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const. | |
459 | Adjust cast. | |
460 | (_bfd_vms_output_dump): Make DATA argument const, adjust cast. | |
461 | * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust. | |
462 | * vms-alpha.c (evax_section_flags): Make it const. | |
463 | (vms_secflag_by_name): Remove unused ABFD argument. | |
464 | Make SECTION_FLAGS and NAME arguments const. Clarify comment. | |
465 | (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const. | |
466 | (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name. | |
467 | (_bfd_vms_write_egsd): Remove useless cast. | |
468 | ||
cb3aabc7 TG |
469 | 2010-06-10 Tristan Gingold <[email protected]> |
470 | ||
471 | * config.bfd: Remove #if/#endif so that som can be compiled on any | |
472 | host. | |
473 | * targets.c (_bfd_target_vector): Remove #if/#endif so that som | |
474 | can be used on any host. | |
475 | ||
e1f000f6 TG |
476 | 2010-06-10 Tristan Gingold <[email protected]> |
477 | ||
478 | * som.c: Can now be compiled on any host. | |
479 | Include bfd headers instead of system one. | |
480 | (som_compute_checksum): Parameter is now a pointer to a | |
481 | som_external_header structure. Adjust. | |
482 | (struct section_to_type): Field section is now const. | |
483 | (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional | |
484 | definition. | |
485 | (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto. | |
486 | (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto. | |
487 | (som_swap_clock_in, som_swap_clock_out): New functions. | |
488 | (som_swap_header_in, som_swap_header_out): Likewise. | |
489 | (som_swap_space_dictionary_in): Likewise. | |
490 | (som_swap_space_dictionary_out): Likewise. | |
491 | (som_swap_subspace_dictionary_in): Likewise. | |
492 | (som_swap_subspace_dictionary_record_out): Likewise. | |
493 | (som_swap_aux_id_in, som_swap_aux_id_out): Likewise. | |
494 | (som_swap_string_auxhdr_out): Likewise. | |
495 | (som_swap_compilation_unit_out): Likewise. | |
496 | (som_swap_exec_auxhdr_in): Likewise. | |
497 | (som_swap_exec_auxhdr_out): Likewise. | |
498 | (som_swap_lst_header_in): Likewise. | |
499 | (som_object_setup): Adjust parameter type using bfd types. | |
500 | (setup_sections): Likewise. Ditto for object file types. | |
501 | Use intermediate variables for external representation and use the | |
502 | swap functions to convert. | |
503 | (som_object_p): Ditto. Remove #ifdef/#endif on always defined | |
504 | macros. | |
505 | (som_prep_headers): Likewise. | |
506 | (som_write_symbol_strings): Likewise. | |
507 | (som_begin_writing): Likewise. | |
508 | (som_finish_writing): Likewise. | |
509 | (som_build_and_write_symbol_table): Likewise. | |
510 | (bfd_section_from_som_symbol): Likewise. | |
511 | (som_slurp_symbol_table): Likewise. | |
512 | (som_bfd_print_private_bfd_data): Likewise. | |
513 | (bfd_som_attach_aux_hdr): Likewise. Clear the padding. | |
514 | (bfd_som_attach_compilation_unit): Likewise. | |
515 | (som_bfd_count_ar_symbols): Likewise. | |
516 | (som_bfd_fill_in_ar_symbols): Likewise. | |
517 | (som_slurp_armap): Likewise. | |
518 | (som_bfd_ar_write_symbol_stuff): Likewise. | |
519 | (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of | |
520 | sprintf to write header fields. | |
521 | * som.h: Include bfd headers instead of system one. | |
522 | (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed. | |
523 | (struct somdata): Use bfd structures instead of system ones. | |
524 | (struct som_section_data_struct): Likewise. | |
525 | (struct som_subspace_dictionary_record): Removed (now in | |
526 | include/som/internal.h) | |
527 | ||
318cadba TG |
528 | 2010-06-10 Tristan Gingold <[email protected]> |
529 | ||
530 | * targets.c (bfd_target_list): Remove hp/ux compiler work-around | |
531 | as bfd requires an ANSI-C compiler. | |
532 | ||
f0b3dbfc TG |
533 | 2010-06-09 Tristan Gingold <[email protected]> |
534 | ||
535 | * bfdio.c (bfd_bread): Fix the code to prevent reading past the | |
536 | end of archive members. | |
537 | ||
7da73d69 TG |
538 | 2010-06-08 Tristan Gingold <[email protected]> |
539 | ||
540 | * som.c (som_bfd_free_cached_info): Do not free relocations as | |
541 | they were allocated with bfd_zalloc. | |
542 | ||
cba3addf TG |
543 | 2010-06-08 Tristan Gingold <[email protected]> |
544 | ||
545 | * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment | |
546 | for the first block. | |
547 | ||
09266d1a TG |
548 | 2010-06-08 Tristan Gingold <[email protected]> |
549 | ||
550 | * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function. | |
551 | * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare. | |
552 | * libbfd.h: Regenerate. | |
553 | * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS. | |
554 | (bfd_elfNN_mkarchive): Ditto. | |
555 | ||
d0ef7741 TG |
556 | 2010-06-02 Tristan Gingold <[email protected]> |
557 | ||
558 | * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant. | |
559 | ||
a009f2e7 RW |
560 | 2010-06-01 Ralf Wildenhues <[email protected]> |
561 | ||
562 | * configure: Regenerate. | |
563 | ||
46d00b8a TG |
564 | 2010-06-01 Tristan Gingold <[email protected]> |
565 | ||
566 | * vms-alpha.c (struct vms_private_data_struct): Add | |
567 | transfer_address field. Remove unused dst_info field. | |
568 | (alpha_vms_write_exec): Use transfer_address. | |
569 | (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE. | |
570 | (alpha_vms_bfd_final_link): Set transfer_address. | |
571 | ||
7d5ee7d7 TG |
572 | 2010-05-31 Tristan Gingold <[email protected]> |
573 | ||
574 | * vms-lib.c (credat_lo, credat_hi): New fields. | |
575 | (vms_read_block): Adjust comments. | |
576 | (vms_write_block): New function. | |
577 | (_bfd_vms_lib_archive_p): Decode majorid once. Replace some | |
578 | hard-coded values with constants. Set credat_lo and credat_hi. | |
579 | (_bfd_vms_lib_mkarchive): Add argument kind. | |
580 | Set ver, mhd_size and type according to kind. | |
581 | (_bfd_vms_lib_alpha_mkarchive): New function. | |
582 | (struct lib_index): Renamed from struct vms_index | |
583 | (lib_index_cmp): Renamed from vms_index_cmp. Adjusted. | |
584 | (get_idxlen): Type of idx argument adjusted. Add is_elfidx | |
585 | argument and handle it. | |
586 | (vms_write_index): Adjust argument idx. Handle elf indexes. | |
587 | (_bfd_vms_lib_build_map): Adjust type of arguments modules and res. | |
588 | (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and | |
589 | use it. Handle elf indexes. Set credat. | |
590 | * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ... | |
591 | (_bfd_vms_lib_alpha_mkarchive): ... this. | |
592 | * libbfd.h: Regenerated. | |
593 | * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming. | |
594 | ||
7aa09196 SA |
595 | 2010-05-28 Sterling Augustine <[email protected]> |
596 | ||
7d5ee7d7 | 597 | * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount |
7aa09196 SA |
598 | of code to change the bits in the instructions to match the changes |
599 | in the relocations. Declare dest_addr and sym_sec to help. | |
600 | ||
81c5c866 JK |
601 | 2010-05-28 Jan Kratochvil <[email protected]> |
602 | ||
603 | Workaround GCC PR middle-end/4210. | |
604 | * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2] | |
605 | and val[3]. | |
606 | ||
953b49ed TG |
607 | 2010-05-27 Tristan Gingold <[email protected]> |
608 | ||
609 | * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces. | |
610 | (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros. | |
611 | (vms_time_to_time_t): Use them instead of local const. | |
612 | (vms_time_t_to_vms_time): New function. | |
613 | (vms_get_time): Likewise. | |
614 | (vms_raw_get_time): Likewise. | |
615 | * vms.h (vms_time_t_to_vms_time): New declaration. | |
616 | (vms_get_time): Likewise. | |
617 | (vms_raw_get_time): Likewise. | |
618 | ||
f9eeb9c9 TG |
619 | 2010-05-26 Tristan Gingold <[email protected]> |
620 | ||
621 | * vms-alpha.c: Update comments. | |
622 | (alpha_vms_write_exec): Set lnkflags. Write the GST. | |
623 | (alpha_vms_link_output_symbol): New function. | |
624 | (alpha_vms_bfd_final_link): Generate the VMS symbol table. | |
625 | Set dst_section private field. | |
626 | (alpha_vms_bfd_final_link): Remove code that set dst_section. | |
627 | ||
65077aa8 TG |
628 | 2010-05-26 Tristan Gingold <[email protected]> |
629 | ||
630 | * bfdio.c: Declare and define _bfd_memory_iovec. | |
631 | (bfd_bread): Move code for BFD_IN_MEMORY... | |
632 | (bfd_bwrite): ... Ditto ... | |
633 | (bfd_tell): ... Ditto ... | |
634 | (bfd_flush): ... Ditto ... | |
635 | (bfd_stat): ... Ditto ... | |
636 | (bfd_seek): ... Ditto ... | |
637 | (bfd_get_size): ... Ditto ... | |
638 | (bfd_mmap): ... Ditto ... | |
639 | (memory_bread): ... to these new functions. | |
640 | (memory_bwrite): Ditto. | |
641 | (memory_btell): Ditto. | |
642 | (memory_bseek): Ditto. | |
643 | (memory_bflush): Ditto. | |
644 | (memory_bstat): Ditto. | |
645 | (memory_bmmap): Ditto. | |
646 | (memory_bclose): New function. | |
647 | * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY. | |
648 | * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto. | |
649 | * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case. | |
650 | (bfd_make_writable): Use _bfd_memory_iovec. | |
651 | * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec. | |
652 | * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use | |
653 | _bfd_memory_iovec. | |
654 | (alpha_ecoff_openr_next_archived_file): Use proxy_origin | |
655 | instead of origin. | |
656 | * libbfd.h: Regenerate. | |
657 | ||
8e45593f NC |
658 | 2010-05-25 Daniel Jacobowitz <[email protected]> |
659 | Joseph Myers <[email protected]> | |
660 | Andrew Stubbs <[email protected]> | |
661 | ||
662 | * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add | |
663 | bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs. | |
664 | * configure.in: Handle FDPIC vectors. | |
665 | * elf32-sh-relocs.h: Add FDPIC and movi20 relocations. | |
666 | * elf32-sh.c (DEFAULT_STACK_SIZE): Define. | |
667 | (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of | |
668 | SYMBOL_REFERENCES_LOCAL for function descriptors. | |
669 | (fdpic_object_p): New. | |
670 | (sh_reloc_map): Add FDPIC and movi20 relocations. | |
671 | (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid | |
672 | range. | |
673 | (struct elf_sh_plt_info): Add got20 and short_plt. Update all | |
674 | definitions. | |
675 | (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define. | |
676 | (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New. | |
677 | (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define. | |
678 | (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le) | |
679 | (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts): | |
680 | New. | |
681 | (get_plt_info): Handle FDPIC. | |
682 | (MAX_SHORT_PLT): Define. | |
683 | (get_plt_index, get_plt_offset): Handle short_plt. | |
684 | (union gotref): New. | |
685 | (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to | |
686 | got_type and adjust all uses. Add GOT_FUNCDESC. | |
687 | (struct sh_elf_obj_tdata): Add local_funcdesc. Rename | |
688 | local_got_tls_type to local_got_type. | |
689 | (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All | |
690 | users changed. | |
691 | (sh_elf_local_funcdesc): Define. | |
692 | (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p, | |
693 | and srofixup. | |
694 | (sh_elf_link_hash_newfunc): Initialize new fields. | |
695 | (sh_elf_link_hash_table_create): Set fdpic_p. | |
696 | (sh_elf_omit_section_dynsym): New. | |
697 | (create_got_section): Create .got.funcdesc, .rela.got.funcdesc | |
698 | and .rofixup. | |
699 | (allocate_dynrelocs): Allocate local function descriptors and space | |
700 | for R_SH_FUNCDESC-related relocations, and for rofixups. | |
701 | Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which | |
702 | require function descriptors. | |
703 | (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize. | |
704 | (sh_elf_modify_program_headers): New. | |
705 | (sh_elf_size_dynamic_sections): Allocate function descriptors for | |
706 | local symbols. Allocate .got.funcdesc contents. Allocate rofixups. | |
707 | Handle local GOT entries of type GOT_FUNCDESC. Create fixups for | |
708 | local GOT entries. Ensure that FDPIC libraries always have a PLTGOT | |
709 | entry in the .dynamic section. | |
710 | (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc) | |
711 | (sh_elf_add_rofixup, sh_elf_osec_to_segment) | |
712 | (sh_elf_osec_readonly_p, install_movi20_field): New functions. | |
713 | (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC, | |
714 | R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset | |
715 | and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup | |
716 | read-only section warnings. Handle undefined weak symbols. Generate | |
717 | fixups for R_SH_DIR32 and GOT entries. Check for cross-segment | |
718 | relocations and clear EF_SH_PIC. Handle 20-bit relocations. | |
719 | Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE. | |
720 | (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20, | |
721 | R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC. | |
722 | Handle 20-bit relocations. | |
723 | (sh_elf_copy_indirect_symbol): Copy function descriptor reference | |
724 | counts. | |
725 | (sh_elf_check_relocs): Handle new relocations. Make symbols | |
726 | dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC | |
727 | symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups | |
728 | for R_SH_DIR32. | |
729 | (sh_elf_copy_private_data): Copy PT_GNU_STACK size. | |
730 | (sh_elf_merge_private_data): Copy initial flags. Do not clobber | |
731 | non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches. | |
732 | (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries | |
733 | here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt, | |
734 | FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC. | |
735 | Use install_movi20_field. Rename srel to srelgot. Always generate | |
736 | R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE. | |
737 | (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup. | |
738 | Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT. | |
739 | Rename sgot to sgotplt. Assert that the right number of rofixups | |
740 | and dynamic relocations were allocated. | |
741 | (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New. | |
742 | (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym. | |
743 | (elf_backend_can_make_relative_eh_frame) | |
744 | (elf_backend_can_make_lsda_relative_eh_frame) | |
745 | (elf_backend_encode_eh_address): Define. | |
746 | (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM) | |
747 | (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed): | |
748 | Redefine for FDPIC vector. | |
749 | * reloc.c: Add SH FDPIC and movi20 relocations. | |
750 | * targets.c (_bfd_target_vector): Add FDPIC vectors. | |
751 | * configure, bfd-in2.h, libbfd.h: Regenerated. | |
752 | ||
9fcd9da6 NC |
753 | 2010-05-25 Jay Krell <[email protected]> |
754 | ||
755 | PR ld/11624 | |
756 | * archive.c (_bfd_calloc_wrapper): New function. | |
757 | (_bfd_add_bfd_to_archive_cache): Use it. | |
758 | ||
759 | * configure.in: Add alpha*-*-*vms* to list of natives. | |
760 | * configure: Regenerate. | |
761 | ||
762 | * vms-misc.c: Define globalref if necessary. | |
763 | (vms_convert_to_var_unix_filename): Rename to | |
764 | _bfd_vms_convert_to_var_unix_filename and export. | |
765 | * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename. | |
766 | * vms-alpha.c (vms_close_and_cleanup): Update invocation of | |
767 | vms_convert_to_var_unix_filename. | |
768 | ||
c734eb83 TG |
769 | 2010-05-24 Tristan Gingold <[email protected]> |
770 | ||
ce76e55c TG |
771 | * vms-alpha.c (add_symbol_entry): New function extrated from ... |
772 | (add_symbol): ... adjusted. | |
c734eb83 | 773 | |
5fe88cfb TG |
774 | 2010-05-24 Tristan Gingold <[email protected]> |
775 | ||
776 | * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation. | |
777 | (alpha_vms_write_exec): Add a comment. | |
778 | (_bfd_vms_write_egsd): Ditto. | |
779 | (alpha_vms_convert_symbol): Remove a blank line. | |
780 | ||
6a286118 TG |
781 | 2010-05-21 Tristan Gingold <[email protected]> |
782 | ||
783 | * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section | |
784 | for the GST. | |
785 | ||
c068d5be TG |
786 | 2010-05-21 Tristan Gingold <[email protected]> |
787 | ||
788 | * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and | |
789 | SEC_LOAD if isect has data. | |
790 | (vms_get_symbol_info): Refine the condition for 'T' type. | |
791 | ||
bd7b51b4 TG |
792 | 2010-05-18 Tristan Gingold <[email protected]> |
793 | ||
794 | * vms-alpha.c (_bfd_vms_write_emh): New function. | |
795 | (_bfd_vms_write_lmn): New function. | |
796 | (_bfd_vms_write_eeom): Moved. | |
797 | (hash_string): Likewise. | |
798 | (_bfd_vms_length_hash_symbol): Likewise. | |
799 | (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh | |
800 | and _bfd_vms_write_lmn, and call these functions. | |
801 | ||
0fca53b7 TG |
802 | 2010-05-18 Tristan Gingold <[email protected]> |
803 | ||
804 | * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L. | |
805 | Add details in the messages. | |
806 | (evax_bfd_print_image): Change message. | |
807 | ||
18ae9cc1 L |
808 | 2010-05-18 H.J. Lu <[email protected]> |
809 | ||
810 | PR gas/11600 | |
811 | * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE | |
812 | (elf_fake_sections): Likewise. | |
813 | ||
814 | * elf32-i370.c (i370_elf_section_from_shdr): Don't handle | |
815 | SHF_EXCLUDE here. | |
816 | * elf32-ppc.c (ppc_elf_fake_sections): Likewise. | |
817 | ||
9a1b4480 TG |
818 | 2010-05-17 Tristan Gingold <[email protected]> |
819 | ||
820 | * vms-alpha.c: Include esgps.h and eidc.h. | |
821 | (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records. | |
3a689531 TG |
822 | (evax_bfd_print_egsd_flags): New function, extracted from ... |
823 | (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles | |
9a1b4480 TG |
824 | EGSD__C_SPSC and EGSD__C_IDC. |
825 | ||
af47dcbf TG |
826 | 2010-05-14 Tristan Gingold <[email protected]> |
827 | ||
828 | * vms-alpha.c (alpha_vms_object_p): Accept header size of 0. | |
829 | (_bfd_vms_get_object_record): Handle align byte only in the | |
830 | foreign case. | |
831 | ||
7256a114 TG |
832 | 2010-05-14 Tristan Gingold <[email protected]> |
833 | ||
834 | * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function. | |
835 | * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype. | |
836 | * libbfd.h: Regenerate. | |
837 | * configure.in (havevecs): Define HAVE_all_vecs when | |
838 | --enable-targets=all is set. Use AC_SUBST on it. | |
839 | (tdefaults): Do not add havevecs. | |
840 | (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo | |
841 | * configure: Regenerate. | |
842 | * Makefile.am (HAVEVECS): New variable. | |
843 | (INCLUDES): Add HAVEVECS. | |
844 | * Makefile.in: Regenerate. | |
845 | * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms | |
846 | target is selected. Add #ifdef/#endif around vms specific code. | |
847 | (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap, | |
848 | bfd_elfNN_archive_slurp_extended_name_table, | |
849 | bfd_elfNN_archive_construct_extended_name_table, | |
850 | bfd_elfNN_archive_truncate_arname, | |
851 | bfd_elfNN_archive_write_armap, | |
852 | bfd_elfNN_archive_read_ar_hdr, | |
853 | bfd_elfNN_archive_write_ar_hdr, | |
854 | bfd_elfNN_archive_openr_next_archived_file, | |
855 | bfd_elfNN_archive_get_elt_at_index, | |
856 | bfd_elfNN_archive_generic_stat_arch_elt, | |
857 | bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives. | |
858 | ||
4547cb56 NC |
859 | 2010-05-11 Jie Zhang <[email protected]> |
860 | ||
861 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge | |
862 | Tag_ABI_HardFP_use correctly. | |
863 | ||
3390ce30 AM |
864 | 2010-05-11 Alan Modra <[email protected]> |
865 | ||
866 | * coffcode.h (coff_write_object_contents): Enclose all occurrences | |
867 | of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE. | |
868 | ||
92750f34 DJ |
869 | 2010-05-07 Daniel Jacobowitz <[email protected]> |
870 | ||
871 | * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move | |
872 | sym_name to improve packing. | |
873 | (cortex_a8_erratum_scan): Check for PLT entries. | |
874 | (elf32_arm_size_stubs): Save the target symbol for a8 relocs. | |
875 | ||
6540b386 TG |
876 | 2010-05-07 Tristan Gingold <[email protected]> |
877 | ||
878 | * Makefile.in: Regenerate with automake 1.11.1. | |
879 | * aclocal.m4: Ditto. | |
880 | ||
3e01a7fd NC |
881 | 2010-05-05 Nick Clifton <[email protected]> |
882 | ||
883 | * po/es.po: Updated Spanish translation. | |
884 | ||
fa23f0f4 TG |
885 | 2010-05-03 Tristan Gingold <[email protected]> |
886 | ||
887 | * vms-lib.c (vms_lib_bopen): Fix the size threshold to read | |
888 | selective_search flag. | |
889 | Add comments. | |
890 | * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section | |
891 | before output_has_begun is set. | |
892 | ||
44273c5b TG |
893 | 2010-05-03 Tristan Gingold <[email protected]> |
894 | ||
895 | * vms-alpha.c: Add comments. | |
896 | (struct vms_private_data_struct): Remove image_autoextend field. | |
897 | (dst_check_allocation): Removed. | |
898 | (image_write): Remove call to dst_check_allocation. | |
899 | (vms_slurp_debug): Do not set image_autoextend. Adjust section | |
900 | size. | |
901 | (_bfd_vms_slurp_object_records): Remove useless new_type variable. | |
902 | (alpha_vms_write_exec): Use dst_section to get the dst section. | |
903 | Write the dmt section. | |
904 | (evax_bfd_print_image): Also print the dst size in hexa. Fix typo. | |
905 | (alpha_vms_read_sections_content): Do not set image_autoextend. | |
fa23f0f4 | 906 | (alpha_vms_bfd_final_link): Generate the dst. |
44273c5b | 907 | |
ab94b07c TG |
908 | 2010-05-03 Tristan Gingold <[email protected]> |
909 | ||
910 | * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty | |
911 | next array. | |
912 | (vms_lib_dcx): Adjust for the above change. | |
913 | ||
0672748a L |
914 | 2010-04-30 H.J. Lu <[email protected]> |
915 | ||
916 | PR ld/11542 | |
917 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New. | |
918 | ||
919 | * elf32-i386.c (elf_i386_relocate_section): Use it. | |
920 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
921 | ||
13a985e1 TG |
922 | 2010-04-30 Tristan Gingold <[email protected]> |
923 | ||
924 | * vms-lib.c (vms_read_block): New function. | |
925 | (vms_traverse_index): Use vms_read_block. Handle long key names. | |
926 | ||
8e57e1d1 TG |
927 | 2010-04-30 Tristan Gingold <[email protected]> |
928 | ||
929 | * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms | |
930 | and syms removed. | |
931 | (struct carsym_mem): New structure. | |
932 | (vms_add_index): New function. | |
933 | (vms_add_indexes_from_list): New function. | |
934 | (vms_traverse_index): Parameter carsym changed to carsym_mem. | |
935 | Code adjusted to handle elfidx. | |
936 | (vms_lib_read_index): Adjusted for vms_traverse_index changes. | |
937 | Parameter NBREL is now a pointer. | |
938 | (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64 | |
939 | archives. | |
940 | (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata. | |
941 | (_bfd_vms_lib_find_symbol): Ditto. | |
942 | (vms_lib_bopen): Fix two typos: return FALSE in case of error, | |
943 | check MHD id. | |
944 | (_bfd_vms_lib_get_module): New function. | |
945 | (_bfd_vms_lib_get_elt_at_index): Rewritten using the above | |
946 | function. | |
947 | (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module. | |
948 | (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives. | |
949 | (vms_write_index): Adjust for structure renamed. | |
950 | * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for | |
951 | changes of _bfd_vms_lib_find_symbol. | |
952 | ||
bb591cfe KT |
953 | 2010-04-28 Kai Tietz <[email protected]> |
954 | ||
955 | * config.bfd: Correct accidential reverted patch | |
956 | about vax*-*-*vms*. | |
957 | ||
ef72a554 KT |
958 | 2010-04-27 Kai Tietz <[email protected]> |
959 | ||
960 | * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent | |
961 | to USE_MINGW64_LEADING_UNDERSCORES. | |
854b41e7 | 962 | * pei-x86_64.c (TARGET_UNDERSCORE): Likewise. |
ef72a554 KT |
963 | * config.bfd: Change underscoring default for x64 mingw |
964 | to false. | |
965 | * coffcode.h (coff_write_relocs): Add check that dereferenced | |
966 | sym_ptr_ptr isn't NULL. | |
967 | * config.in (USE_MINGW64_LEADING_UNDERSCORES): New. | |
968 | * configure: Regenerated. | |
969 | * configure.in: Add option '--enable-leading-mingw64-underscores' | |
970 | and define config.in variable USE_MINGW64_LEADING_UNDERSCORES. | |
971 | ||
4d9e2b27 NC |
972 | 2010-04-27 Nick Clifton <[email protected]> |
973 | ||
974 | PR binutils/11512 | |
975 | * coffgen.c (coff_find_nearest_line): Incldue the section address | |
976 | of function name symbols in address comparisons. | |
977 | ||
4ba3f034 NC |
978 | 2010-04-27 Nick Clifton <[email protected]> |
979 | ||
980 | * po/fr.po: Updated French translation. | |
981 | ||
9a83a553 AM |
982 | 2010-04-23 Alan Modra <[email protected]> |
983 | ||
984 | * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and | |
985 | ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT | |
986 | throughout file. | |
987 | (assign_file_positions_for_load_sections): Modify section in | |
988 | segment warning to ignore overlay vmas. | |
989 | * elf32-spu.c (spu_elf_object_p): Replace use of | |
990 | ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT. | |
991 | ||
9c9c98a5 NC |
992 | 2010-04-22 Nick Clifton <[email protected]> |
993 | ||
994 | * po/bfd.pot: Updated by the Translation project. | |
995 | * po/vi.po: Updated Vietnamese translation. | |
996 | ||
3ac9b6c9 AM |
997 | 2010-04-22 Alan Modra <[email protected]> |
998 | ||
999 | * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29 | |
1000 | change. Tidy. Don't error on sections not allocated in segment. | |
1001 | ||
85fdf906 AH |
1002 | 2010-04-15 Andrew Haley <[email protected]> |
1003 | ||
1004 | * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag: | |
1005 | merge_exidx_entries. | |
1006 | * bfd-in2.h: Likewise. | |
1007 | * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to | |
1008 | control merging of exidx entries. | |
9c9c98a5 | 1009 | |
41820509 JM |
1010 | 2010-04-20 Joseph Myers <[email protected]> |
1011 | ||
1012 | * elf32-tic6x.h: New. | |
1013 | * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA. | |
1014 | * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata, | |
1015 | elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel, | |
1016 | elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject, | |
1017 | elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p, | |
1018 | bfd_elf32_mkobject, bfd_elf32_new_section_hook): New. | |
1019 | (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup, | |
1020 | elf32_tic6x_relocate_section): Handle REL relocations. | |
1021 | (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel. | |
1022 | ||
643be349 JJ |
1023 | 2010-04-20 Jakub Jelinek <[email protected]> |
1024 | ||
1025 | * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat | |
1026 | DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name. | |
1027 | ||
c9736ba0 NC |
1028 | 2010-04-19 Nick Clifton <[email protected]> |
1029 | ||
1030 | * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused | |
1031 | arhdrpos variable. | |
1032 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused | |
1033 | attribute to warned variable. Remove unused val, type and type2 | |
1034 | variables. | |
1035 | ||
11afaeda TG |
1036 | 2010-04-16 Andreas Schwab <[email protected]> |
1037 | ||
1038 | * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking | |
1039 | strict-aliasing rules. | |
c9736ba0 | 1040 | |
ddfb684a TG |
1041 | 2010-04-16 Tristan Gingold <[email protected]> |
1042 | ||
1043 | * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo. | |
1044 | (_bfd_vms_get_object_record): Always assume there is a pad byte | |
1045 | for alignment. | |
11afaeda | 1046 | |
ddfb684a TG |
1047 | * vms-lib.c: Add a few comments. |
1048 | ||
75375b3e MGD |
1049 | 2010-04-15 Matthew Gretton-Dann <[email protected]> |
1050 | ||
1051 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to | |
1052 | attributes in v2.08 of the ABI. | |
1053 | ||
f526ccf3 AM |
1054 | 2010-04-15 Alan Modra <[email protected]> |
1055 | ||
1056 | * config.bfd (vax*-*-*vms*): Delete. | |
1057 | ||
95e34ef7 TG |
1058 | 2010-04-14 Tristan Gingold <[email protected]> |
1059 | ||
1060 | * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo, | |
1061 | vms-tir.lo, vms.lo and add vms-alpha.lo | |
1062 | (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c, | |
1063 | vms-tir.c, vms.c and add vms-alpha.c | |
1064 | * Makefile.in: Regenerate. | |
1065 | * configure.in (TDEFINES): Adjust file list for vms_alpha_vec. | |
1066 | Remove vms_vax_vec. | |
1067 | * configure: Regenerate. | |
1068 | * targets.c (vms_vax_vec): Remove the declaration. | |
1069 | (_bfd_target_vector): Remove vms_vax_vec. | |
1070 | * vms-alpha.c: New file. | |
1071 | * vms-gsd.c: Removed, rewritten in vms-alpha.c | |
1072 | * vms-hdr.c: Ditto. | |
1073 | * vms-tir.c: Ditto. | |
1074 | * vms.c: Ditto. | |
1075 | * vms-misc.c: Fix indentation and comments. Replace most of | |
1076 | #if VMS_DEBUG/vms_debug with vms_debug2. | |
1077 | (_bfd_vms_hash_newfunc): Moved to vms-alpha.c | |
1078 | (hash_string): Ditto. | |
1079 | (_bfd_vms_length_hash_symbol): Ditto. | |
1080 | (maybe_adjust_record_pointer_for_object): Ditto. | |
1081 | (_bfd_vms_get_object_record): Ditto. | |
1082 | (vms_get_remaining_object_record): Ditto. | |
1083 | (_bfd_vms_push): Ditto. | |
1084 | (_bfd_vms_pop): Ditto. | |
1085 | (_bfd_vms_get_header_values): Removed. | |
1086 | (_bfd_vms_get_first_record): Removed. | |
1087 | (vms_get_remaining_image_record): Removed. | |
1088 | (new_symbol): Removed. | |
1089 | (_bfd_vms_enter_symbol): Removed. | |
1090 | (_bfd_vms_save_sized_string): Use memcpy instead of strncpy. | |
1091 | (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd | |
1092 | parameter with struct vms_rec_wr. | |
1093 | (_bfd_vms_output_push): Removed and replaced by ... | |
1094 | (_bfd_vms_output_begin_subrec): ... new function. | |
1095 | (_bfd_vms_output_alignment): Replace bfd parameter with | |
1096 | struct vms_rec_wr, and adjust. | |
1097 | (_bfd_vms_output_check): Ditto | |
1098 | (_bfd_vms_output_byte): Ditto. | |
1099 | (_bfd_vms_output_short): Ditto. | |
1100 | (_bfd_vms_output_long): Ditto. | |
1101 | (_bfd_vms_output_quad): Ditto. | |
1102 | (_bfd_vms_output_counted): Ditto. | |
1103 | (_bfd_vms_output_dump): Ditto. | |
1104 | (_bfd_vms_output_fill): Ditto. | |
1105 | (_bfd_vms_output_pop): Removed and replaced by ... | |
1106 | (_bfd_vms_output_end_subrec): ... new function. | |
1107 | (_bfd_vms_output_flush): Removed. | |
1108 | (_bfd_vms_output_align): New function. | |
1109 | (_bfd_vms_output_end): Add recwr parameter. Adjust for this new | |
1110 | parameter. | |
1111 | (vms_convert_to_var): New function imported from vms.c | |
1112 | (vms_convert_to_var_1): Ditto. | |
1113 | (vms_convert_to_var_unix_filename): Ditto. | |
1114 | (vms_get_module_name): Ditto. | |
1115 | (get_vms_time_string): Ditto. | |
1116 | (vms_time_to_time_t): Ditto. | |
1117 | (vms_rawtime_to_time_t): Ditto. | |
1118 | * vms.h: All macros for the VMS file format are now in include/vms. | |
1119 | Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c | |
1120 | have been removed. | |
1121 | (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c | |
1122 | (struct fileinfo, struct srecinfo, struct lineinfo): Ditto. | |
1123 | (struct funcinfo, struct vms_private_data_struct): Ditto. | |
1124 | (struct vms_section_data_struct): Ditto. | |
1125 | (struct vms_rec_rd, stryct vms_rec_wr): New declarations. | |
1126 | (vms_get_module_name, get_vms_time_string): New declarations. | |
1127 | (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto. | |
1128 | (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto. | |
1129 | (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted. | |
1130 | (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto. | |
1131 | (_bfd_vms_output_end,_bfd_vms_output_check): Ditto. | |
1132 | (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto. | |
1133 | (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto. | |
1134 | (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto. | |
1135 | (_bfd_vms_output_fill): Ditto. | |
1136 | (bfd_vms_set_section_flags): Ditto. | |
1137 | ||
895fa45f MGD |
1138 | 2010-04-14 Matthew Gretton-Dann <[email protected]> |
1139 | ||
1140 | * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early | |
1141 | exit due to merging the same weak symbol to test that the symbols are | |
1142 | actually weak. | |
1143 | ||
727ac201 AM |
1144 | 2010-04-13 Alan Modra <[email protected]> |
1145 | ||
1146 | * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location | |
1147 | when optimizing high got_tlsgd/ld insns. | |
1148 | ||
fe50f439 L |
1149 | 2010-04-10 H.J. Lu <[email protected]> |
1150 | ||
1151 | * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before | |
1152 | define. | |
1153 | (HAVE_PRSTATUS32_T): Likewise. | |
1154 | ||
8bc7f138 L |
1155 | 2010-04-10 H.J. Lu <[email protected]> |
1156 | ||
1157 | PR corefiles/11467 | |
1158 | * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h | |
1159 | for x86_64-*-linux*. | |
1160 | * config.in: Regenerated. | |
1161 | * configure: Likewise. | |
1162 | ||
1163 | * elf.c: Include CORE_HEADER if it is defined. | |
1164 | ||
1165 | 2010-04-10 H.J. Lu <[email protected]> | |
1166 | Jan Kratochvil <[email protected]> | |
1167 | ||
1168 | * hosts/x86-64linux.h: New. | |
1169 | ||
3d540e93 NC |
1170 | 2010-04-09 Nick Clifton <[email protected]> |
1171 | ||
1172 | * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count. | |
1173 | * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused | |
1174 | variables htab and hdr_info and mark info parameter as unused. | |
1175 | * elf.c (prep_headers): Remove unused variable i_phdrp. | |
1176 | (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp. | |
1177 | * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned | |
1178 | as unused. | |
1179 | * peXXigen.c (pe_print_reloc): Remove unused variable datasize. | |
1180 | * verilog.c (verilog_write_section): Remove unused variable | |
1181 | address. | |
1182 | ||
d1a98e0c AM |
1183 | 2010-04-07 Alan Modra <[email protected]> |
1184 | ||
1185 | * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above. | |
1186 | * configure: Regenerate. | |
1187 | ||
6f8bcf84 L |
1188 | 2010-04-06 H.J. Lu <[email protected]> |
1189 | ||
1190 | PR ld/11434 | |
1191 | * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally. | |
1192 | ||
0e9b2e9a TG |
1193 | 2010-04-06 Tristan Gingold <[email protected]> |
1194 | ||
1195 | * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags. | |
1196 | ||
a233b20c JJ |
1197 | 2010-04-05 Jakub Jelinek <[email protected]> |
1198 | ||
604282a7 JJ |
1199 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4 |
1200 | provided that it has the expected address size and zero segment | |
1201 | length. | |
1202 | ||
a233b20c JJ |
1203 | * dwarf2.c (struct line_head): Add maximum_ops_per_insn field. |
1204 | (struct line_info): Add op_index field, change end_sequence type to | |
1205 | unsigned char. | |
1206 | (new_line_sorts_after): For the same address compare op_index. | |
1207 | (add_line_info): Add op_index argument, store it into the structure. | |
1208 | (decode_line_info): Complain about unknown versions of .debug_line. | |
1209 | Initialize maximum_ops_per_insn. Add op_index state register and | |
1210 | track it. | |
1211 | ||
f2faa800 NS |
1212 | 2010-04-01 Nathan Sidwell <[email protected]> |
1213 | ||
1214 | * elf32-ppc.c (apuinfo_set): New static var. | |
1215 | (ppc_elf_begin_write_processing): Set it here, always create an | |
1216 | APUinfo section if there were any in the inputs. | |
1217 | (ppc_elf_write_section): Check apuinfo_set. | |
1218 | (ppc_elf_final_write_processing): Likewise. | |
1219 | ||
4b544b64 TG |
1220 | 2010-04-01 Tristan Gingold <[email protected]> |
1221 | ||
1222 | * vms.h: Include time.h. Add prototypes for vms_get_module_name, | |
1223 | vms_time_to_time_t and vms_rawtime_to_time_t. | |
1224 | * vms.c (vms_alpha_vec): Add archives support. | |
1225 | * vms-misc.c: Include safe-ctype.h | |
1226 | (vms_get_module_name): New function. | |
1227 | (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto. | |
1228 | * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the | |
1229 | vms_get_module_name function. Use this function. | |
1230 | * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector. | |
1231 | * libbfd-in.h: Add prototype for _bfd_append_relative_path. | |
1232 | Add prototypes for vms-lib.c | |
1233 | * libbfd.h: Regenerate. | |
1234 | * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add | |
1235 | vms-lib.lo to vms_alpha_vec. | |
1236 | * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*. | |
1237 | * configure: Regenerate. | |
1238 | * bfd.c: Add selective_search field. | |
1239 | * bfd-in2.h: Regenerate. | |
1240 | * archive.c (append_relative_path): Rename to | |
1241 | _bfd_append_relative_path and make it public. | |
1242 | (_bfd_get_elt_at_filepos): Adjust for above renaming. | |
1243 | * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo | |
1244 | (BFD32_BACKENDS_CFILES): Add vms-lib.c | |
1245 | * Makefile.in: Regenerate. | |
1246 | ||
c07cbdd7 JJ |
1247 | 2010-04-01 Jakub Jelinek <[email protected]> |
1248 | ||
1249 | * dwarf2.c (read_attribute_value): Handle CU version 4 | |
1250 | for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc | |
1251 | and DW_FORM_flag_present. For unknown form value return NULL. | |
1252 | (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc | |
1253 | like DW_FORM_block. | |
1254 | (parse_comp_unit): Allow CU version 4. | |
1255 | ||
e236b51d HPN |
1256 | 2010-04-01 Hans-Peter Nilsson <[email protected]> |
1257 | ||
1258 | * elf32-cris.c (cris_elf_relocate_section): Correct first argument | |
1259 | to _bfd_elf_get_dynamic_reloc_section. | |
1260 | (elf_cris_discard_excess_dso_dynamics): Ditto. | |
1261 | ||
b706dc83 KT |
1262 | 2010-03-31 Kai Tietz <[email protected]> |
1263 | ||
1264 | * coff-i386.c (in_reloc_p): Check also for R_SECREL32. | |
1265 | * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL. | |
1266 | ||
9d6ded02 AM |
1267 | 2010-03-31 Alan Modra <[email protected]> |
1268 | ||
1269 | * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized | |
1270 | TPREL16_HI and TPREL16_HA insns. | |
1271 | ||
bfbff9eb HPN |
1272 | 2010-03-31 Hans-Peter Nilsson <[email protected]> |
1273 | ||
1274 | PR ld/11458 | |
1275 | * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid | |
1276 | assert of empty pcrel_relocs_copied on the direct symbol. Instead | |
1277 | of moving the list from the indirect symbol to the direct symbol, | |
1278 | merge into any existing list. | |
1279 | (cris_elf_check_relocs): Store the original section in the | |
1280 | pcrel_relocs_copied list, not the relocation section. | |
1281 | (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find | |
1282 | the relocation section, for reducing its size. Change the | |
1283 | BFD_ASSERT into a check for the section being read-only, and only | |
1284 | emit warnings and TEXTREL marker when there's an entry for a | |
1285 | read-only section. | |
1286 | ||
41ed1ee7 DJ |
1287 | 2010-03-29 Daniel Jacobowitz <[email protected]> |
1288 | ||
1289 | * elf32-arm.c (using_thumb_only): Handle v6-M. | |
1290 | ||
ddfd6795 AM |
1291 | 2010-03-26 Alan Modra <[email protected]> |
1292 | ||
1293 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative. | |
1294 | * bfd-in.h (elf_discarded_section): Clarify comment. | |
1295 | * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise. | |
1296 | * bfd-in2.h: Regenerate. | |
1297 | ||
1352b58a AM |
1298 | 2010-03-26 Matt Rice <[email protected]> |
1299 | ||
1300 | * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged | |
1301 | as unique in the armap. | |
1302 | ||
6abec6bc AM |
1303 | 2010-03-26 Alan Modra <[email protected]> |
1304 | ||
1305 | PR ld/11375 | |
1306 | * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a | |
1307 | possible stub on branches. | |
1308 | ||
40b36596 JM |
1309 | 2010-03-25 Joseph Myers <[email protected]> |
1310 | ||
1311 | * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo. | |
1312 | (ALL_MACHINES_CFILES): Add cpu-tic6x.c. | |
1313 | (BFD32_BACKENDS): Add elf32-tic6x.lo. | |
1314 | (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c. | |
1315 | * Makefile.in: Regenerate. | |
1316 | * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New. | |
1317 | (bfd_archures_list): Update. | |
1318 | * config.bfd (tic6x-*-elf): New. | |
1319 | * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): | |
1320 | New. | |
1321 | * configure: Regenerate. | |
1322 | * cpu-tic6x.c, elf32-tic6x.c: New. | |
1323 | * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12, | |
1324 | BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7, | |
1325 | BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16, | |
1326 | BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B, | |
1327 | BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W, | |
1328 | BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B, | |
1329 | BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W, | |
1330 | BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H, | |
1331 | BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W, | |
1332 | BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W, | |
1333 | BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31, | |
1334 | BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN, | |
1335 | BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New. | |
1336 | * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New. | |
1337 | (_bfd_target_vector): Update. | |
1338 | * bfd-in2.h, libbfd.h: Regenerate. | |
1339 | ||
4f608e79 L |
1340 | 2010-03-24 H.J. Lu <[email protected]> |
1341 | ||
1342 | * aout-target.h: Update copyright year. | |
1343 | * aout-tic30.c: Likewise. | |
1344 | * coff-alpha.c: Likewise. | |
1345 | * coff-rs6000.c: Likewise. | |
1346 | * coff64-rs6000.c: Likewise. | |
1347 | * elf64-mips.c: Likewise. | |
1348 | * ieee.c: Likewise. | |
1349 | * libecoff.h: Likewise. | |
1350 | * mach-o-target.c: Likewise. | |
1351 | * mach-o.c: Likewise. | |
1352 | * oasys.c: Likewise. | |
1353 | * targets.c: Likewise. | |
1354 | ||
337660d8 L |
1355 | 2010-03-24 H.J. Lu <[email protected]> |
1356 | ||
1357 | * libbfd-in.h: Update copyright year. | |
1358 | ||
ca4a656b L |
1359 | 2010-03-21 H.J. Lu <[email protected]> |
1360 | ||
1361 | PR ld/11413 | |
1362 | * elflink.c (_bfd_elf_add_default_symbol): Check !executable | |
1363 | instead of shared. | |
1364 | ||
47b2e99c JZ |
1365 | 2010-03-19 Jie Zhang <[email protected]> |
1366 | ||
1367 | * elf32-arm.c (struct section_list): Remove. | |
1368 | (section_list): Remove typedef. | |
1369 | (record_section_with_arm_elf_section_data): Remove. | |
1370 | (find_arm_elf_section_entry): Remove. | |
1371 | (get_arm_elf_section_data): Use is_arm_elf. | |
1372 | (unrecord_section_with_arm_elf_section_data): Remove. | |
1373 | (elf32_arm_new_section_hook): Don't call | |
1374 | record_section_with_arm_elf_section_data. | |
1375 | (elf32_arm_write_section): Set mapcount to -1 when | |
1376 | the map has been used. Don't call | |
1377 | unrecord_section_with_arm_elf_section_data. | |
1378 | (unrecord_section_via_map_over_sections): Remove. | |
1379 | (elf32_arm_close_and_cleanup): Remove. | |
1380 | (elf32_arm_bfd_free_cached_info): Remove. | |
1381 | (bfd_elf32_close_and_cleanup): Don't define. | |
1382 | (bfd_elf32_bfd_free_cached_info): Don't define. | |
1383 | ||
441f34fa L |
1384 | 2010-03-18 H.J. Lu <[email protected]> |
1385 | ||
1386 | PR binutils/11396 | |
1387 | * libcoff-in.h (pe_tdata): Add dont_strip_reloc. | |
1388 | * libcoff.h: Regenerated. | |
1389 | ||
1390 | * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG | |
1391 | if dont_strip_reloc is set. | |
1392 | (_bfd_XX_bfd_copy_private_bfd_data_common): Set | |
1393 | dont_strip_reloc on output if there is no .reloc and | |
1394 | IMAGE_FILE_RELOCS_STRIPPED isn't set in input. | |
1395 | ||
b43420e6 NC |
1396 | 2010-03-18 Wei Guozhi <[email protected]> |
1397 | ||
1398 | PR gas/11323 | |
1399 | * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to | |
1400 | R_ARM_GOT_PREL. | |
1401 | * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation. | |
1402 | * bfd-in2.h: Regenerate. | |
1403 | * libbfd.h: Regenerate. | |
1404 | ||
a1b88b01 L |
1405 | 2010-03-17 H.J. Lu <[email protected]> |
1406 | ||
1407 | * reloc.c (BFD_RELOC_SPU_PIC18): Removed. | |
1408 | (BFD_RELOC_SPU_STUB): Likewise. | |
1409 | ||
4b0f0711 L |
1410 | 2010-03-17 Jie Zhang <[email protected]> |
1411 | ||
1412 | * elf.c (assign_file_positions_for_load_sections): Avoid | |
1413 | overflow. | |
1414 | ||
f4bacdc0 AM |
1415 | 2010-03-17 Alan Modra <[email protected]> |
1416 | ||
93620fdb | 1417 | PR binutils/11382 |
f4bacdc0 AM |
1418 | * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using |
1419 | proper type. | |
1420 | ||
8f73510c AM |
1421 | 2010-03-17 Alan Modra <[email protected]> |
1422 | ||
1423 | * elf32-arm.c (cortex_a8_erratum_scan): Warning fix. | |
1424 | ||
67f0cbdb AM |
1425 | 2010-03-16 Alan Modra <[email protected]> |
1426 | ||
1427 | * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt. | |
1428 | (ppc64_elf_edit_toc): Set it here. | |
1429 | (ha_reloc_match): New function. | |
1430 | (ppc64_elf_relocate_section): Optimize bigtoc insn sequences. | |
1431 | ||
1bbe0902 AM |
1432 | 2010-03-15 Alan Modra <[email protected]> |
1433 | ||
1434 | * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function. | |
1435 | * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare. | |
1436 | ||
70cc837d AM |
1437 | 2010-03-14 Alan Modra <[email protected]> |
1438 | ||
1439 | PR ld/11378 | |
1440 | * elf64-ppc.h (ppc64_elf_check_init_fini): Declare. | |
1441 | * elf64-ppc.c (call_check_done): Define. | |
1442 | (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro. | |
1443 | (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise. | |
1444 | (ppc64_elf_finish_multitoc_partition): Remove unnecessary check. | |
1445 | (toc_adjusting_stub_needed): Use call_check_done rather than toc_off. | |
1446 | Simplify return logic. Iterate over all .init and .fini fragments | |
1447 | by recursion. Set makes_toc_func_call here.. | |
1448 | (ppc64_elf_next_input_section): ..rather than here. | |
1449 | (check_pasted_section, ppc64_elf_check_init_fini): New functions. | |
1450 | ||
7b8f6675 AM |
1451 | 2010-03-13 Alan Modra <[email protected]> |
1452 | ||
1453 | PR ld/11375 | |
1454 | * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the | |
1455 | function descriptor symbol if there is one, not just for plt stubs. | |
1456 | (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls. | |
1457 | ||
a6cc6b3b RO |
1458 | 2010-03-05 Rainer Orth <[email protected]> |
1459 | ||
1460 | * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base | |
1461 | version twice. | |
1462 | Skip it when constructing def.vd_next. | |
1463 | ||
1464 | * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to | |
1465 | bfd_elf32_i386_sol2_vec. | |
1466 | (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2. | |
1467 | (elf32_bed): Redefine to elf32_i386_sol2_bed. | |
1468 | (elf_backend_want_plt_sym): Redefine to 1. | |
1469 | ||
1470 | * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to | |
1471 | bfd_elf64_x86_64_sol2_vec. | |
1472 | (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2. | |
1473 | (elf64_bed): Redefine to elf64_x86_64_sol2_bed. | |
1474 | (elf_backend_want_plt_sym): Redefine to 1. | |
1475 | ||
1476 | * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to | |
1477 | bfd_elf32_i386_sol2_vec. | |
1478 | Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in | |
1479 | targ64_selvecs. | |
1480 | (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec. | |
1481 | Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in | |
1482 | targ_selvecs. | |
1483 | ||
1484 | * configure.in: Handle bfd_elf32_i386_sol2_vec, | |
1485 | bfd_elf64_x86_64_sol2_vec. | |
1486 | * configure: Regenerate. | |
1487 | ||
1488 | * targets.c (bfd_elf32_i386_sol2_vec): Declare. | |
1489 | (bfd_elf64_x86_64_sol2_vec): Declare. | |
1490 | (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec, | |
1491 | bfd_elf64_x86_64_sol2_vec. | |
1492 | ||
f7dd8c79 DJ |
1493 | 2010-03-04 Daniel Jacobowitz <[email protected]> |
1494 | ||
1495 | * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program | |
1496 | sections. | |
1497 | ||
8af6b354 AM |
1498 | 2010-03-04 Alan Modra <[email protected]> |
1499 | ||
1500 | PR 11302 | |
1501 | * dwarf2.c (read_abbrevs): Return NULL on alloc failures. | |
1502 | (read_attribute_value, decode_line_info): Likewise. | |
1503 | (add_line_info, read_rangelist): Return FALSE on alloc failures. | |
1504 | (arange_add, sort_line_sequences): Likewise. | |
1505 | (find_abstract_instance_name): Handle failures from called funcs. | |
1506 | (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise. | |
1507 | (find_line): Realloc to a temp, and handle alloc fail. | |
1508 | ||
501abfe0 DJ |
1509 | 2010-03-03 Daniel Jacobowitz <[email protected]> |
1510 | ||
1511 | * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add | |
1512 | a mapping symbol to an empty section. | |
1513 | ||
5488d830 MGD |
1514 | 2010-03-02 Matthew Gretton-Dann <[email protected]> |
1515 | ||
1516 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the | |
1517 | return value from the call to _bfd_elf_merge_object_attributes. | |
1518 | ||
fe33d2fa CL |
1519 | 2010-03-02 Christophe Lyon <[email protected]> |
1520 | Alan Modra <[email protected]> | |
1521 | ||
1522 | * elf32-arm.c (a8_erratum_fix): Add st_type field to record the | |
1523 | destination mode of the a8 stub. | |
1524 | (elf32_arm_link_hash_table): Add top_id field. | |
1525 | (elf32_arm_link_hash_table_create): Initialize top_id. | |
1526 | (arm_type_of_stub): Update prototype, st_type can now be updated | |
1527 | by this function. Actual destination address in case of PLT is | |
1528 | computed here, to help factorizing code. | |
1529 | (elf32_arm_stub_name): Update prototype, use stub_type additional | |
1530 | parameter to build stub name. | |
1531 | (elf32_arm_get_stub_entry): Update prototype, use stub_type | |
1532 | additional parameter to build stub entry. | |
1533 | (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of | |
1534 | put_thumb_insn/put_arm_insn as BE8 encoding is now handled later. | |
1535 | Call elf32_arm_final_link_relocate to process all in-stub | |
1536 | relocations. | |
1537 | (elf32_arm_setup_section_lists): Update top_id. | |
1538 | (cortex_a8_erratum_scan): Record stub destination mode. | |
1539 | (elf32_arm_size_stubs): Update call to arm_type_of_stub according | |
1540 | to new prototype. | |
1541 | (elf32_arm_final_link_relocate): Enable processing of in-stub | |
1542 | REL32 relocations. Rely on arm_type_of_stub to detect if a stub is | |
1543 | needed, enabling code factorization. | |
1544 | (elf32_arm_final_link): Process stub sections. | |
1545 | (elf32_arm_output_map_sym): Add entry to code/data map. | |
1546 | ||
b48ca1d4 DM |
1547 | 2010-03-01 David S. Miller <[email protected]> |
1548 | ||
1549 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and | |
1550 | h->def_regular, set h->ref_regular. | |
1551 | (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries | |
1552 | and dynamic relocations if h->ref_regular. | |
1553 | ||
679b7c76 DM |
1554 | * elfxx-sparc.c (struct elf_reloc_map): Delete. |
1555 | (sparc_reloc_map): Delete. | |
1556 | (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each | |
1557 | relocation type in switch statements. | |
1558 | ||
dfa7b0b8 AM |
1559 | 2010-02-25 Alan Modra <[email protected]> |
1560 | ||
1561 | PR ld/11304 | |
1562 | * elf.c (_bfd_elf_init_private_section_data): Rename need_group | |
1563 | to final_link and invert. For final link allow some flags to | |
1564 | differ. Don't specially allow flags to be all zero. | |
1565 | ||
d4a77f3f NC |
1566 | 2010-02-24 Alan Modra <[email protected]> |
1567 | ||
1568 | PR binutils/10858 | |
1569 | * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise | |
1570 | SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol | |
1571 | table. | |
1572 | ||
17e57237 NC |
1573 | 2010-02-23 Andrew Zabolotny <[email protected]> |
1574 | ||
1575 | PR binutils/11297 | |
1576 | * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8. | |
1577 | (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8. | |
1578 | ||
263badd7 AM |
1579 | 2010-02-22 Alan Modra <[email protected]> |
1580 | ||
1581 | * reloc.c (bfd_check_overflow): When forming addrmask, shift | |
1582 | fieldmask left by rightshift. | |
1583 | (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all | |
1584 | overflow checks. | |
1585 | ||
c35bdf6e L |
1586 | 2010-02-20 H.J. Lu <[email protected]> |
1587 | ||
1588 | * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check | |
1589 | STT_GNU_IFUNC on large common symbol. | |
1590 | ||
c16153ae L |
1591 | 2010-02-18 H.J. Lu <[email protected]> |
1592 | ||
1593 | * elf32-i386.c (elf_i386_add_symbol_hook): Don't set | |
1594 | has_ifunc_symbols if the symbol comes from a shared library. | |
1595 | * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise. | |
1596 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise. | |
1597 | * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise. | |
1598 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise. | |
1599 | * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise. | |
1600 | ||
d0bf826b AM |
1601 | 2010-02-19 Alan Modra <[email protected]> |
1602 | ||
1603 | * elf.c (_bfd_elf_fixup_group_sections): New function, split out from.. | |
1604 | (_bfd_elf_copy_private_header_data): ..here. | |
1605 | * elflink.c (_bfd_elf_size_group_sections): New function. | |
1606 | (bfd_elf_size_dynamic_sections): Call it. | |
1607 | * elf-bfd.h (_bfd_elf_size_group_sections): Declare. | |
1608 | (_bfd_elf_fixup_group_sections): Declare. | |
1609 | ||
cd21e546 MGD |
1610 | 2010-02-18 Matthew Gretton-Dann <[email protected]> |
1611 | ||
1612 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for | |
1613 | merging Tag_DIV_use, Tag_MPextension_use, and | |
1614 | Tag_MPextension_use_legacy tags. | |
1615 | ||
415f38a6 AM |
1616 | 2010-02-18 Alan Modra <[email protected]> |
1617 | ||
1618 | * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15 | |
1619 | commit. Don't write zeros for removed group members. | |
1620 | (_bfd_elf_copy_private_header_data): Adjust size of group section | |
1621 | when group members are removed by objcopy. | |
1622 | ||
b946d5d8 DK |
1623 | 2010-02-15 Dave Korn <[email protected]> |
1624 | ||
1625 | PR binutils/11280 | |
1626 | * configure.host (*-*-solaris2.11): Add host define to select | |
1627 | valid default code page for windres/windmc on solaris. | |
1628 | ||
ab7875de NC |
1629 | 2010-02-15 Nick Clifton <[email protected]> |
1630 | ||
1631 | * po/vi.po: Updated Vietnamese translation. | |
1632 | ||
33811162 DG |
1633 | 2010-02-12 Daniel Gutson <[email protected]> |
1634 | ||
1635 | * elf32-arm.c (elf32_arm_output_arch_local_syms): add | |
1636 | missing mapping symbol to data only sections. | |
1637 | ||
00c50991 DM |
1638 | 2010-02-11 David S. Miller <[email protected]> |
1639 | ||
1640 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22 | |
1641 | and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global | |
1642 | symbols. | |
1643 | (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for | |
1644 | these relocs on global symbols. | |
1645 | (gdopoff): New. | |
1646 | (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on | |
1647 | local symbol references which are not STT_GNU_IFUNC. Handle | |
1648 | relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively, | |
1649 | and deal with negative vs. non-negative values properly. | |
1650 | ||
1523fa24 TG |
1651 | 2010-02-09 Tristan Gingold <[email protected]> |
1652 | ||
1653 | * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for | |
1654 | non-external relocation. | |
1655 | ||
7865406b AM |
1656 | 2010-02-09 Alan Modra <[email protected]> |
1657 | ||
1658 | * elf64-ppc.c (merge_got_entries): Move earlier in file. | |
1659 | (allocate_dynrelocs): Merge got entries here if not doing multi-toc. | |
1660 | (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got. | |
1661 | (ppc64_elf_layout_multitoc): Don't resize if we have already | |
1662 | merged got entries. | |
1663 | ||
d7eeb400 MS |
1664 | 2010-02-09 Michael Holzheu <[email protected]> |
1665 | ||
1666 | * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp, | |
1667 | elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, | |
1668 | elfcore_write_s390_prefix): New. | |
1669 | * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp, | |
1670 | elfcore_write_s390_todpreg, elfcore_write_s390_ctrs, | |
1671 | elfcore_write_s390_prefix): New. | |
1672 | (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP, | |
1673 | NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX. | |
1352b58a | 1674 | (elfcore_write_register_note): Handle .reg-s390-timer, |
d7eeb400 MS |
1675 | .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs, |
1676 | .reg-s390-prefix section. | |
1677 | ||
f961d9dd AM |
1678 | 2010-02-09 Alan Modra <[email protected]> |
1679 | ||
1680 | * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect | |
1681 | unsigned char. Update variables and code using them throughout file. | |
1682 | (struct ppc_link_hash_entry): Likewise for tls_mask. | |
1683 | ||
d0fae19d AM |
1684 | * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents. |
1685 | ||
d77c8a4b AM |
1686 | * elf64-ppc.c (has_small_toc_reloc): Don't define. |
1687 | (makes_toc_func_call, call_check_in_progress): Shuffle flags. | |
1688 | (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update | |
1689 | code setting the flag. | |
1690 | (ppc64_elf_next_toc_section): Group big-toc sections in | |
1691 | 0x80008000 chunks. | |
1692 | ||
72fbc6e5 DM |
1693 | 2010-02-08 David S. Miller <[email protected]> |
1694 | ||
1695 | * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot, | |
1696 | srelgot, splt, srelplt, and sgotplt members in favor of generic copies. | |
1697 | ||
1698 | * elfxx-sparc.c (create_got_section): Delete. | |
1699 | (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic | |
1700 | section creator does that work for us. Use ->elf.foo instead of | |
1701 | ->foo where applicable. | |
1702 | (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo | |
1703 | where applicable. | |
1704 | (allocate_dynrelocs): Likewise. | |
1705 | (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
1706 | (_bfd_sparc_elf_relocate_section): Likewise. | |
1707 | (sparc_vxworks_build_plt_entry): Likewise. | |
1708 | (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
1709 | (sparc_finish_dyn): Likewise. | |
1710 | (sparc_vxworks_finish_exec_plt): Likewise. | |
1711 | (sparc_vxworks_finish_shared_plt): Likewise. | |
1712 | (_bfd_sparc_elf_finish_dynamic_sections): Likewise. | |
1713 | ||
1714 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_* | |
1715 | macros for visibilty and locality checks. | |
1716 | (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. | |
1717 | (allocate_dynrelocs): Likewise. | |
1718 | (_bfd_sparc_elf_relocate_section): Likewise. | |
1719 | (_bfd_sparc_elf_finish_dynamic_symbol):Likewise. | |
1720 | ||
1721 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set | |
1722 | but never used local var 'dynobj'. | |
1723 | ||
1724 | * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle | |
1725 | nocopyreloc. | |
1726 | ||
d0c9aeb3 DM |
1727 | * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New. |
1728 | (BFD_RELOC_SPARC_IRELATIVE): Likewise. | |
1729 | * bfd-in2.h: Regenerate. | |
1730 | * libbfd.h: Regenerate. | |
1731 | ||
1732 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table | |
1733 | and loc_hash_memory. | |
1734 | (_bfd_sparc_elf_link_hash_table_free): Declare. | |
1735 | * elf32-sparc.c (elf32_sparc_add_symbol_hook): New. | |
1736 | (elf_backend_add_symbol_hook, elf_backend_post_process_headers, | |
1737 | bfd_elf32_bfd_link_hash_table_free): Define. | |
1738 | * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set | |
1739 | has_ifunc_symbols if STT_GNU_IFUNC. | |
1740 | (bfd_elf64_bfd_link_hash_table_free): Define. | |
1741 | (elf_backend_post_process_headers): Define always. | |
1742 | * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New. | |
1743 | (sparc_reloc_map): Add entries for new IFUNC relocs. | |
1744 | (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs. | |
1745 | (_bfd_sparc_elf_info_to_howto_ptr): Likewise. | |
1746 | (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq, | |
1747 | elf_sparc_get_local_sym_hash): New. | |
1748 | (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization | |
1749 | from here... | |
1750 | (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate | |
1751 | local hash table. | |
1752 | (_bfd_sparc_elf_link_hash_table_free): New. | |
1753 | (create_ifunc_sections): New. | |
1754 | (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj | |
1755 | and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols | |
1756 | cons up a fake local hash table entry for it. Unconditionally add | |
1757 | a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count | |
1758 | dyn relocs for ifunc. | |
1759 | (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc. | |
1760 | (allocate_dynrelocs): Unconditionally emit a PLT entry when | |
1761 | STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc. | |
1762 | (allocate_local_dynrelocs): New function. | |
1763 | (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash | |
1764 | table. Emit dynamic relocs to irelplt when not shared. Treat iplt | |
1765 | like splt. | |
1766 | (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand. | |
1767 | (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc | |
1768 | plt in iplt/irelplt. | |
1769 | ||
9ea2b942 RS |
1770 | 2010-02-08 Richard Sandiford <[email protected]> |
1771 | ||
1772 | * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating | |
1773 | max_contents_size, only consider sections whose contents must | |
1774 | be swapped in. | |
1775 | ||
0b8bcf0d AM |
1776 | 2010-02-09 Alan Modra <[email protected]> |
1777 | ||
1778 | * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here.. | |
1779 | (ppc64_elf_size_dynamic_sections): ..and here.. | |
1780 | (merge_got_entries): ..rather than here. | |
1781 | ||
33c0ec9d AM |
1782 | 2010-02-09 Alan Modra <[email protected]> |
1783 | ||
1784 | * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc. | |
1785 | (has_small_toc_reloc): Define. | |
1786 | (ppc64_elf_check_relocs): Set the above flags. | |
1787 | (ppc64_elf_edit_opd): Delete obfd param. | |
1788 | (ppc64_elf_tls_optimize): Likewise. | |
1789 | (ppc64_elf_edit_toc): Likewise. | |
1790 | (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param. | |
1791 | * elf64-ppc.h: Update prototypes. | |
1792 | ||
b0dddeec AM |
1793 | 2010-02-08 Alan Modra <[email protected]> |
1794 | ||
1795 | * section.c (struct bfd_section): Delete has_tls_reloc, | |
1796 | has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done. | |
1797 | Add sec_flg0 thru sec_flg5. | |
1798 | (BFD_FAKE_SECTION): Update for changed flags. | |
1799 | * ecoff.c (bfd_debug_section): Likewise. | |
1800 | * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define. | |
1801 | * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define. | |
1802 | (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update. | |
1803 | * elf32-xtensa.c (reloc_done): Define. | |
1804 | * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update. | |
1805 | * bfd-in2.h: Regenerate. | |
1806 | ||
06988dfc TG |
1807 | 2010-02-08 Tristan Gingold <[email protected]> |
1808 | ||
1809 | * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern | |
1810 | for non-scattered relocations. | |
1811 | ||
deddc40b NS |
1812 | 2010-02-08 Nathan Sidwell <[email protected]> |
1813 | ||
1814 | * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty | |
1815 | apuinfo sections, only scan input sections once and reuse the | |
1816 | buffer. | |
1817 | ||
ce3d2015 AM |
1818 | 2010-02-08 Philipp Tomsich <[email protected]> |
1819 | ||
1820 | * archures.c (bfd_mach_ppc_titan): Define. | |
1821 | * bfd-in2.h: Regenerate. | |
1822 | * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry. | |
1823 | ||
06a162cf AM |
1824 | 2010-02-08 Alan Modra <[email protected]> |
1825 | ||
1826 | * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code. | |
1827 | ||
4c348442 SA |
1828 | 2010-02-05 Sterling Augustine <[email protected]> |
1829 | ||
1830 | * elf.c (assign_file_positions_for_load_sections) Update lma of | |
1831 | section if necessary. Fixes Bugzilla 11219. | |
1832 | ||
6bbec505 L |
1833 | 2010-02-05 H.J. Lu <[email protected]> |
1834 | ||
1835 | * elf32-i386.c: Remove trailing white spaces. | |
1836 | * elf64-x86-64.c: Likewise. | |
1837 | ||
4dfe6ac6 NC |
1838 | 2010-02-03 Nick Clifton <[email protected]> |
1839 | ||
1840 | * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add | |
1841 | entries for other architectures. | |
1842 | (struct elf_link_hash_table): Add hash_table_id field. | |
1843 | (elf_hash_table_id): New accessor macro. | |
1844 | * elflink.c (_bfd_elf_link_hash_table_init): Add target_id | |
1845 | parameter. | |
1846 | * elf-m10300.c (elf32_mn10300_hash_table): Check table id before | |
1847 | returning cast pointer. | |
1848 | (elf32_mn10300_link_hash_table_create): Identify new table as | |
1849 | containing MN10300 extensions. | |
1850 | (mn10300_elf_relax_section): Check pointer returned by | |
1851 | elf32_mn10300_hash_table. | |
1852 | * elf32-arm.c: Likewise, except using ARM extensions. | |
1853 | * elf32-avr.c: Likewise, except using AVR extensions. | |
1854 | * elf32-bfin.c: Likewise, except using BFIN extensions. | |
1855 | * elf32-cris.c: Likewise, except using CRIS extensions. | |
1856 | * elf32-frv.c: Likewise, except using FRV extensions. | |
1857 | * elf32-hppa.c: Likewise, except using HPPA32 extensions. | |
1858 | * elf32-i386.c: Likewise, except using I386 extensions. | |
1859 | * elf32-lm32.c: Likewise, except using LM32 extensions. | |
1860 | * elf32-m32r.c: Likewise, except using M32RM extensions. | |
1861 | * elf32-m68hc11.c: Likewise, except using M68HC11 extensions. | |
1862 | * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions. | |
1863 | * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions. | |
1864 | * elf32-m68k.c: Likewise, except using M68K extensions. | |
1865 | * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions. | |
1866 | * elf32-ppc.c: Likewise, except using PPC32 extensions. | |
1867 | * elf32-s390.c: Likewise, except using S390 extensions. | |
1868 | * elf32-sh.c: Likewise, except using SH extensions. | |
1869 | * elf32-spu.c: Likewise, except using SPU extensions. | |
1870 | * elf32-xtensa.c: Likewise, except using XTENSA extensions. | |
1871 | * elf64-alpha.c: Likewise, except using ALPHA extensions. | |
1872 | * elf64-hppa.c: Likewise, except using HPPA64 extensions. | |
1873 | * elf64-ppc.c: Likewise, except using PPC64 extensions. | |
1874 | * elf64-s390.c: Likewise, except using S390 extensions. | |
1875 | * elf64-x86-64.c: Likewise, except using X86_64 extensions. | |
1876 | * elfxx-ia64.c: Likewise, except using IA64 extensions. | |
1877 | * elfxx-mips.c: Likewise, except using MIPS extensions. | |
1878 | * elfxx-sparc.c: Likewise, except using SPARC extensions. | |
1879 | * elfxx-sparc.h: Likewise, except using SPARC extensions. | |
1880 | * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete | |
1881 | redundant structure. | |
1882 | (elf32_cr16_hash_table): Delete unused macro. | |
1883 | (elf32_cr16_link_hash_traverse): Delete unused macro. | |
1884 | * elf32-score.c: Likewise. | |
1885 | * elf32-score7.c: Likewise. | |
1886 | * elf32-vax.c: Likewise. | |
1887 | * elf64-sh64.c: Likewise. | |
1888 | ||
927be08e AM |
1889 | 2010-02-03 Alan Modra <[email protected]> |
1890 | ||
1891 | * elf64-ppc.c (struct plt_entry): Move earlier in file. | |
1892 | (struct got_entry): Likewise. Add is_indirect and got.ent fields. | |
1893 | (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry. | |
1894 | Update all uses. | |
1895 | (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass. | |
1896 | Remove no_multi_toc. | |
1897 | (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect | |
1898 | when allocating a new struct got_entry. | |
1899 | (allocate_got): New function, extracted from.. | |
1900 | (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd. | |
1901 | (ppc64_elf_size_dynamic_sections): Track got relocs allocated in | |
1902 | .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries. | |
1903 | (ppc64_elf_setup_section_lists): Remove output_bfd param and | |
1904 | no_multi_toc, add add_stub_section and layout_sections_again. Stash | |
1905 | new params in htab. Extract some code to.. | |
1906 | (ppc64_elf_start_multitoc_partition): ..here. New function. | |
1907 | (ppc64_elf_next_toc_section): Check for linker script errors. Handle | |
1908 | second pass toc scan. | |
1909 | (merge_got_entries, merge_global_got, reallocate_got): New functions. | |
1910 | (ppc64_elf_reinit_toc): Rename to.. | |
1911 | (ppc64_elf_finish_multitoc_partition): ..this. | |
1912 | (ppc64_elf_layout_multitoc): New function. | |
1913 | (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and | |
1914 | layout_sections_again params. | |
1915 | (ppc64_elf_relocate_section): Handle indirect got entries. | |
1916 | * elf64-ppc.h: Update prototypes. Declare new functions. | |
1917 | ||
4339cae0 L |
1918 | 2010-02-02 H.J. Lu <[email protected]> |
1919 | ||
1920 | * elf-bfd.h (elfcore_write_xstatereg): New. | |
1921 | ||
1922 | * elf.c (elfcore_grok_xstatereg): New. | |
1923 | (elfcore_write_xstatereg): Likewise. | |
1924 | (elfcore_grok_note): Handle NT_X86_XSTATE. | |
1925 | (elfcore_write_register_note): Handle .reg-xstate section. | |
1926 | ||
9848eadf TG |
1927 | 2010-02-01 Tristan Gingold <[email protected]> |
1928 | ||
1929 | * som.c (som_write_ar_hdr): Define this macro. | |
1930 | ||
f6fd0237 DA |
1931 | 2010-01-30 John David Anglin <[email protected]> |
1932 | ||
1933 | * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L, | |
1934 | R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the | |
1935 | linkage table pointer to use the global table pointer if not doing | |
1936 | a shared link. | |
1937 | ||
a1504221 JB |
1938 | 2010-01-29 Joel Brobecker <[email protected]> |
1939 | ||
1940 | * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal | |
1941 | if it has already been set. | |
1942 | ||
771deb08 TG |
1943 | 2010-01-27 Tristan Gingold <[email protected]> |
1944 | ||
1945 | * vms.h: Remove trailing spaces. | |
1946 | (struct hdr_struct): Remove unused hdr_c_cpr field. | |
1947 | (enum file_format_enum): Add comments. | |
1948 | * vms.c (vms_bfd_print_private_bfd_data): New function that | |
1949 | replaces the macro. | |
1950 | Remove trailing spaces. | |
1951 | * vms-misc.c: Improve comments. | |
1952 | (_bfd_vms_get_object_record): Also handle files without pads. | |
1953 | * vms-hdr.c (_bfd_vms_write_dbg): Fix format string. | |
1954 | * vms-gsd.c (struct flagdescstruct): Make name field const. | |
1955 | (gsyflagdesc): Fix typo. | |
1956 | ||
bf102f86 AM |
1957 | 2010-01-27 Alan Modra <[email protected]> |
1958 | ||
1959 | PR ld/11217 | |
1960 | * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec. | |
1961 | (ppc64_elf_setup_section_lists): Init them. | |
1962 | (ppc64_elf_next_toc_section): Don't partition multi-toc between .got | |
1963 | and .toc on the same input file. | |
1964 | (ppc64_elf_relocate_section): Correct GOT entry offset. | |
1965 | ||
8f95b6e4 TG |
1966 | 2010-01-26 Tristan Gingold <[email protected]> |
1967 | ||
1968 | * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr. | |
1969 | (bfd_target): Add _bfd_write_ar_hdr_fn field. | |
1970 | * archive.c (is_bsd44_extended_name): New macro. | |
1971 | (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size. | |
1972 | (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended | |
1973 | name. | |
1974 | (_bfd_archive_bsd44_construct_extended_name_table): New function. | |
1975 | (_bfd_generic_write_ar_hdr): Ditto. | |
1976 | (_bfd_bsd44_write_ar_hdr): Ditto. | |
1977 | (_bfd_write_archive_contents): Call _bfd_write_ar_hdr. | |
1978 | (bsd_write_armap): Adjust firstreal computation. | |
1979 | * libbfd-in.h (struct areltdata): Add extra_size field. | |
1980 | (_bfd_generic_write_ar_hdr): Add prototype. | |
1981 | (_bfd_bsd44_write_ar_hdr): Ditto. | |
1982 | (_bfd_write_ar_hdr): Define. | |
1983 | (_bfd_noarchive_write_ar_hdr): Ditto. | |
1984 | (_bfd_archive_bsd_write_ar_hdr): Ditto. | |
1985 | (_bfd_archive_coff_write_ar_hdr): Ditto. | |
1986 | (_bfd_archive_bsd44_slurp_armap): Ditto. | |
1987 | (_bfd_archive_bsd44_slurp_extended_name_table): Ditto. | |
1988 | (_bfd_archive_bsd44_construct_extended_name_table): New prototype. | |
1989 | (_bfd_archive_bsd44_truncate_arname): Ditto. | |
1990 | (_bfd_archive_bsd44_write_armap): Ditto. | |
1991 | (_bfd_archive_bsd44_read_ar_hdr): Ditto. | |
1992 | (_bfd_archive_bsd44_write_ar_hdr): Ditto. | |
1993 | (_bfd_archive_bsd44_openr_next_archived_file): Ditto. | |
1994 | (_bfd_archive_bsd44_get_elt_at_index): Ditto. | |
1995 | (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto. | |
1996 | (_bfd_archive_bsd44_update_armap_timestamp): Ditto. | |
1997 | * libbfd.h: Regenerate. | |
1998 | * oasys.c (oasys_write_ar_hdr): Define. | |
1999 | * libecoff.h (_bfd_ecoff_write_ar_hdr): Define. | |
2000 | * ieee.c (ieee_write_ar_hdr): Define. | |
2001 | * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define. | |
2002 | * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field. | |
2003 | (bfd_pmac_xcoff_backend_data): Ditto. | |
2004 | * coff64-rs6000.c (rs6000coff64_vec): Ditto. | |
2005 | (bfd_xcoff_aix5_backend_data): Ditto. | |
2006 | * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define. | |
2007 | * aout-target.h (MY_write_ar_hdr): Define it if not defined. | |
2008 | * aout-tic30.c (MY_write_ar_hdr): Ditto. | |
2009 | * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive. | |
2010 | (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr) | |
2011 | (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table) | |
2012 | (bfd_mach_o_construct_extended_name_table) | |
2013 | (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap) | |
2014 | (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt) | |
2015 | (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c | |
2016 | * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr) | |
2017 | (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table) | |
2018 | (bfd_mach_o_construct_extended_name_table) | |
2019 | (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap) | |
2020 | (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt) | |
2021 | (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c | |
2022 | * bfd-in2.h: Regenerate. | |
2023 | ||
98da7939 L |
2024 | 2010-01-26 Alan Modra <[email protected]> |
2025 | H.J. Lu <[email protected]> | |
2026 | ||
2027 | PR ld/11218 | |
2028 | * elflink.c (elf_link_output_extsym): Do not ignore undefined | |
2029 | symbols with ref_regular set when gc_sections is active. | |
2030 | ||
766bc656 AM |
2031 | 2010-01-25 Alan Modra <[email protected]> |
2032 | ||
2033 | PR ld/11217 | |
2034 | * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences | |
2035 | with relocations against undefined weak symbols. | |
2036 | (ppc64_elf_relocate_section): Don't optimize calls to undefined | |
2037 | weak functions if the symbol is dynamic. | |
2038 | (ppc64_elf_relocate_section): Edit tprel tls sequences. | |
2039 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
2040 | (_bfd_elf_ppc_at_tprel_transform): New function. | |
2041 | * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare. | |
2042 | * bfd-in2.h: Regenerate. | |
2043 | ||
c865e45b RS |
2044 | 2010-01-23 Richard Sandiford <[email protected]> |
2045 | ||
2046 | * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1. | |
2047 | (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE. | |
2048 | * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and | |
2049 | bitsize to 1. | |
2050 | (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE. | |
2051 | ||
b918acf9 NC |
2052 | 2010-01-21 Nick Clifton <[email protected]> |
2053 | ||
2054 | * elflink.c (elf_link_add_object_symbols): Look up name of | |
2055 | undefined symbol both before and after versioning has been | |
2056 | applied. Do not bother with symbols that are weakly undefined. | |
2057 | ||
55786da2 | 2058 | 2010-01-21 Andreas Krebbel <[email protected]> |
b918acf9 | 2059 | |
55786da2 AK |
2060 | * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function. |
2061 | (bfd_elf32_bfd_merge_private_bfd_data): New macro definition. | |
2062 | ||
a37a68dd CC |
2063 | 2010-01-19 Cary Coutant <[email protected]> |
2064 | ||
2065 | * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8. | |
2066 | ||
ecd12bc1 AM |
2067 | 2010-01-19 Daisuke Hatayama <[email protected]> |
2068 | Alan Modra <[email protected]> | |
2069 | ||
1352b58a | 2070 | * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff. |
ecd12bc1 AM |
2071 | (elf_object_p): Read e_phnum extension. |
2072 | (elf_write_shdrs_and_ehdr): Write e_phnum extension. | |
1352b58a | 2073 | * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check |
ecd12bc1 AM |
2074 | that we can read last program header. |
2075 | ||
f6ebfac0 AM |
2076 | 2010-01-19 Matthew Gretton-Dann <[email protected]> |
2077 | ||
2078 | * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of | |
2079 | R_ARM_THM_CALL entry. | |
2080 | (elf32_arm_final_link_relocate): Correct calculation of | |
2081 | reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22, | |
2082 | or R_ARM_THM_JUMP24 relocation. | |
2083 | ||
22eb4b1d AM |
2084 | 2010-01-18 Alan Modra <[email protected]> |
2085 | ||
2086 | PR 11168 | |
2087 | * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C | |
2088 | block past vars in COFF_IMAGE_WITH_PE block. Report error on more | |
2089 | than 32k sections. | |
2090 | ||
6ec12636 JK |
2091 | 2010-01-15 Jan Kratochvil <[email protected]> |
2092 | ||
2093 | Fix compilation warning on gcc-3.4. | |
2094 | * vms-tir.c (start_etir_record, sto_imm): Rename the prototype | |
2095 | parameter index to sec_index according to the function definition. | |
2096 | ||
38a7df63 CF |
2097 | 2010-01-13 Chao-ying Fu <[email protected]> |
2098 | ||
2099 | * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B. | |
2100 | It is true for all CPUs. | |
2101 | (jal_reloc_p): New function. | |
2102 | (mips_elf_calculate_relocation): Rename require_jalxp to | |
2103 | cross_mode_jump_p. | |
2104 | Update comment for CROSS_MODE_JUMP_P. | |
2105 | Set up cross_mode_jump_p based on the mode change. | |
2106 | (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p. | |
2107 | Update comment for CROSS_MODE_JUMP_P. | |
2108 | Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx. | |
2109 | Use !cross_mode_jump_p to guard conversion. | |
2110 | Convert "jr t9" to "b", if possible. | |
2111 | (_bfd_mips_elf_relocate_section): Rename require_jalx to | |
2112 | cross_mode_jump_p. | |
2113 | Pass &cross_mode_jump_p to call mips_elf_calculate_relocation. | |
2114 | Pass cross_mode_jump_p to call mips_elf_perform_relocation. | |
2115 | ||
91b9a4a4 NC |
2116 | 2010-01-13 Nick Clifton <[email protected]> |
2117 | ||
2118 | * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for | |
2119 | "m32c" returns the m32c arch_info_struct and not the m16c | |
2120 | arch_info_struct. | |
2121 | (arch_info_struct): Use the new scan function. | |
2122 | (bfd_m32c_arch): Likewise. | |
2123 | ||
618b7301 TG |
2124 | 2010-01-13 Tristan Gingold <[email protected]> |
2125 | ||
2126 | * config.bfd: Remove duplicated target vector for i386-*-darwin. | |
2127 | Appends new arch instead of overriding. | |
2128 | Use mach_o_x86_64_vec for x86_64-*-darwin. | |
2129 | * configure.in: Add mach_o_x86_64_vec. | |
2130 | * configure: Regenerate. | |
2131 | * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector. | |
2132 | * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo | |
2133 | (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c | |
2134 | * Makefile.in: Regenerate. | |
2135 | * mach-o-x86-64.c: New file. | |
2136 | ||
f88af2f1 TG |
2137 | 2010-01-13 Tristan Gingold <[email protected]> |
2138 | ||
2139 | * reloc.c: Add MACH_O_X86_64 relocations. | |
2140 | * bfd-in2.h: Regenerate. | |
2141 | * libbfd.h: Regenerate. | |
2142 | ||
19172f39 TG |
2143 | 2010-01-13 Tristan Gingold <[email protected]> |
2144 | ||
2145 | * archive.c (normalize): Use lbasename. | |
2146 | (bfd_bsd_truncate_arname): Ditto. | |
2147 | (bfd_gnu_truncate_arname): Ditto. | |
2148 | ||
6cdb8d82 TG |
2149 | 2010-01-12 Tristan Gingold <[email protected]> |
2150 | ||
2151 | * makefile.vms (CFLAGS): Turns warnings into informational messages. | |
2152 | ||
9a753de0 TG |
2153 | 2010-01-11 Tristan Gingold <[email protected]> |
2154 | ||
2155 | * mach-o.h: Add x86-64 relocation types. | |
2156 | ||
42fa0891 TG |
2157 | 2010-01-11 Tristan Gingold <[email protected]> |
2158 | ||
2159 | * mach-o.h (bfd_mach_o_backend_data): Add arch field. | |
2160 | (bfd_mach_o_set_arch_mach): New prototype. | |
2161 | * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject. | |
2162 | (bfd_mach_o_set_arch_mach): New function. | |
2163 | (bfd_mach_o_gen_mkobject): New function. | |
2164 | Set TARGET_ARCHITECTURE for the generic back-ends. | |
2165 | * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define. | |
2166 | Check that TARGET_ARCHITECTURE is defined. | |
2167 | Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure. | |
2168 | * mach-o-i386.c (TARGET_ARCHITECTURE): Define. | |
2169 | ||
cba0723b TG |
2170 | 2010-01-11 Tristan Gingold <[email protected]> |
2171 | ||
19172f39 | 2172 | * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap. |
cba0723b | 2173 | |
4d421096 NC |
2174 | 2010-01-11 Nick Clifton <[email protected]> |
2175 | ||
2176 | * elf32-v850.c (v850_elf_perform_relocation): Fix overflow | |
2177 | handling of R_V850_HI16_S relocation. | |
2178 | ||
20b1d3e3 AM |
2179 | 2010-01-11 Alan Modra <[email protected]> |
2180 | ||
2181 | PR 11103 | |
2182 | * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment. | |
2183 | ||
a358ecb8 AM |
2184 | 2010-01-11 Alan Modra <[email protected]> |
2185 | ||
2186 | PR 6832 | |
2187 | * dwarf2.c (struct comp_unit): Add sec_info_ptr. | |
2188 | (find_abstract_instance_name): Use it. | |
2189 | (parse_comp_unit): Set it. | |
2190 | ||
3725885a RW |
2191 | 2010-01-09 Ralf Wildenhues <[email protected]> |
2192 | ||
2193 | * Makefile.in: Regenerate. | |
2194 | * configure: Regenerate. | |
2195 | ||
3ee87829 TG |
2196 | 2010-01-08 Tristan Gingold <[email protected]> |
2197 | ||
2198 | * archive.c: Remove bfd_special_undocumented_glue. | |
2199 | ||
fb34365b AM |
2200 | 2010-01-08 Alan Modra <[email protected]> |
2201 | ||
2202 | PR ld/11133 | |
2203 | * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook. | |
2204 | * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise. | |
2205 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise. | |
2206 | ||
d023c380 L |
2207 | 2010-01-07 H.J. Lu <[email protected]> |
2208 | ||
2209 | PR ld/11138 | |
2210 | * elflink.c (elf_link_check_versioned_symbol): Don't abort if | |
2211 | a symbol referenced by DSO is is defined in a non-shared object | |
2212 | and forced local. | |
2213 | ||
bde6f3eb L |
2214 | 2010-01-07 H.J. Lu <[email protected]> |
2215 | ||
2216 | PR ld/11133 | |
2217 | * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for | |
2218 | undefined __start_XXX/__stop_XXX in all input files and set | |
2219 | SEC_KEEP. | |
2220 | ||
16583161 L |
2221 | 2010-01-07 H.J. Lu <[email protected]> |
2222 | ||
2223 | PR ld/11143 | |
2224 | * elflink.c (elf_gc_sweep): Keep SHT_NOTE section. | |
2225 | ||
16231b7b DG |
2226 | 2010-01-04 Daniel Gutson <[email protected]> |
2227 | ||
2228 | * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC | |
2229 | before including procfs.h. | |
2230 | (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise. | |
2231 | * configure.in: Added autoconf probe for the pr_fpreg member. | |
2232 | * configure: Regenerated. | |
2233 | * config.in: Regenerated. | |
2234 | * elf.c: Define _STRUCTURE_PROC before including procfs.h. | |
2235 | ||
608fa8d3 JB |
2236 | 2010-01-04 Joel Brobecker <[email protected]> |
2237 | ||
2238 | Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64). | |
2239 | * dwarf2.c (concat_filename): Rename dirname with dir_name | |
2240 | to void shadowing the dirname function. | |
2241 | Rename subdirname with subdir_name to stay consistent with | |
2242 | the new dir_name variable name. | |
2243 | ||
0dc93057 AM |
2244 | 2010-01-04 Edmar Wienskoski <[email protected]> |
2245 | ||
2246 | * archures.c: Add bfd_mach_ppc_e500mc64. | |
2247 | * bfd-in2.h: Regenerate. | |
2248 | * cpu-powerpc.c (bfd_powerpc_archs): Add entry for | |
2249 | bfd_mach_ppc_e500mc64. | |
2250 | ||
baf9bed3 JB |
2251 | 2010-01-01 Joel Brobecker <[email protected]> |
2252 | ||
2253 | Fix -Wshadow warnings (seen on ppc-aix) | |
2254 | * xcofflink.c: Replace finfo by flinfo throughout. | |
2255 | ||
43ecc30f | 2256 | For older changes see ChangeLog-2009 |
56882138 AM |
2257 | \f |
2258 | Local Variables: | |
2259 | mode: change-log | |
2260 | left-margin: 8 | |
2261 | fill-column: 74 | |
2262 | version-control: never | |
2263 | End: |