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