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