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