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