Commit | Line | Data |
---|---|---|
cab0ad83 AS |
1 | 2012-04-26 Andreas Schwab <schwab@linux-m68k.org> |
2 | ||
3 | * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references | |
4 | also when generating PIE. | |
5 | (elf_m68k_discard_copies): Mark undefined weak symbols referenced | |
6 | by relocations as dynamic. | |
7 | ||
2b56b3f3 HPN |
8 | 2012-04-26 Hans-Peter Nilsson <hp@axis.com> |
9 | ||
10 | Provide a way for programs to recognize BFD_ASSERT calls. | |
11 | * bfd.c (bfd_assert_handler_type): New API type. | |
12 | (bfd_set_assert_handler, bfd_get_assert_handler): New API functions. | |
13 | (_bfd_assert_handler): New variable. | |
14 | (_bfd_default_assert_handler): New function. | |
15 | (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler. | |
16 | * libbfd-in.h (_bfd_assert_handler): Declare. | |
17 | * libbfd.h, bfd-in2.h: Regenerate. | |
18 | ||
27586251 HPN |
19 | 2012-04-24 Hans-Peter Nilsson <hp@axis.com> |
20 | ||
21 | PR ld/13990 | |
22 | * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local | |
23 | symbol, where PLT refcount is set to -1. | |
24 | ||
dbaa2011 AM |
25 | 2012-04-24 Alan Modra <amodra@gmail.com> |
26 | ||
27 | PR ld/13991 | |
28 | * bfd/elf-bfd.h (_bfd_elf_link_just_syms): Define as | |
29 | _bfd_generic_link_just_syms. | |
30 | * bfd/elflink.c (_bfd_elf_link_just_syms): Delete. | |
31 | * bfd/linker.c (_bfd_generic_link_just_syms): Set sec_info_type. | |
32 | ||
33 | * bfd/bfd-in.h (discarded_section): Renamed from elf_discarded_section. | |
34 | * bfd/section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS, | |
35 | SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME, | |
36 | SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE. | |
37 | * bfd/elf-eh-frame.c, * bfd/elf-m10200.c, * bfd/elf-m10300.c, | |
38 | * bfd/elf.c, * bfd/elf32-arm.c, * bfd/elf32-avr.c, * bfd/elf32-bfin.c, | |
39 | * bfd/elf32-cr16.c, * bfd/elf32-cr16c.c, * bfd/elf32-cris.c, | |
40 | * bfd/elf32-crx.c, * bfd/elf32-d10v.c, * bfd/elf32-epiphany.c, | |
41 | * bfd/elf32-fr30.c, * bfd/elf32-frv.c, * bfd/elf32-h8300.c, | |
42 | * bfd/elf32-hppa.c, * bfd/elf32-i370.c, * bfd/elf32-i386.c, | |
43 | * bfd/elf32-i860.c, * bfd/elf32-ip2k.c, * bfd/elf32-iq2000.c, | |
44 | * bfd/elf32-lm32.c, * bfd/elf32-m32c.c, * bfd/elf32-m32r.c, | |
45 | * bfd/elf32-m68hc1x.c, * bfd/elf32-m68k.c, * bfd/elf32-mcore.c, | |
46 | * bfd/elf32-mep.c, * bfd/elf32-moxie.c, * bfd/elf32-msp430.c, | |
47 | * bfd/elf32-mt.c, * bfd/elf32-openrisc.c, * bfd/elf32-ppc.c, | |
48 | * bfd/elf32-rl78.c, * bfd/elf32-rx.c, * bfd/elf32-s390.c, | |
49 | * bfd/elf32-score.c, * bfd/elf32-score7.c, * bfd/elf32-sh.c, | |
50 | * bfd/elf32-spu.c, * bfd/elf32-tic6x.c, * bfd/elf32-tilepro.c, | |
51 | * bfd/elf32-v850.c, * bfd/elf32-vax.c, * bfd/elf32-xc16x.c, | |
52 | * bfd/elf32-xstormy16.c, * bfd/elf32-xtensa.c, * bfd/elf64-alpha.c, | |
53 | * bfd/elf64-hppa.c, * bfd/elf64-ia64-vms.c, * bfd/elf64-mmix.c, | |
54 | * bfd/elf64-ppc.c, * bfd/elf64-s390.c, * bfd/elf64-sh64.c, | |
55 | * bfd/elf64-x86-64.c, * bfd/elflink.c, * bfd/elfnn-ia64.c, | |
56 | * bfd/elfxx-mips.c, * bfd/elfxx-sparc.c, * bfd/elfxx-tilegx.c, | |
57 | * bfd/reloc.c: Update all references. | |
58 | * bfd/bfd-in2.h: Regenerate. | |
59 | ||
87049b0d AK |
60 | 2012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
61 | ||
62 | * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default. | |
63 | * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default. | |
64 | ||
85e02784 TS |
65 | 2012-04-19 Thomas Schwinge <thomas@codesourcery.com> |
66 | ||
67 | * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for | |
68 | got_type. | |
69 | (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use | |
70 | it. | |
71 | ||
87458ed2 KK |
72 | 2012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
73 | ||
74 | * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic | |
75 | relocations when LE conversion happens on the IE tls symbol. | |
76 | ||
ea2d813e RM |
77 | 2012-04-17 Roland McGrath <mcgrathr@google.com> |
78 | ||
79 | * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding | |
80 | so that 32-byte boundary is a proper instruction boundary. | |
81 | ||
da03bf4d TG |
82 | 2012-04-17 Tristan Gingold <gingold@adacore.com> |
83 | ||
84 | * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to | |
85 | member of an object archive.< | |
86 | ||
d2226024 TG |
87 | 2012-04-17 Tristan Gingold <gingold@adacore.com> |
88 | ||
89 | * vms-lib.c (MAX_EKEYLEN): Define. | |
90 | (MAX_KEYLEN): Fix value. | |
91 | (vms_write_index): Add comments and fix indentation. | |
92 | Adjust comparaison. Add assertions. Free kbn_blk. | |
93 | (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN. | |
94 | Compense MAX_KEYLEN adjustment. | |
95 | ||
cb4437b8 MR |
96 | 2012-04-16 Maciej W. Rozycki <macro@linux-mips.org> |
97 | ||
98 | * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs. | |
99 | (_bfd_mips_elf_check_relocs): Update accordingly. | |
100 | ||
aed64b35 L |
101 | 2012-04-13 Alan Modra <amodra@gmail.com> |
102 | ||
103 | PR ld/13947 | |
104 | * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for | |
105 | reloc sections. | |
106 | ||
2615994e DM |
107 | 2012-04-12 David S. Miller <davem@davemloft.net> |
108 | ||
109 | * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32, | |
110 | BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs. | |
111 | * libbfd.h: Regenerate. | |
112 | * bfd-in2.h: Likewise. | |
113 | * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function. | |
114 | (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34, | |
115 | R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10. | |
116 | (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs. | |
117 | (_bfd_sparc_elf_check_relocs): Likewise. | |
118 | (_bfd_sparc_elf_gc_sweep_hook): Likewise. | |
119 | (_bfd_sparc_elf_relocate_section): Likewise. | |
120 | ||
b38cadfb NC |
121 | 2012-04-12 Roland McGrath <mcgrathr@google.com> |
122 | ||
123 | * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry): | |
124 | New variables. | |
125 | (struct elf32_arm_link_hash_table): New member `nacl_p'. | |
126 | (elf32_arm_link_hash_table_create): Initialize it. | |
127 | (elf32_arm_nacl_link_hash_table_create): New function. | |
128 | (arm_movw_immediate, arm_movt_immediate): New functions. | |
129 | (elf32_arm_populate_plt_entry): Test HTAB->nacl_p. | |
130 | (elf32_arm_finish_dynamic_sections): Likewise. | |
131 | (elf32_arm_output_plt_map_1): Likewise. | |
132 | (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec): | |
133 | New backend vector stanza. | |
134 | (elf32_arm_nacl_modify_segment_map): New function. | |
135 | * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*. | |
136 | * targets.c: Support bfd_elf32_{big,little}_nacl_vec. | |
137 | * configure.in: Likewise. | |
138 | (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here. | |
139 | (bfd_elf32_littlearm_nacl_vec): Likewise. | |
140 | (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise. | |
141 | (bfd_elf32_bigarm_symbian_vec): Likewise. | |
142 | (bfd_elf32_littlearm_symbian_vec): Likewise. | |
143 | (bfd_elf32_bigarm_vxworks_vec): Likewise. | |
144 | (bfd_elf32_littlearm_vxworks_vec): Likewise. | |
145 | * configure: Regenerated. | |
146 | ||
202e2356 NC |
147 | 2012-04-12 Tristan Gingold <gingold@adacore.com> |
148 | ||
149 | * elflink.c (elf_link_output_extsym): Add a guard. | |
150 | (bfd_elf_final_link): Remove assertion. | |
151 | (bfd_elf_final_link): Add a guard. | |
152 | * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed. | |
153 | (elfNN_vms_section_from_shdr, elfNN_vms_object_p) | |
154 | (elfNN_vms_post_process_headers, elfNN_vms_section_processing) | |
155 | (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup): | |
156 | Remove. | |
157 | (elfNN-ia64-vms target): Move to ... | |
158 | * elf64-ia64-vms.c: New file. | |
159 | * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo | |
160 | * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo. | |
161 | (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c. | |
162 | * configure: Regenerate. | |
163 | * Makefile.in: Regenerate. | |
164 | ||
4841cf0c NC |
165 | 2012-04-11 Nick Clifton <nickc@redhat.com> |
166 | ||
167 | PR binutils/13897 | |
168 | * elf64-ppc.c (opd_entry_value): When dealing with sections | |
169 | without relocs, keep the last section loaded in order to avoid | |
170 | unnecessary reloads. | |
171 | ||
d324f6d6 RM |
172 | 2012-04-09 Roland McGrath <mcgrathr@google.com> |
173 | ||
174 | * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs. | |
175 | * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs. | |
176 | (nacl_modify_program_headers): Likewise. | |
177 | ||
5a68afcf RM |
178 | 2012-04-03 Roland McGrath <mcgrathr@google.com> |
179 | ||
180 | * elf-nacl.c: New file. | |
181 | * elf-nacl.h: New file. | |
182 | * elf32-i386.c (elf_backend_modify_segment_map): Define for | |
183 | bfd_elf32_i386_nacl_vec. | |
184 | (elf_backend_modify_program_headers): Likewise. | |
185 | * elf64-x86-64.c (elf_backend_modify_segment_map): Define for | |
186 | bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec. | |
187 | (elf_backend_modify_program_headers): Likewise. | |
188 | * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here. | |
189 | (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here. | |
190 | * Makefile.in: Regenerated. | |
191 | * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here. | |
192 | (bfd_elf32_x86_64_nacl_vec): Likewise. | |
193 | (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise. | |
194 | (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise. | |
195 | (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise. | |
196 | (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise. | |
197 | (bfd_elf32_i386_nacl_vec): Likewise. | |
198 | (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise. | |
199 | (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise. | |
200 | * configure: Regenerated. | |
201 | ||
3a4ae681 AS |
202 | 2012-03-31 Andreas Schwab <schwab@linux-m68k.org> |
203 | ||
204 | * elf32-m68k.c (elf_m68k_relocate_section): Allow | |
205 | R_68K_TLS_LE{8,16,32} for PIE. | |
206 | ||
a7e28bbe AK |
207 | 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
208 | ||
209 | * elf64-s390.c: Fix several comments regarding PLT entry | |
210 | description. | |
211 | * elf32-s390.c: Likewise. | |
212 | ||
f41345a7 AK |
213 | 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
214 | ||
215 | * elf64-s390.c: Use the section pointer shortcuts in | |
216 | elf_link_hash_table and remove them from the target specific | |
217 | variant. | |
218 | * elf32-s390.c: Likewise. | |
219 | ||
9aa17453 AK |
220 | 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
221 | ||
222 | * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry): | |
223 | New definitions. | |
224 | (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove. | |
225 | (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32. | |
226 | (elf_s390_finish_dynamic_sections): Likewise. | |
227 | * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry) | |
228 | (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry) | |
229 | (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions. | |
230 | (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*) | |
231 | (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove. | |
232 | ||
00d8c7a9 AK |
233 | 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
234 | ||
235 | * elf32-s390.c (struct elf_s390_dyn_relocs): Remove. | |
236 | Rename all occurrences in the file to elf_dyn_relocs. | |
237 | * elf64-s390.c: Likewise. | |
238 | ||
a66eed7a AM |
239 | 2012-03-30 Alan Modra <amodra@gmail.com> |
240 | ||
241 | * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic | |
242 | libraries. | |
243 | ||
f67f98b5 AM |
244 | 2012-03-29 Alan Modra <amodra@gmail.com> |
245 | ||
246 | * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete. | |
247 | * bfd-in2.h: Regenerate. | |
248 | ||
e8d2ba53 AM |
249 | 2012-03-23 Alan Modra <amodra@gmail.com> |
250 | ||
251 | * elf.c (assign_file_positions_for_non_load_sections): Don't warn | |
252 | on empty alloc sections. | |
253 | ||
051d833a AM |
254 | 2012-03-23 Alan Modra <amodra@gmail.com> |
255 | ||
256 | * linker.c (_bfd_nearby_section): New function, split out from.. | |
257 | (fix_syms): ..here. | |
258 | * bfd-in.h (_bfd_nearby_section): Declare. | |
259 | * bfd-in2.h: Regenerate. | |
260 | * elflink.c (elf_link_input_bfd): Don't use text_index_section or | |
261 | data_index_section with ld -q or ld -r output relocs against | |
262 | stripped output sections. Instead use _bfd_nearby_section. | |
263 | ||
62599110 AM |
264 | 2012-03-23 Alan Modra <amodra@gmail.com> |
265 | ||
266 | PR binutils/13894 | |
267 | * elf64-ppc.c (opd_entry_value): Read full symbol table when | |
268 | sym hashes unavailable. | |
269 | ||
b781d74f JM |
270 | 2012-03-21 Eliot Dresselhaus <eliot@sonic.net> |
271 | ||
272 | * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE | |
273 | for non-C6X objects. | |
274 | ||
17d5dae2 KT |
275 | 2012-03-20 Kai Tietz <ktietz@redhat.com> |
276 | ||
277 | PR ld/12742 | |
278 | * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h. | |
279 | * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined. | |
280 | Add windows.h header include if HAVE_WINDOWS_H is defined. | |
281 | (dlerror): New static function if windows variant is used instead | |
282 | of dlfcn.h. | |
283 | (dlclose): Likewise. | |
284 | (dlopen): Likewise. | |
285 | (dlsym): Likewise. | |
286 | * configure: Regenerated. | |
287 | * config.in: Regenerated. | |
288 | ||
bdb892b9 L |
289 | 2012-03-20 H.J. Lu <hongjiu.lu@intel.com> |
290 | ||
291 | PR ld/13880 | |
292 | * elf32-i386.c (elf_i386_relocate_section): Don't issue an error | |
293 | for R_386_GOTOFF relocation against protected function if | |
294 | SYMBOLIC_BIND is true. | |
295 | ||
296 | * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an | |
297 | error for R_X86_64_GOTOFF64 relocation against protected function | |
298 | when building executable or SYMBOLIC_BIND is true. | |
299 | ||
8059fb19 RM |
300 | 2012-03-16 Roland McGrath <mcgrathr@google.com> |
301 | ||
302 | * config.bfd: Handle x86_64-*-nacl*. | |
303 | * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza. | |
304 | (bfd_elf32_x86_64_nacl_vec): Likewise. | |
305 | * targets.c: Support them. | |
306 | * configure.in: Likewise. | |
307 | * configure: Regenerated. | |
308 | ||
ac56ee8f MGD |
309 | 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> |
310 | ||
311 | * elf32-arm.c (elf32_arm_attributes_accept_div): New function. | |
312 | (elf32_arm_attributes_forbid_div): Likewise. | |
313 | (elf32_arm_merge_eabi_attributes): Correct handling of | |
314 | Tag_DIV_use. | |
315 | ||
eed180f8 RM |
316 | 2012-03-15 Roland McGrath <mcgrathr@google.com> |
317 | ||
a4456d24 RM |
318 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use |
319 | elf_x86_64_backend_data parameters for plt_eh_frame. | |
320 | ||
eed180f8 RM |
321 | * elf64-x86-64.c (struct elf_x86_64_backend_data): New type. |
322 | (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros. | |
323 | (elf_x86_64_arch_bed): New variable. | |
324 | (elf_backend_arch_data): New macro. | |
325 | (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE. | |
326 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
327 | (elf_x86_64_relocate_section): Likewise. | |
328 | (elf_x86_64_plt_sym_val): Likewise. | |
329 | (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data | |
330 | parameters for PLT details. | |
331 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
332 | ||
caa0075c RM |
333 | 2012-03-14 Roland McGrath <mcgrathr@google.com> |
334 | ||
335 | * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up | |
336 | to the full size, padding out with nop instructions. | |
337 | ||
1d7e9d18 AM |
338 | 2012-03-12 Alan Modra <amodra@gmail.com> |
339 | ||
340 | * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn | |
341 | on zero size dynbss symbol. | |
342 | * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise. | |
343 | * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise. | |
344 | * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise. | |
345 | * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise. | |
346 | * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise. | |
347 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise. | |
348 | * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise. | |
349 | * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise. | |
350 | * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise. | |
351 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise. | |
352 | * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
353 | * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise. | |
354 | * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise. | |
355 | * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise. | |
356 | * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise. | |
357 | * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise. | |
358 | * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise. | |
359 | * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise. | |
360 | * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. | |
361 | * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise. | |
362 | * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise. | |
363 | ||
aea77599 AM |
364 | 2012-03-10 Edmar Wienskoski <edmar@freescale.com> |
365 | ||
366 | * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500. | |
367 | * bfd-in2.h: Regenerate. | |
368 | * cpu-powerpc.c (bfd_powerpc_archs): Add entries for | |
369 | bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500. | |
370 | ||
56b8aada L |
371 | 2012-03-09 H.J. Lu <hongjiu.lu@intel.com> |
372 | ||
373 | PR ld/13817 | |
374 | * bfd/elf32-i386.c (elf_i386_relocate_section): Restore | |
375 | R_386_IRELATIVE. | |
376 | ||
377 | * * elf64-x86-64.c (elf_x86_64_relocate_section): Restore | |
378 | R_X86_64_IRELATIVE. | |
379 | ||
460f1cdc TG |
380 | 2012-03-08 Tristan Gingold <gingold@adacore.com> |
381 | ||
382 | * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum | |
383 | keylen according to archive kind. Set nextvbn and nextrfa lhd | |
384 | fields. Add comments. | |
385 | ||
0a22ae8e NC |
386 | 2012-03-07 Nick Clifton <nickc@redhat.com> |
387 | ||
388 | * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type | |
389 | field. | |
390 | (elf32_mn10300_link_hash_table): Add tls_ldm_got entry; | |
391 | (elf_mn10300_tdata): Define. | |
392 | (elf_mn10300_local_got_tls_type): Define. | |
393 | (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD, | |
394 | R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE, | |
395 | R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD, | |
396 | R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs. | |
397 | (mn10300_reloc_map): Likewise. | |
398 | (elf_mn10300_tls_transition): New function. | |
399 | (dtpoff, tpoff, mn10300_do_tls_transition): New functions. | |
400 | (mn10300_elf_check_relocs): Add TLS support. | |
401 | (mn10300_elf_final_link_relocate): Likewise. | |
402 | (mn10300_elf_relocate_section): Likewise. | |
403 | (mn10300_elf_relax_section): Likewise. | |
404 | (elf32_mn10300_link_hash_newfunc): Initialise new field. | |
405 | (_bfd_mn10300_copy_indirect_symbol): New function. | |
406 | (elf32_mn10300_link_hash_table_create): Initialise new fields. | |
407 | (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support. | |
408 | (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise. | |
409 | (_bfd_mn10300_elf_reloc_type_class): Allocate an | |
410 | elf_mn10300_obj_tdata structure. | |
411 | (elf_backend_copy_indirect_symbol): Define. | |
412 | * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD, | |
413 | BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE, | |
414 | BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD, | |
415 | BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations. | |
416 | (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to | |
417 | alongside other MN10300 relocations. | |
418 | * bfd-in2.h: Regenerate. | |
419 | * libbfd.h: Regenerate. | |
420 | ||
3ce231f8 JJ |
421 | 2012-03-06 Jakub Jelinek <jakub@redhat.com> |
422 | ||
423 | * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE | |
424 | set relocate to TRUE. | |
425 | ||
0bef263a RO |
426 | 2012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
427 | ||
428 | PR ld/12152 | |
429 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore | |
430 | overflows for R_SPARC_UA32 in .stab sections. | |
431 | ||
84abc003 AM |
432 | 2012-03-01 Alan Modra <amodra@gmail.com> |
433 | ||
434 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning. | |
435 | ||
3d301fdc AM |
436 | 2012-02-27 Alan Modra <amodra@gmail.com> |
437 | ||
438 | * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd | |
439 | before calling elf specific function. | |
440 | (sh_elf_osec_readonly_p): Test for error return from above. | |
441 | ||
cb83c803 AM |
442 | 2012-02-27 Alan Modra <amodra@gmail.com> |
443 | ||
444 | * elf32-spu.c (build_stub): Fix malloc under-allocation. | |
445 | ||
6f7be959 WL |
446 | 2012-02-25 Walter Lee <walt@tilera.com> |
447 | * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL, | |
448 | BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD, | |
449 | BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD, | |
450 | BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD, | |
451 | BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD, | |
452 | BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE, | |
453 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE, | |
454 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO, | |
455 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO, | |
456 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI, | |
457 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI, | |
458 | BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA, | |
459 | BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA, | |
460 | BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE, | |
461 | BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE, | |
462 | BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE, | |
463 | BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE, | |
464 | BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE, | |
465 | BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE, | |
466 | BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD, | |
467 | BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD, | |
468 | BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD, | |
469 | BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD, | |
470 | BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD, | |
471 | BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD, | |
472 | BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD. | |
473 | Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT, | |
474 | BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT, | |
475 | BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT, | |
476 | BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT, | |
477 | BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT, | |
478 | BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT, | |
479 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT, | |
480 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT, | |
481 | BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD, | |
482 | BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD, | |
483 | BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD, | |
484 | BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD, | |
485 | BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD, | |
486 | BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD, | |
487 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD, | |
488 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD, | |
489 | BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE, | |
490 | BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE, | |
491 | BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE, | |
492 | BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE, | |
493 | BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE, | |
494 | BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE, | |
495 | BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE, | |
496 | BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE. | |
497 | * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro | |
498 | relocations. | |
499 | (tilepro_reloc_map): Ditto. | |
500 | (tilepro_info_to_howto_rela): Ditto. | |
501 | (reloc_to_create_func): Ditto. | |
502 | (tilepro_tls_translate_to_le): New. | |
503 | (tilepro_tls_translate_to_ie): New. | |
504 | (tilepro_elf_tls_transition): New. | |
505 | (tilepro_elf_check_relocs): Handle new tls relocations. | |
506 | (tilepro_elf_gc_sweep_hook): Ditto. | |
507 | (allocate_dynrelocs): Ditto. | |
508 | (tilepro_elf_relocate_section): Ditto. | |
509 | (tilepro_replace_insn): New. | |
510 | (insn_mask_X1): New. | |
511 | (insn_mask_X0_no_dest_no_srca): New | |
512 | (insn_mask_X1_no_dest_no_srca): New | |
513 | (insn_mask_Y0_no_dest_no_srca): New | |
514 | (insn_mask_Y1_no_dest_no_srca): New | |
515 | (srca_mask_X0): New | |
516 | (srca_mask_X1): New | |
517 | (insn_tls_le_move_X1): New | |
518 | (insn_tls_le_move_zero_X0X1): New | |
519 | (insn_tls_ie_lw_X1): New | |
520 | (insn_tls_ie_add_X0X1): New | |
521 | (insn_tls_ie_add_Y0Y1): New | |
522 | (insn_tls_gd_add_X0X1): New | |
523 | (insn_tls_gd_add_Y0Y1): New | |
524 | * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx | |
525 | relocations. | |
526 | (tilegx_reloc_map): Ditto. | |
527 | (tilegx_info_to_howto_rela): Ditto. | |
528 | (reloc_to_create_func): Ditto. | |
529 | (tilegx_elf_link_hash_table): New field disable_le_transition. | |
530 | (tilegx_tls_translate_to_le): New. | |
531 | (tilegx_tls_translate_to_ie): New. | |
532 | (tilegx_elf_tls_transition): New. | |
533 | (tilegx_elf_check_relocs): Handle new tls relocations. | |
534 | (tilegx_elf_gc_sweep_hook): Ditto. | |
535 | (allocate_dynrelocs): Ditto. | |
536 | (tilegx_elf_relocate_section): Ditto. | |
537 | (tilegx_copy_bits): New. | |
538 | (tilegx_replace_insn): New. | |
539 | (insn_mask_X1): New. | |
540 | (insn_mask_X0_no_dest_no_srca): New. | |
541 | (insn_mask_X1_no_dest_no_srca): New. | |
542 | (insn_mask_Y0_no_dest_no_srca): New. | |
543 | (insn_mask_Y1_no_dest_no_srca): New. | |
544 | (insn_mask_X0_no_operand): New. | |
545 | (insn_mask_X1_no_operand): New. | |
546 | (insn_mask_Y0_no_operand): New. | |
547 | (insn_mask_Y1_no_operand): New. | |
548 | (insn_tls_ie_ld_X1): New. | |
549 | (insn_tls_ie_ld4s_X1): New. | |
550 | (insn_tls_ie_add_X0X1): New. | |
551 | (insn_tls_ie_add_Y0Y1): New. | |
552 | (insn_tls_ie_addx_X0X1): New. | |
553 | (insn_tls_ie_addx_Y0Y1): New. | |
554 | (insn_tls_gd_add_X0X1): New. | |
555 | (insn_tls_gd_add_Y0Y1): New. | |
556 | (insn_move_X0X1): New. | |
557 | (insn_move_Y0Y1): New. | |
558 | (insn_add_X0X1): New. | |
559 | (insn_add_Y0Y1): New. | |
560 | (insn_addx_X0X1): New. | |
561 | (insn_addx_Y0Y1): New. | |
562 | * libbfd.h: Regenerate. | |
563 | * bfd-in2.h: Regenerate. | |
564 | ||
82590249 WL |
565 | 2012-02-25 Walter Lee <walt@tilera.com> |
566 | ||
fb6cedde WL |
567 | * config.bfd (tilegx-*-*): rename little endian vector; add big |
568 | endian vector. | |
569 | (tilegxbe-*-*): New case. | |
570 | * configure.in (bfd_elf32_tilegx_vec): Rename... | |
571 | (bfd_elf32_tilegx_le_vec): ... to this. | |
572 | (bfd_elf32_tilegx_be_vec): New vector. | |
573 | (bfd_elf64_tilegx_vec): Rename... | |
574 | (bfd_elf64_tilegx_le_vec): ... to this. | |
575 | (bfd_elf64_tilegx_be_vec): New vector. | |
576 | * configure: Regenerate. | |
577 | * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename. | |
578 | (TARGET_LITTLE_NAME): Ditto. | |
579 | (TARGET_BIG_SYM): Define. | |
580 | (TARGET_BIG_NAME): Define. | |
581 | * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename. | |
582 | (TARGET_LITTLE_NAME): Ditto. | |
583 | (TARGET_BIG_SYM): Define. | |
584 | (TARGET_BIG_NAME): Define. | |
585 | * targets.c (bfd_elf32_tilegx_vec): Rename... | |
586 | (bfd_elf32_tilegx_le_vec): ... to this. | |
587 | (bfd_elf32_tilegx_be_vec): Declare. | |
588 | (bfd_elf64_tilegx_vec): Rename... | |
589 | (bfd_elf64_tilegx_le_vec): ... to this. | |
590 | (bfd_elf64_tilegx_be_vec): Declare. | |
591 | (_bfd_target_vector): Add / rename above vectors. | |
82590249 WL |
592 | * arctures.c (bfd_architecture): Define bfd_mach_tilegx32. |
593 | * bfd-in2.h: Regenerate. | |
594 | * cpu-tilegx.c (bfd_tilegx32_arch): define. | |
fb6cedde | 595 | (bfd_tilegx_arch): link to bfd_tilegx32_arch. |
82590249 | 596 | |
4115917d NC |
597 | 2012-02-24 Nick Clifton <nickc@redhat.com> |
598 | ||
599 | PR ld/13730 | |
600 | * reloc.c (bfd_generic_get_relocated_section_contents): Issue an | |
601 | error message instead of aborting, when an outofrange reloc is | |
602 | encountered. | |
603 | ||
19765f52 IS |
604 | 2012-02-23 Iain Sandoe <idsandoe@googlemail.com> |
605 | ||
606 | * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New. | |
607 | (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc | |
608 | bit-fields when target and host differ in endian-ness. When | |
609 | PAIRs are non-scattered find the 'symbol' from the preceding | |
610 | reloc. Add FIXME re. reloc symbols on section boundaries. | |
611 | (bfd_mach_o_swap_out_non_scattered_reloc): New. | |
612 | (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc. | |
613 | ||
6639d37a IS |
614 | 2012-02-17 Iain Sandoe <idsandoe@googlemail.com> |
615 | ||
616 | * mach-o-i386.c (i386_howto_table): Add support for 16 bit | |
617 | sect-diffs. | |
618 | (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs. | |
619 | (bfd_mach_o_i386_swap_reloc_out): Likewise. | |
620 | ||
e1e81ed3 IS |
621 | 2012-02-17 Tristan Gingold <gingold@adacore.com> |
622 | ||
623 | * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF): | |
624 | * libbfd.h: Regenerated. | |
625 | * bfd-in2.h: Likewise. | |
626 | * mach-o-i386.c (i386_howto_table): Include local sectdiff. | |
627 | (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff. | |
628 | (bfd_mach_o_i386_swap_reloc_out): Likewise. | |
629 | ||
d0ddfe27 AK |
630 | 2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> |
631 | ||
632 | * elf32-s390.c (elf_s390_relocate_section): Support basr in the | |
633 | GD->LE and LD->LE optimizations. | |
634 | ||
eb8c5f3f AM |
635 | 2012-02-16 Alan Modra <amodra@gmail.com> |
636 | ||
637 | PR binutils/13355 | |
638 | * elf32-rx.c (elf32_rx_relax_section): Correct width check. | |
639 | ||
e1741a1e RH |
640 | 2012-02-13 Richard Henderson <rth@redhat.com> |
641 | ||
642 | PR ld/13621 | |
643 | * linker.c (fix_syms): Force symbols outside any section into | |
644 | bfd_abs_section_ptr. | |
645 | ||
5efbbc43 AM |
646 | 2012-02-13 Alan Modra <amodra@gmail.com> |
647 | ||
648 | * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function. | |
649 | * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare. | |
650 | * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define. | |
651 | * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define. | |
652 | ||
3e3c397d JK |
653 | 2012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com> |
654 | Nick Clifton <nickc@redhat.com> | |
655 | ||
656 | * oasys.c (oasys_write_header): Fix compilation warning on zero-sized | |
657 | memset. | |
658 | ||
09903f4b IS |
659 | 2012-02-10 Iain Sandoe <idsandoe@googlemail.com> |
660 | ||
661 | * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section | |
662 | vma additions in their logical, rather than physical order. | |
663 | ||
632039e0 IS |
664 | 2012-02-10 Iain Sandoe <idsandoe@googlemail.com> |
665 | ||
666 | * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section | |
667 | parameters. | |
668 | * mach-o-x86-64.c (text_section_names_xlat): New. | |
669 | (mach_o_x86_64_segsec_names_xlat): New. | |
670 | (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat. | |
671 | * mach-o-i386.c (text_section_names_xlat): Correct section parameters. | |
672 | ||
565a6476 TG |
673 | 2012-02-10 Tristan Gingold <gingold@adacore.com> |
674 | ||
675 | * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator | |
676 | to avoid infinite loop. Add comments. | |
677 | ||
923f257f L |
678 | 2012-02-09 H.J. Lu <hongjiu.lu@intel.com> |
679 | ||
680 | PR ld/13675 | |
681 | * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte | |
682 | nop instructions. | |
683 | (bfd_arch_i386_short_nop_fill): New. | |
684 | (bfd_arch_i386_long_nop_fill): Likewise. | |
685 | Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info | |
686 | initializers. Use bfd_arch_i386_long_nop_fill on 64bit | |
687 | bfd_arch_info initializers. | |
688 | ||
689 | * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ... | |
690 | (bfd_arch_i386_short_nop_fill): This. | |
691 | Update bfd_arch_info initializers. | |
692 | * cpu-l1om.c: Likewise. | |
693 | ||
4e6b54a6 AM |
694 | 2012-02-08 Alan Modra <amodra@gmail.com> |
695 | ||
696 | * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too. | |
697 | (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear | |
698 | the correct h->u.weakdef. | |
699 | ||
ff9e0f5b AM |
700 | 2012-02-07 Alan Modra <amodra@gmail.com> |
701 | ||
702 | * elf.c (elf_find_function): Don't use internal_elf_sym. | |
703 | (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type | |
704 | parameter with asymbol. | |
705 | * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. | |
706 | * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype. | |
707 | (struct elf_backend_data <maybe_function_sym>): Likewise. | |
708 | ||
526f25b2 EW |
709 | 2012-02-02 Vidya Praveen (vidya.praveen@atmel.com) |
710 | ||
711 | PR bfd/13410 | |
ff9e0f5b | 712 | * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the |
526f25b2 EW |
713 | condition that qualifies the candidates for relaxation. |
714 | ||
7c4f9963 TG |
715 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
716 | ||
717 | * bfdio.c (real_fopen): Remove unused vms_modes variable. | |
718 | ||
facf03f2 TG |
719 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
720 | ||
721 | * mach-o.c (bfd_mach_o_read_header): Silent uninitialized | |
722 | variable warning. | |
723 | ||
cd99171c TG |
724 | 2012-02-02 Tristan Gingold <gingold@adacore.com> |
725 | ||
726 | * archive.c (bfd_slurp_armap): Fix thinko in cast. | |
727 | ||
b7761f11 L |
728 | 2012-01-31 H.J. Lu <hongjiu.lu@intel.com> |
729 | ||
730 | PR ld/13616 | |
731 | * archures.c (bfd_arch_info): Add fill. | |
732 | (bfd_default_arch_struct): Add bfd_arch_default_fill. | |
733 | (bfd_arch_default_fill): New. | |
734 | ||
735 | * configure.in: Set bfd version to 2.22.52. | |
736 | * configure: Regenerated. | |
737 | ||
738 | * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info | |
739 | initializer. | |
740 | * cpu-arc.c: Likewise. | |
741 | * cpu-arm.c: Likewise. | |
742 | * cpu-avr.c: Likewise. | |
743 | * cpu-bfin.c: Likewise. | |
744 | * cpu-cr16.c: Likewise. | |
745 | * cpu-cr16c.c: Likewise. | |
746 | * cpu-cris.c: Likewise. | |
747 | * cpu-crx.c: Likewise. | |
748 | * cpu-d10v.c: Likewise. | |
749 | * cpu-d30v.c: Likewise. | |
750 | * cpu-dlx.c: Likewise. | |
751 | * cpu-epiphany.c: Likewise. | |
752 | * cpu-fr30.c: Likewise. | |
753 | * cpu-frv.c: Likewise. | |
754 | * cpu-h8300.c: Likewise. | |
755 | * cpu-h8500.c: Likewise. | |
756 | * cpu-hppa.c: Likewise. | |
757 | * cpu-i370.c: Likewise. | |
758 | * cpu-i860.c: Likewise. | |
759 | * cpu-i960.c: Likewise. | |
760 | * cpu-ia64.c: Likewise. | |
761 | * cpu-ip2k.c: Likewise. | |
762 | * cpu-iq2000.c: Likewise. | |
763 | * cpu-lm32.c: Likewise. | |
764 | * cpu-m10200.c: Likewise. | |
765 | * cpu-m10300.c: Likewise. | |
766 | * cpu-m32c.c: Likewise. | |
767 | * cpu-m32r.c: Likewise. | |
768 | * cpu-m68hc11.c: Likewise. | |
769 | * cpu-m68hc12.c: Likewise. | |
770 | * cpu-m68k.c: Likewise. | |
771 | * cpu-m88k.c: Likewise. | |
772 | * cpu-mcore.c: Likewise. | |
773 | * cpu-mep.c: Likewise. | |
774 | * cpu-microblaze.c: Likewise. | |
775 | * cpu-mips.c: Likewise. | |
776 | * cpu-mmix.c: Likewise. | |
777 | * cpu-moxie.c: Likewise. | |
778 | * cpu-msp430.c: Likewise. | |
779 | * cpu-mt.c: Likewise. | |
780 | * cpu-ns32k.c: Likewise. | |
781 | * cpu-openrisc.c: Likewise. | |
782 | * cpu-or32.c: Likewise. | |
783 | * cpu-pdp11.c: Likewise. | |
784 | * cpu-pj.c: Likewise. | |
785 | * cpu-plugin.c: Likewise. | |
786 | * cpu-powerpc.c: Likewise. | |
787 | * cpu-rl78.c: Likewise. | |
788 | * cpu-rs6000.c: Likewise. | |
789 | * cpu-rx.c: Likewise. | |
790 | * cpu-s390.c: Likewise. | |
791 | * cpu-score.c: Likewise. | |
792 | * cpu-sh.c: Likewise. | |
793 | * cpu-sparc.c: Likewise. | |
794 | * cpu-spu.c: Likewise. | |
795 | * cpu-tic30.c: Likewise. | |
796 | * cpu-tic4x.c: Likewise. | |
797 | * cpu-tic54x.c: Likewise. | |
798 | * cpu-tic6x.c: Likewise. | |
799 | * cpu-tic80.c: Likewise. | |
800 | * cpu-tilegx.c: Likewise. | |
801 | * cpu-tilepro.c: Likewise. | |
802 | * cpu-v850.c: Likewise. | |
803 | * cpu-vax.c: Likewise. | |
804 | * cpu-w65.c: Likewise. | |
805 | * cpu-we32k.c: Likewise. | |
806 | * cpu-xc16x.c: Likewise. | |
807 | * cpu-xstormy16.c: Likewise. | |
808 | * cpu-xtensa.c: Likewise. | |
809 | * cpu-z80.c: Likewise. | |
810 | * cpu-z8k.c: Likewise. | |
811 | ||
812 | * cpu-i386.c: Include "libiberty.h". | |
ff9e0f5b | 813 | (bfd_arch_i386_fill): New. |
b7761f11 L |
814 | Add bfd_arch_i386_fill to bfd_arch_info initializer. |
815 | ||
816 | * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer. | |
817 | * cpu-l1om.c: Likewise. | |
818 | ||
ff9e0f5b | 819 | * linker.c (default_data_link_order): Call abfd->arch_info->fill |
b7761f11 L |
820 | if fill size is 0. |
821 | ||
822 | * bfd-in2.h: Regenerated. | |
823 | ||
0d048da3 ME |
824 | 2012-01-27 Michael Eager <eager@eagercon.com> |
825 | ||
826 | * bfd/elf32-microblaze.c (create_got_section): | |
827 | Reuse existing .rela.got section. | |
828 | ||
9f296da3 AM |
829 | 2012-01-23 Alan Modra <amodra@gmail.com> |
830 | ||
831 | * elf-bfd.h: Formatting. | |
832 | (struct elf_backend_data): Add "maybe_function_sym". | |
833 | (_bfd_elf_maybe_function_sym): Declare. | |
834 | * elfxx-target.h (elf_backend_maybe_function_sym): Define. | |
835 | (elfNN_bed): Init new field. | |
836 | * elf.c (elf_find_function): Use maybe_function_sym. | |
837 | (_bfd_elf_maybe_function_sym): New function. | |
838 | * elf64-ppc.c (elf_backend_maybe_function_sym): Define. | |
839 | (ppc64_elf_maybe_function_sym): New function. | |
840 | ||
f1bb16f8 NC |
841 | 2012-01-20 Francois Gouget <fgouget@codeweavers.com> |
842 | ||
843 | PR binutils/13534 | |
844 | * archive.c (_bfd_ar_sizepad): New function. Correctly install and | |
845 | pad the size field in an archive header. | |
846 | (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan | |
847 | function for the archive size field. | |
848 | (bfd_generic_openr_next_archived_file): Likewise. | |
849 | (do_slurp_coff_armap): Likewise. | |
850 | (_bfd_write_archive_contents): Likewise. | |
851 | (_bfd_bsd44_write_ar_hdr): Use the new function. | |
852 | (bfd_ar_hdr_from_filesystem): Likewise. | |
853 | (_bfd_write_archive_contents): Likewise. | |
854 | (bsd_write_armap): Likewise. | |
855 | (coff_write_armap): Likewise. | |
856 | * archive64.c (bfd_elf64_archive_write_armap): Likewise. | |
857 | * bfdio.c (bfd_bread): Use correct type for archive element | |
858 | sizes. | |
859 | * ar.c (open_inarch): Likewise. | |
860 | (extract_file): Likewise. | |
861 | * libbfd-in.h (struct areltdata): Use correct types for | |
862 | parsed_size and extra_size fields. | |
863 | Prototype _bfd_ar_sizepad function. | |
864 | * libbfd.h: Regenerate. | |
865 | ||
1f20dca5 UW |
866 | 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org> |
867 | ||
868 | * elf.c (elfcore_write_prpsinfo): Provide unconditionally. | |
869 | Return NULL if core file generation is unsupported. | |
870 | (elfcore_write_prstatus): Likewise. | |
871 | * elf32-arm.c (elf32_arm_nabi_write_core_note): New function. | |
872 | (elf_backend_write_core_note): Define. | |
873 | ||
100fc767 TG |
874 | 2012-01-19 Tristan Gingold <gingold@adacore.com> |
875 | ||
876 | * pef.c: Add a comment. | |
877 | * xsym.c: Likewise. | |
878 | ||
75cd47ed AM |
879 | 2012-01-17 Alan Modra <amodra@gmail.com> |
880 | ||
881 | * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave | |
882 | trailing garbage in the note. | |
883 | * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise. | |
884 | ||
8a5dcf53 AM |
885 | 2012-01-16 Daniel Green <venix1@gmail.com> |
886 | ||
887 | PR ld/13491 | |
888 | * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test | |
889 | h->root.type not h->type. | |
890 | * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise. | |
891 | ||
bb76d940 IS |
892 | 2012-01-13 Iain Sandoe <idsandoe@googlemail.com> |
893 | ||
8a5dcf53 AM |
894 | * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute |
895 | indirect symbols. | |
687be931 IS |
896 | |
897 | 2012-01-13 Iain Sandoe <idsandoe@googlemail.com> | |
898 | ||
899 | * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file | |
bb76d940 IS |
900 | position from here... to (bfd_mach_o_build_seg_command): Here. |
901 | ||
50d10658 IS |
902 | 2012-01-12 Iain Sandoe <idsandoe@googlemail.com> |
903 | ||
904 | * mach-o.c (bfd_mach_o_count_indirect_symbols): New. | |
905 | (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table. | |
906 | * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the | |
907 | file. (bfd_mach_o_section): Add indirect_syms field. | |
908 | ||
e5081f2f IS |
909 | 2012-01-11 Iain Sandoe <idsandoe@googlemail.com> |
910 | ||
911 | * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of | |
912 | vmsize from filesize. Don't compute offsets or file sizes for | |
913 | zerofill sections. | |
914 | ||
bbd56171 IS |
915 | 2012-01-11 Iain Sandoe <idsandoe@googlemail.com> |
916 | ||
917 | * mach-o.c (bfd_mach_o_build_commands): Make the building of each | |
918 | command type independent. | |
919 | ||
794e51c0 AM |
920 | 2012-01-11 Alan Modra <amodra@gmail.com> |
921 | ||
922 | * elf64-ppc.c: Define more insns used in plt call stubs. | |
923 | (ppc64_elf_brtaken_reloc): Assume isa version 2 or above. | |
924 | (ppc64_elf_relocate_section): Likewise. | |
925 | (enum ppc_stub_type): Add ppc_stub_plt_call_r2save. | |
926 | (struct ppc_link_hash_table): Increase size of stub_count array. | |
927 | Add plt_stub_align and plt_thread_safe. | |
928 | (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define. | |
929 | (plt_stub_size, plt_stub_pad): New functions. | |
930 | (build_plt_stub): Emit barriers for power7 thread safety. Don't | |
931 | emit needless save of r2. | |
932 | (build_tls_get_addr_stub): Adjust params. | |
933 | (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning | |
934 | plt stubs. Adjust build_*plt_stub calls. | |
935 | (ppc_size_one_stub): Similarly. | |
936 | (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align | |
937 | params. Choose default for plt_thread_safe based on existence of | |
938 | calls to thread creation functions. Modify plt_call to | |
939 | plt_call_r2save when no tocsave reloc found. Align tail of stub | |
940 | sections. | |
941 | (ppc64_elf_build_stubs): Align tail of stub sections. Adjust | |
942 | output of stub statistics. | |
943 | (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save. | |
944 | * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype. | |
945 | ||
df4f9443 L |
946 | 2012-01-10 H.J. Lu <hongjiu.lu@intel.com> |
947 | ||
948 | PR ld/13581 | |
949 | * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P | |
950 | check on R_X86_64_PCXX. | |
951 | ||
2a65a88e TG |
952 | 2012-01-10 Tristan Gingold <gingold@adacore.com> |
953 | ||
954 | * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false | |
955 | warning. | |
956 | ||
660722b0 TG |
957 | 2012-01-10 Tristan Gingold <gingold@adacore.com> |
958 | ||
959 | * bfdio.c (bfd_tell): Handle nested archives. | |
960 | (bfd_seek): Ditto. | |
961 | * cache.c (bfd_cache_lookup_worker): Ditto. | |
962 | * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with | |
963 | nested archives. | |
964 | (bfd_generic_openr_next_archived_file): Likewise. | |
965 | ||
b22161d6 IS |
966 | 2012-01-09 Iain Sandoe <idsandoe@googlemail.com> |
967 | ||
968 | * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement. | |
969 | (bfd_mach_o_write_symtab): Remove handling for indirect syms. | |
970 | (bfd_mach_o_primary_symbol_sort_key): Likewise. | |
971 | (bfd_mach_o_cf_symbols): Likewise. | |
972 | (bfd_mach_o_sort_symbol_table): Remove. | |
973 | (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling | |
974 | for indirect and dysymtab counts. Do the symbol sorting here. | |
975 | (bfd_mach_o_build_dysymtab_command): Count the symbol types here. | |
976 | Make the indirect symbols a TODO. | |
977 | (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols. | |
978 | (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with | |
979 | a non-zero value. | |
980 | (bfd_mach_o_read_symtab_symbol): Record the symbol index. | |
981 | (bfd_mach_o_read_symtab_symbol): Adjust recording of global status. | |
982 | * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries. | |
983 | (IS_MACHO_INDIRECT): Remove. | |
984 | (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New. | |
985 | ||
28a1b4f8 NC |
986 | 2012-01-06 Nick Clifton <nickc@redhat.com> |
987 | ||
988 | PR binutils/13121 | |
989 | * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to | |
990 | 'flaginfo' to avoid conflicts with AIX system headers. | |
991 | ||
36f0a48f TG |
992 | 2012-01-06 Tristan Gingold <gingold@adacore.com> |
993 | ||
994 | * bfdio.c (bfd_bread): Use arelt_size macro. | |
995 | ||
76d4c1cb TG |
996 | 2012-01-06 Tristan Gingold <gingold@adacore.com> |
997 | ||
998 | * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs. | |
999 | ||
a1c7aafb NC |
1000 | 2012-01-05 Nick Clifton <nickc@redhat.com> |
1001 | ||
1002 | PR ld/12161 | |
1003 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if | |
1004 | necessary. | |
1005 | ||
e85c6a70 JK |
1006 | 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com> |
1007 | ||
1008 | Fix zero registers core files when built by gcc-4.7. | |
1009 | * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and | |
1010 | size. Call elfcore_write_note for the local variables. Remove the | |
1011 | final elfcore_write_note call. Add NOTREACHED comments. | |
1012 | ||
15bbba8d TG |
1013 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
1014 | ||
1015 | * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function. | |
1016 | (bfd_mach_o_generic_stat_arch_elt): Adjust. | |
1017 | ||
a4e241ca TG |
1018 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
1019 | ||
1020 | * mach-o.c (bfd_mach_o_fat_member_init): New function. | |
1021 | (bfd_mach_o_openr_next_archived_file): Reindent. | |
1022 | Adjust to call bfd_mach_o_fat_member_init. | |
1023 | (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init. | |
1024 | ||
71141310 TG |
1025 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
1026 | ||
1027 | * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle | |
1028 | BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1, | |
1029 | BFD_RELOC_MACH_O_X86_64_PCREL32_2, | |
1030 | BFD_RELOC_MACH_O_X86_64_PCREL32_4, | |
1031 | BFD_RELOC_MACH_O_X86_64_BRANCH32, | |
1032 | BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32, | |
1033 | BFD_RELOC_MACH_O_X86_64_GOT. | |
1034 | ||
9f4a5bd1 TG |
1035 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
1036 | ||
1037 | * mach-o.h (bfd_mach_o_fvmlib_command): New structure. | |
1038 | (bfd_mach_o_load_command): Add fvmlib field. | |
1039 | ||
1040 | * mach-o.c (bfd_mach_o_read_fvmlib): New function. | |
1041 | (bfd_mach_o_read_command): Handle fvmlib. | |
1042 | ||
0b2de107 TG |
1043 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
1044 | ||
1045 | * mach-o.c (bfd_mach_o_convert_architecture): Reindent. | |
1046 | Decode msubtype for ARM. | |
1047 | ||
aeefa1c9 TG |
1048 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
1049 | ||
1050 | * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments. | |
1051 | ||
fc55a902 TG |
1052 | 2012-01-04 Tristan Gingold <gingold@adacore.com> |
1053 | ||
1054 | * mach-o.h: Reindent header. | |
1055 | (bfd_mach_o_encryption_info_command): New structure. | |
1056 | (bfd_mach_o_load_command): Add encryption_info field. | |
1057 | ||
1058 | * mach-o.c (bfd_mach_o_read_encryption_info): New function. | |
1059 | (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO. | |
1060 | (bfd_mach_o_read_command): Adjust error message. | |
1061 | ||
2ca7691a TG |
1062 | 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com> |
1063 | ||
1064 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part | |
1065 | which reads DWARF2 and stores in stash from find_line. | |
1066 | (find_line) Call _bfd_dwarf2_slurp_debug_info. | |
1067 | * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration. | |
1068 | * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate. | |
1069 | * mach-o.c (dsym_subdir): The name of subdir where debug | |
1070 | information may be stored. | |
1071 | (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose | |
1072 | type is UUID. | |
1073 | (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is | |
1074 | corresponding to the executable. | |
1075 | (bfd_mach_o_find_dsym): New. Find a debug information BFD in the | |
1076 | specified binary file. | |
1077 | (bfd_mach_o_follow_dsym): New. Find a debug information BFD for | |
1078 | the original BFD. | |
1079 | (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O | |
1080 | executables, dylibs, and bundles. | |
1081 | (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file. | |
1082 | * mach-o.h (dsym_bfd): The BFD of the dSYM file. | |
1083 | ||
68588f95 IS |
1084 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
1085 | ||
1086 | * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index | |
1087 | for stabd symbols. | |
1088 | (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs. | |
1089 | (bfd_mach_o_cf_symbols): Likewise. | |
1090 | ||
f2b324f1 IS |
1091 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
1092 | ||
1093 | * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo. | |
1094 | ||
7f307238 IS |
1095 | 2012-01-03 Iain Sandoe <idsandoe@googlemail.com> |
1096 | ||
1097 | * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index | |
1098 | as the value of an indirect symbol. Keep the string table index in | |
1099 | non-indirect syms for reference. | |
1100 | (bfd_mach_o_write_dysymtab): New. | |
1101 | (bfd_mach_o_primary_symbol_sort_key): New. | |
1102 | (bfd_mach_o_cf_symbols): New. | |
1103 | (bfd_mach_o_sort_symbol_table): New. | |
1104 | (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols. | |
1105 | If we are emitting a dysymtab, process indirect symbols and count the | |
1106 | number of each other kind. | |
1107 | (bfd_mach_o_mangle_sections): New. | |
1108 | (bfd_mach_o_write_contents): Split out some pre-requisite code into | |
1109 | the command builder. Write dysymtab if the command is present. | |
1110 | (bfd_mach_o_count_sections_for_seg): New. | |
1111 | (bfd_mach_o_build_seg_command): New. | |
1112 | (bfd_mach_o_build_dysymtab_command): New. | |
1113 | (bfd_mach_o_build_commands): Reorganize to support the fact that some | |
1114 | commands are optional and should not be emitted if there are no | |
1115 | sections or symbols. | |
1116 | (bfd_mach_o_set_section_contents): Amend comment. | |
23e1d329 | 1117 | * mach-o.h: Amend and add to comments. |
7f307238 IS |
1118 | (mach_o_data_struct): Add fields for dysymtab symbols counts and a |
1119 | pointer to the indirects, when present. | |
1120 | (bfd_mach_o_should_emit_dysymtab): New macro. | |
1121 | (IS_MACHO_INDIRECT): Likewise. | |
1122 | ||
23e1d329 | 1123 | For older changes see ChangeLog-2011 |
56882138 AM |
1124 | \f |
1125 | Local Variables: | |
1126 | mode: change-log | |
1127 | left-margin: 8 | |
1128 | fill-column: 74 | |
1129 | version-control: never | |
1130 | End: |