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