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