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