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