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