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