Check gdbarch_ptr_bit for x32 core dump
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
99700d6f
NC
12012-05-11 Georg-Johann Lay <avr@gjlay.de
2
3 PR target/13503
4 * reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
5 BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
6 * bfd-in2.h: Regenerate.
7 * libbfd.h: Regenrate.
8 * elf32-avr.c (elf_avr_howto_table): Add entries for
9 R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
10 (avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
11 R_AVR_8_HHI8.
12
268a8d3a
L
132012-05-10 H.J. Lu <hongjiu.lu@intel.com>
14
15 * elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32
16 addend overflow check.
17
74b1e045
DD
182012-05-10 DJ Delorie <dj@redhat.com>
19
20 * elf32-rx.c (rx_elf_object_p): Ignore empty segments.
21
6f2c9068
L
222012-05-10 H.J. Lu <hongjiu.lu@intel.com>
23
24 * elf64-x86-64.c (elf_x86_64_relocate_section): Display signed
25 hex number in x32 addend overflow check.
26
1da80baa
L
272012-05-10 H.J. Lu <hongjiu.lu@intel.com>
28
29 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
30 R_X86_64_RELATIVE64.
31
8cf0d2dd
L
322012-05-09 H.J. Lu <hongjiu.lu@intel.com>
33
34 * elf64-x86-64.c (elf_x86_64_relocate_section): Check addend
35 overflow for R_X86_64_RELATIVE64.
36
2d16d28e
DK
372012-05-08 Ben Cheng <bccheng@google.com>
38
39 * bfd/elf.c: Preserve the original p_align and p_flags if they are
40 valid.
41
2de5d135
AM
422012-05-07 Alan Modra <amodra@gmail.com>
43
44 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
45 RELOC_AGAINST_DISCARDED_SECTION invocation.
46
a134cc9b
HPN
472012-05-07 Hans-Peter Nilsson <hp@axis.com>
48
49 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
50 local variable i_ instead of assuming and using a variable i.
51
545fd46b
MR
522012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
53
54 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
55 relocations.
56 * elfxx-mips.c (mips_reloc_against_discarded_section): New
57 function.
58 (_bfd_mips_elf_relocate_section): Call it, in place of
59 RELOC_AGAINST_DISCARDED_SECTION.
60 * elf-m10200.c (mn10200_elf_relocate_section): Update arguments
61 to RELOC_AGAINST_DISCARDED_SECTION.
62 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
63 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
64 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
65 * elf32-bfin.c (bfin_relocate_section): Likewise.
66 (bfinfdpic_relocate_section): Likewise.
67 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
68 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
69 * elf32-cris.c (cris_elf_relocate_section): Likewise.
70 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
71 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
72 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
73 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
74 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
75 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
76 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
77 * elf32-i370.c (i370_elf_relocate_section): Likewise.
78 * elf32-i386.c (elf_i386_relocate_section): Likewise.
79 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
80 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
81 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
82 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
83 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
84 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
85 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
86 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
87 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
88 * elf32-mep.c (mep_elf_relocate_section): Likewise.
89 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
90 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
91 * elf32-mt.c (mt_elf_relocate_section): Likewise.
92 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
93 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
94 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
95 * elf32-rx.c (rx_elf_relocate_section): Likewise.
96 * elf32-s390.c (elf_s390_relocate_section): Likewise.
97 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
98 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
99 * elf32-sh.c (sh_elf_relocate_section): Likewise.
100 * elf32-spu.c (spu_elf_relocate_section): Likewise.
101 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
102 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
103 * elf32-v850.c (v850_elf_relocate_section): Likewise.
104 * elf32-vax.c (elf_vax_relocate_section): Likewise.
105 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
106 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
107 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
108 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
109 (elf64_alpha_relocate_section): Likewise.
110 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
111 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
112 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
113 * elf64-s390.c (elf_s390_relocate_section): Likewise.
114 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
115 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
116 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
117 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
118 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
119
62ab84ec
AM
1202012-05-05 Alan Modra <amodra@gmail.com>
121
122 PR ld/14052
123 PR ld/13621
124 * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
125
45dfa85a
AM
1262012-05-05 Alan Modra <amodra@gmail.com>
127
128 * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
129 bfd_und_section and bfd_ind_section with their _ptr variants, or
130 use corresponding bfd_is_* macros.
131 * aout-ns32k.c: Likewise.
132 * aout-tic30.c: Likewise.
133 * coff-arm.c: Likewise.
134 * coff-tic54x.c: Likewise.
135 * cpu-ns32k.c: Likewise.
136 * elf-attrs.c: Likewise.
137 * elfcode.h: Likewise.
138 * peicode.h: Likewise.
139 * reloc.c: Likewise.
140 * riscix.c: Likewise.
141 * versados.c: Likewise.
142 * section.c: Likewise.
143 (bfd_abs_section, bfd_ind_section, bfd_com_section,
144 bfd_ind_section): Delete.
145 (std_section): New array replacing above.
146 (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr,
147 bfd_ind_section_ptr, STD_SECTION): Update.
148 (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts.
36ab465d 149 * bfd-in2.h: Regenerate.
45dfa85a 150
f6c1a2d5
NC
1512012-05-03 Sean Keys <skeys@ipdatasys.com>
152
153 * cpu-xgate.c: New file. Added XGATE support.
154 * archures.c (bfd_architecture): Add XGATE architecture.
155 (bfd_archures_list): Add reference to XGATE architecture info.
156 * elf-bfd.h (prep_headers): Handle bfd_arch_xgate.
157 * reloc.c: Add various XGATE relocation enums.
158 * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector
159 list.
160 * Makefile.am: Add support for XGATE elf.
161 * configure.in: Ditto.
162 * config.bfd: Ditto.
163 * Makefile.in: Regenerate.
164 * configure: Ditto.
165 * bfd-in2.h: Ditto.
166 * libbfd.h: Ditto.
167 Added files for XGATE relocations.
168 * elf32-xgate.c: Created minimal relocation file.
169 * elf32-xgate.h: Created minimal header file for elf32-xgate.
170
fec16237
TG
1712012-05-03 Tristan Gingold <gingold@adacore.com>
172
173 * dwarf2.c (decode_line_info): Ignore
174 DW_LNE_HP_source_file_correlation.
175
57402f1e
NC
1762012-05-01 Nick Clifton <nickc@redhat.com>
177
178 PR binutils/13121
179 * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with
180 AIX system headers.
181 * coff-ppc.c: Likewise.
182 * cofflink.c: Likewise.
183 * elf32-arm.c: Likewise.
184 * elf64-sparc.c: Likewise.
185 * elflink.c: Likewise.
186 * pdp11.c: Likewise.
187 * rescoff.c: Likewise.
188
c49ead2f
MW
1892012-04-26 Mark Wielaard <mjw@redhat.com>
190
191 * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc
192 possibly being relative to DW_AT_low_pc.
193 (parse_comp_unit): Likewise.
194
cab0ad83
AS
1952012-04-26 Andreas Schwab <schwab@linux-m68k.org>
196
197 * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references
198 also when generating PIE.
199 (elf_m68k_discard_copies): Mark undefined weak symbols referenced
200 by relocations as dynamic.
201
2b56b3f3
HPN
2022012-04-26 Hans-Peter Nilsson <hp@axis.com>
203
204 Provide a way for programs to recognize BFD_ASSERT calls.
205 * bfd.c (bfd_assert_handler_type): New API type.
206 (bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
207 (_bfd_assert_handler): New variable.
208 (_bfd_default_assert_handler): New function.
209 (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
210 * libbfd-in.h (_bfd_assert_handler): Declare.
211 * libbfd.h, bfd-in2.h: Regenerate.
212
27586251
HPN
2132012-04-24 Hans-Peter Nilsson <hp@axis.com>
214
215 PR ld/13990
216 * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local
217 symbol, where PLT refcount is set to -1.
218
dbaa2011
AM
2192012-04-24 Alan Modra <amodra@gmail.com>
220
221 PR ld/13991
222 * bfd/elf-bfd.h (_bfd_elf_link_just_syms): Define as
223 _bfd_generic_link_just_syms.
224 * bfd/elflink.c (_bfd_elf_link_just_syms): Delete.
225 * bfd/linker.c (_bfd_generic_link_just_syms): Set sec_info_type.
226
227 * bfd/bfd-in.h (discarded_section): Renamed from elf_discarded_section.
228 * bfd/section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS,
229 SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME,
230 SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE.
231 * bfd/elf-eh-frame.c, * bfd/elf-m10200.c, * bfd/elf-m10300.c,
232 * bfd/elf.c, * bfd/elf32-arm.c, * bfd/elf32-avr.c, * bfd/elf32-bfin.c,
233 * bfd/elf32-cr16.c, * bfd/elf32-cr16c.c, * bfd/elf32-cris.c,
234 * bfd/elf32-crx.c, * bfd/elf32-d10v.c, * bfd/elf32-epiphany.c,
235 * bfd/elf32-fr30.c, * bfd/elf32-frv.c, * bfd/elf32-h8300.c,
236 * bfd/elf32-hppa.c, * bfd/elf32-i370.c, * bfd/elf32-i386.c,
237 * bfd/elf32-i860.c, * bfd/elf32-ip2k.c, * bfd/elf32-iq2000.c,
238 * bfd/elf32-lm32.c, * bfd/elf32-m32c.c, * bfd/elf32-m32r.c,
239 * bfd/elf32-m68hc1x.c, * bfd/elf32-m68k.c, * bfd/elf32-mcore.c,
240 * bfd/elf32-mep.c, * bfd/elf32-moxie.c, * bfd/elf32-msp430.c,
241 * bfd/elf32-mt.c, * bfd/elf32-openrisc.c, * bfd/elf32-ppc.c,
242 * bfd/elf32-rl78.c, * bfd/elf32-rx.c, * bfd/elf32-s390.c,
243 * bfd/elf32-score.c, * bfd/elf32-score7.c, * bfd/elf32-sh.c,
244 * bfd/elf32-spu.c, * bfd/elf32-tic6x.c, * bfd/elf32-tilepro.c,
245 * bfd/elf32-v850.c, * bfd/elf32-vax.c, * bfd/elf32-xc16x.c,
246 * bfd/elf32-xstormy16.c, * bfd/elf32-xtensa.c, * bfd/elf64-alpha.c,
247 * bfd/elf64-hppa.c, * bfd/elf64-ia64-vms.c, * bfd/elf64-mmix.c,
248 * bfd/elf64-ppc.c, * bfd/elf64-s390.c, * bfd/elf64-sh64.c,
249 * bfd/elf64-x86-64.c, * bfd/elflink.c, * bfd/elfnn-ia64.c,
250 * bfd/elfxx-mips.c, * bfd/elfxx-sparc.c, * bfd/elfxx-tilegx.c,
251 * bfd/reloc.c: Update all references.
252 * bfd/bfd-in2.h: Regenerate.
253
87049b0d
AK
2542012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
255
256 * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
257 * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
258
85e02784
TS
2592012-04-19 Thomas Schwinge <thomas@codesourcery.com>
260
261 * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
262 got_type.
263 (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
264 it.
265
87458ed2
KK
2662012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
267
268 * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
269 relocations when LE conversion happens on the IE tls symbol.
270
ea2d813e
RM
2712012-04-17 Roland McGrath <mcgrathr@google.com>
272
273 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
274 so that 32-byte boundary is a proper instruction boundary.
275
da03bf4d
TG
2762012-04-17 Tristan Gingold <gingold@adacore.com>
277
278 * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
279 member of an object archive.<
280
d2226024
TG
2812012-04-17 Tristan Gingold <gingold@adacore.com>
282
283 * vms-lib.c (MAX_EKEYLEN): Define.
284 (MAX_KEYLEN): Fix value.
285 (vms_write_index): Add comments and fix indentation.
286 Adjust comparaison. Add assertions. Free kbn_blk.
287 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
288 Compense MAX_KEYLEN adjustment.
289
cb4437b8
MR
2902012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
291
292 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
293 (_bfd_mips_elf_check_relocs): Update accordingly.
294
aed64b35
L
2952012-04-13 Alan Modra <amodra@gmail.com>
296
297 PR ld/13947
298 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
299 reloc sections.
300
2615994e
DM
3012012-04-12 David S. Miller <davem@davemloft.net>
302
303 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
304 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
305 * libbfd.h: Regenerate.
306 * bfd-in2.h: Likewise.
307 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
308 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
309 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
310 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
311 (_bfd_sparc_elf_check_relocs): Likewise.
312 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
313 (_bfd_sparc_elf_relocate_section): Likewise.
314
b38cadfb
NC
3152012-04-12 Roland McGrath <mcgrathr@google.com>
316
317 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
318 New variables.
319 (struct elf32_arm_link_hash_table): New member `nacl_p'.
320 (elf32_arm_link_hash_table_create): Initialize it.
321 (elf32_arm_nacl_link_hash_table_create): New function.
322 (arm_movw_immediate, arm_movt_immediate): New functions.
323 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
324 (elf32_arm_finish_dynamic_sections): Likewise.
325 (elf32_arm_output_plt_map_1): Likewise.
326 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
327 New backend vector stanza.
328 (elf32_arm_nacl_modify_segment_map): New function.
329 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
330 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
331 * configure.in: Likewise.
332 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
333 (bfd_elf32_littlearm_nacl_vec): Likewise.
334 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
335 (bfd_elf32_bigarm_symbian_vec): Likewise.
336 (bfd_elf32_littlearm_symbian_vec): Likewise.
337 (bfd_elf32_bigarm_vxworks_vec): Likewise.
338 (bfd_elf32_littlearm_vxworks_vec): Likewise.
339 * configure: Regenerated.
340
202e2356
NC
3412012-04-12 Tristan Gingold <gingold@adacore.com>
342
343 * elflink.c (elf_link_output_extsym): Add a guard.
344 (bfd_elf_final_link): Remove assertion.
345 (bfd_elf_final_link): Add a guard.
346 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
347 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
348 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
349 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
350 Remove.
351 (elfNN-ia64-vms target): Move to ...
352 * elf64-ia64-vms.c: New file.
353 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
354 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
355 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
356 * configure: Regenerate.
357 * Makefile.in: Regenerate.
358
4841cf0c
NC
3592012-04-11 Nick Clifton <nickc@redhat.com>
360
361 PR binutils/13897
362 * elf64-ppc.c (opd_entry_value): When dealing with sections
363 without relocs, keep the last section loaded in order to avoid
364 unnecessary reloads.
365
d324f6d6
RM
3662012-04-09 Roland McGrath <mcgrathr@google.com>
367
368 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
369 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
370 (nacl_modify_program_headers): Likewise.
371
5a68afcf
RM
3722012-04-03 Roland McGrath <mcgrathr@google.com>
373
374 * elf-nacl.c: New file.
375 * elf-nacl.h: New file.
376 * elf32-i386.c (elf_backend_modify_segment_map): Define for
377 bfd_elf32_i386_nacl_vec.
378 (elf_backend_modify_program_headers): Likewise.
379 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
380 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
381 (elf_backend_modify_program_headers): Likewise.
382 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
383 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
384 * Makefile.in: Regenerated.
385 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
386 (bfd_elf32_x86_64_nacl_vec): Likewise.
387 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
388 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
389 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
390 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
391 (bfd_elf32_i386_nacl_vec): Likewise.
392 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
393 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
394 * configure: Regenerated.
395
3a4ae681
AS
3962012-03-31 Andreas Schwab <schwab@linux-m68k.org>
397
398 * elf32-m68k.c (elf_m68k_relocate_section): Allow
399 R_68K_TLS_LE{8,16,32} for PIE.
400
a7e28bbe
AK
4012012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
402
403 * elf64-s390.c: Fix several comments regarding PLT entry
404 description.
405 * elf32-s390.c: Likewise.
406
f41345a7
AK
4072012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
408
409 * elf64-s390.c: Use the section pointer shortcuts in
410 elf_link_hash_table and remove them from the target specific
411 variant.
412 * elf32-s390.c: Likewise.
413
9aa17453
AK
4142012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
415
416 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
417 New definitions.
418 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
419 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
420 (elf_s390_finish_dynamic_sections): Likewise.
421 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
422 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
423 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
424 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
425 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
426
00d8c7a9
AK
4272012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
428
429 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
430 Rename all occurrences in the file to elf_dyn_relocs.
431 * elf64-s390.c: Likewise.
432
a66eed7a
AM
4332012-03-30 Alan Modra <amodra@gmail.com>
434
435 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
436 libraries.
437
f67f98b5
AM
4382012-03-29 Alan Modra <amodra@gmail.com>
439
440 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
441 * bfd-in2.h: Regenerate.
442
e8d2ba53
AM
4432012-03-23 Alan Modra <amodra@gmail.com>
444
445 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
446 on empty alloc sections.
447
051d833a
AM
4482012-03-23 Alan Modra <amodra@gmail.com>
449
450 * linker.c (_bfd_nearby_section): New function, split out from..
451 (fix_syms): ..here.
452 * bfd-in.h (_bfd_nearby_section): Declare.
453 * bfd-in2.h: Regenerate.
454 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
455 data_index_section with ld -q or ld -r output relocs against
456 stripped output sections. Instead use _bfd_nearby_section.
457
62599110
AM
4582012-03-23 Alan Modra <amodra@gmail.com>
459
460 PR binutils/13894
461 * elf64-ppc.c (opd_entry_value): Read full symbol table when
462 sym hashes unavailable.
463
b781d74f
JM
4642012-03-21 Eliot Dresselhaus <eliot@sonic.net>
465
466 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
467 for non-C6X objects.
468
17d5dae2
KT
4692012-03-20 Kai Tietz <ktietz@redhat.com>
470
471 PR ld/12742
472 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
473 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
474 Add windows.h header include if HAVE_WINDOWS_H is defined.
475 (dlerror): New static function if windows variant is used instead
476 of dlfcn.h.
477 (dlclose): Likewise.
478 (dlopen): Likewise.
479 (dlsym): Likewise.
480 * configure: Regenerated.
481 * config.in: Regenerated.
482
bdb892b9
L
4832012-03-20 H.J. Lu <hongjiu.lu@intel.com>
484
485 PR ld/13880
486 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
487 for R_386_GOTOFF relocation against protected function if
488 SYMBOLIC_BIND is true.
489
490 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
491 error for R_X86_64_GOTOFF64 relocation against protected function
492 when building executable or SYMBOLIC_BIND is true.
493
8059fb19
RM
4942012-03-16 Roland McGrath <mcgrathr@google.com>
495
496 * config.bfd: Handle x86_64-*-nacl*.
497 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
498 (bfd_elf32_x86_64_nacl_vec): Likewise.
499 * targets.c: Support them.
500 * configure.in: Likewise.
501 * configure: Regenerated.
502
ac56ee8f
MGD
5032012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
504
505 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
506 (elf32_arm_attributes_forbid_div): Likewise.
507 (elf32_arm_merge_eabi_attributes): Correct handling of
508 Tag_DIV_use.
509
eed180f8
RM
5102012-03-15 Roland McGrath <mcgrathr@google.com>
511
a4456d24
RM
512 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
513 elf_x86_64_backend_data parameters for plt_eh_frame.
514
eed180f8
RM
515 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
516 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
517 (elf_x86_64_arch_bed): New variable.
518 (elf_backend_arch_data): New macro.
519 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
520 (elf_x86_64_allocate_dynrelocs): Likewise.
521 (elf_x86_64_relocate_section): Likewise.
522 (elf_x86_64_plt_sym_val): Likewise.
523 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
524 parameters for PLT details.
525 (elf_x86_64_finish_dynamic_sections): Likewise.
526
caa0075c
RM
5272012-03-14 Roland McGrath <mcgrathr@google.com>
528
529 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
530 to the full size, padding out with nop instructions.
531
1d7e9d18
AM
5322012-03-12 Alan Modra <amodra@gmail.com>
533
534 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
535 on zero size dynbss symbol.
536 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
537 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
538 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
539 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
540 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
541 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
542 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
543 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
544 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
545 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
546 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
547 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
548 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
549 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
550 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
551 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
552 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
553 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
554 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
555 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
556 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
557
aea77599
AM
5582012-03-10 Edmar Wienskoski <edmar@freescale.com>
559
560 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
561 * bfd-in2.h: Regenerate.
562 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
563 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
564
56b8aada
L
5652012-03-09 H.J. Lu <hongjiu.lu@intel.com>
566
567 PR ld/13817
568 * bfd/elf32-i386.c (elf_i386_relocate_section): Restore
569 R_386_IRELATIVE.
570
571 * * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
572 R_X86_64_IRELATIVE.
573
460f1cdc
TG
5742012-03-08 Tristan Gingold <gingold@adacore.com>
575
576 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
577 keylen according to archive kind. Set nextvbn and nextrfa lhd
578 fields. Add comments.
579
0a22ae8e
NC
5802012-03-07 Nick Clifton <nickc@redhat.com>
581
582 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
583 field.
584 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
585 (elf_mn10300_tdata): Define.
586 (elf_mn10300_local_got_tls_type): Define.
587 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
588 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
589 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
590 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
591 (mn10300_reloc_map): Likewise.
592 (elf_mn10300_tls_transition): New function.
593 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
594 (mn10300_elf_check_relocs): Add TLS support.
595 (mn10300_elf_final_link_relocate): Likewise.
596 (mn10300_elf_relocate_section): Likewise.
597 (mn10300_elf_relax_section): Likewise.
598 (elf32_mn10300_link_hash_newfunc): Initialise new field.
599 (_bfd_mn10300_copy_indirect_symbol): New function.
600 (elf32_mn10300_link_hash_table_create): Initialise new fields.
601 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
602 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
603 (_bfd_mn10300_elf_reloc_type_class): Allocate an
604 elf_mn10300_obj_tdata structure.
605 (elf_backend_copy_indirect_symbol): Define.
606 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
607 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
608 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
609 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
610 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
611 alongside other MN10300 relocations.
612 * bfd-in2.h: Regenerate.
613 * libbfd.h: Regenerate.
614
3ce231f8
JJ
6152012-03-06 Jakub Jelinek <jakub@redhat.com>
616
617 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
618 set relocate to TRUE.
619
0bef263a
RO
6202012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
621
622 PR ld/12152
623 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
624 overflows for R_SPARC_UA32 in .stab sections.
625
84abc003
AM
6262012-03-01 Alan Modra <amodra@gmail.com>
627
628 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
629
3d301fdc
AM
6302012-02-27 Alan Modra <amodra@gmail.com>
631
632 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
633 before calling elf specific function.
634 (sh_elf_osec_readonly_p): Test for error return from above.
635
cb83c803
AM
6362012-02-27 Alan Modra <amodra@gmail.com>
637
638 * elf32-spu.c (build_stub): Fix malloc under-allocation.
639
6f7be959
WL
6402012-02-25 Walter Lee <walt@tilera.com>
641 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
642 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
643 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
644 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
645 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
646 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
647 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
648 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
649 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
650 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
651 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
652 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
653 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
654 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
655 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
656 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
657 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
658 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
659 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
660 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
661 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
662 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
663 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
664 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
665 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
666 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
667 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
668 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
669 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
670 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
671 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
672 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
673 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
674 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
675 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
676 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
677 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
678 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
679 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
680 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
681 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
682 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
683 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
684 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
685 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
686 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
687 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
688 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
689 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
690 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
691 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
692 relocations.
693 (tilepro_reloc_map): Ditto.
694 (tilepro_info_to_howto_rela): Ditto.
695 (reloc_to_create_func): Ditto.
696 (tilepro_tls_translate_to_le): New.
697 (tilepro_tls_translate_to_ie): New.
698 (tilepro_elf_tls_transition): New.
699 (tilepro_elf_check_relocs): Handle new tls relocations.
700 (tilepro_elf_gc_sweep_hook): Ditto.
701 (allocate_dynrelocs): Ditto.
702 (tilepro_elf_relocate_section): Ditto.
703 (tilepro_replace_insn): New.
704 (insn_mask_X1): New.
705 (insn_mask_X0_no_dest_no_srca): New
706 (insn_mask_X1_no_dest_no_srca): New
707 (insn_mask_Y0_no_dest_no_srca): New
708 (insn_mask_Y1_no_dest_no_srca): New
709 (srca_mask_X0): New
710 (srca_mask_X1): New
711 (insn_tls_le_move_X1): New
712 (insn_tls_le_move_zero_X0X1): New
713 (insn_tls_ie_lw_X1): New
714 (insn_tls_ie_add_X0X1): New
715 (insn_tls_ie_add_Y0Y1): New
716 (insn_tls_gd_add_X0X1): New
717 (insn_tls_gd_add_Y0Y1): New
718 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
719 relocations.
720 (tilegx_reloc_map): Ditto.
721 (tilegx_info_to_howto_rela): Ditto.
722 (reloc_to_create_func): Ditto.
723 (tilegx_elf_link_hash_table): New field disable_le_transition.
724 (tilegx_tls_translate_to_le): New.
725 (tilegx_tls_translate_to_ie): New.
726 (tilegx_elf_tls_transition): New.
727 (tilegx_elf_check_relocs): Handle new tls relocations.
728 (tilegx_elf_gc_sweep_hook): Ditto.
729 (allocate_dynrelocs): Ditto.
730 (tilegx_elf_relocate_section): Ditto.
731 (tilegx_copy_bits): New.
732 (tilegx_replace_insn): New.
733 (insn_mask_X1): New.
734 (insn_mask_X0_no_dest_no_srca): New.
735 (insn_mask_X1_no_dest_no_srca): New.
736 (insn_mask_Y0_no_dest_no_srca): New.
737 (insn_mask_Y1_no_dest_no_srca): New.
738 (insn_mask_X0_no_operand): New.
739 (insn_mask_X1_no_operand): New.
740 (insn_mask_Y0_no_operand): New.
741 (insn_mask_Y1_no_operand): New.
742 (insn_tls_ie_ld_X1): New.
743 (insn_tls_ie_ld4s_X1): New.
744 (insn_tls_ie_add_X0X1): New.
745 (insn_tls_ie_add_Y0Y1): New.
746 (insn_tls_ie_addx_X0X1): New.
747 (insn_tls_ie_addx_Y0Y1): New.
748 (insn_tls_gd_add_X0X1): New.
749 (insn_tls_gd_add_Y0Y1): New.
750 (insn_move_X0X1): New.
751 (insn_move_Y0Y1): New.
752 (insn_add_X0X1): New.
753 (insn_add_Y0Y1): New.
754 (insn_addx_X0X1): New.
755 (insn_addx_Y0Y1): New.
756 * libbfd.h: Regenerate.
757 * bfd-in2.h: Regenerate.
758
82590249
WL
7592012-02-25 Walter Lee <walt@tilera.com>
760
fb6cedde
WL
761 * config.bfd (tilegx-*-*): rename little endian vector; add big
762 endian vector.
763 (tilegxbe-*-*): New case.
764 * configure.in (bfd_elf32_tilegx_vec): Rename...
765 (bfd_elf32_tilegx_le_vec): ... to this.
766 (bfd_elf32_tilegx_be_vec): New vector.
767 (bfd_elf64_tilegx_vec): Rename...
768 (bfd_elf64_tilegx_le_vec): ... to this.
769 (bfd_elf64_tilegx_be_vec): New vector.
770 * configure: Regenerate.
771 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
772 (TARGET_LITTLE_NAME): Ditto.
773 (TARGET_BIG_SYM): Define.
774 (TARGET_BIG_NAME): Define.
775 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
776 (TARGET_LITTLE_NAME): Ditto.
777 (TARGET_BIG_SYM): Define.
778 (TARGET_BIG_NAME): Define.
779 * targets.c (bfd_elf32_tilegx_vec): Rename...
780 (bfd_elf32_tilegx_le_vec): ... to this.
781 (bfd_elf32_tilegx_be_vec): Declare.
782 (bfd_elf64_tilegx_vec): Rename...
783 (bfd_elf64_tilegx_le_vec): ... to this.
784 (bfd_elf64_tilegx_be_vec): Declare.
785 (_bfd_target_vector): Add / rename above vectors.
82590249
WL
786 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
787 * bfd-in2.h: Regenerate.
788 * cpu-tilegx.c (bfd_tilegx32_arch): define.
fb6cedde 789 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
82590249 790
4115917d
NC
7912012-02-24 Nick Clifton <nickc@redhat.com>
792
793 PR ld/13730
794 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
795 error message instead of aborting, when an outofrange reloc is
796 encountered.
797
19765f52
IS
7982012-02-23 Iain Sandoe <idsandoe@googlemail.com>
799
800 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
801 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
802 bit-fields when target and host differ in endian-ness. When
803 PAIRs are non-scattered find the 'symbol' from the preceding
804 reloc. Add FIXME re. reloc symbols on section boundaries.
805 (bfd_mach_o_swap_out_non_scattered_reloc): New.
806 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
807
6639d37a
IS
8082012-02-17 Iain Sandoe <idsandoe@googlemail.com>
809
810 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
811 sect-diffs.
812 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
813 (bfd_mach_o_i386_swap_reloc_out): Likewise.
814
e1e81ed3
IS
8152012-02-17 Tristan Gingold <gingold@adacore.com>
816
817 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
818 * libbfd.h: Regenerated.
819 * bfd-in2.h: Likewise.
820 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
821 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
822 (bfd_mach_o_i386_swap_reloc_out): Likewise.
823
d0ddfe27
AK
8242012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
825
826 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
827 GD->LE and LD->LE optimizations.
828
eb8c5f3f
AM
8292012-02-16 Alan Modra <amodra@gmail.com>
830
831 PR binutils/13355
832 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
833
e1741a1e
RH
8342012-02-13 Richard Henderson <rth@redhat.com>
835
836 PR ld/13621
837 * linker.c (fix_syms): Force symbols outside any section into
838 bfd_abs_section_ptr.
839
5efbbc43
AM
8402012-02-13 Alan Modra <amodra@gmail.com>
841
842 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
843 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
844 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
845 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
846
3e3c397d
JK
8472012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
848 Nick Clifton <nickc@redhat.com>
849
850 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
851 memset.
852
09903f4b
IS
8532012-02-10 Iain Sandoe <idsandoe@googlemail.com>
854
855 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
856 vma additions in their logical, rather than physical order.
857
632039e0
IS
8582012-02-10 Iain Sandoe <idsandoe@googlemail.com>
859
860 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
861 parameters.
862 * mach-o-x86-64.c (text_section_names_xlat): New.
863 (mach_o_x86_64_segsec_names_xlat): New.
864 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
865 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
866
565a6476
TG
8672012-02-10 Tristan Gingold <gingold@adacore.com>
868
869 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
870 to avoid infinite loop. Add comments.
871
923f257f
L
8722012-02-09 H.J. Lu <hongjiu.lu@intel.com>
873
874 PR ld/13675
875 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
876 nop instructions.
877 (bfd_arch_i386_short_nop_fill): New.
878 (bfd_arch_i386_long_nop_fill): Likewise.
879 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
880 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
881 bfd_arch_info initializers.
882
883 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
884 (bfd_arch_i386_short_nop_fill): This.
885 Update bfd_arch_info initializers.
886 * cpu-l1om.c: Likewise.
887
4e6b54a6
AM
8882012-02-08 Alan Modra <amodra@gmail.com>
889
890 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
891 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
892 the correct h->u.weakdef.
893
ff9e0f5b
AM
8942012-02-07 Alan Modra <amodra@gmail.com>
895
896 * elf.c (elf_find_function): Don't use internal_elf_sym.
897 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
898 parameter with asymbol.
899 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
900 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
901 (struct elf_backend_data <maybe_function_sym>): Likewise.
902
526f25b2
EW
9032012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
904
905 PR bfd/13410
ff9e0f5b 906 * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the
526f25b2
EW
907 condition that qualifies the candidates for relaxation.
908
7c4f9963
TG
9092012-02-02 Tristan Gingold <gingold@adacore.com>
910
911 * bfdio.c (real_fopen): Remove unused vms_modes variable.
912
facf03f2
TG
9132012-02-02 Tristan Gingold <gingold@adacore.com>
914
915 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
916 variable warning.
917
cd99171c
TG
9182012-02-02 Tristan Gingold <gingold@adacore.com>
919
920 * archive.c (bfd_slurp_armap): Fix thinko in cast.
921
b7761f11
L
9222012-01-31 H.J. Lu <hongjiu.lu@intel.com>
923
924 PR ld/13616
925 * archures.c (bfd_arch_info): Add fill.
926 (bfd_default_arch_struct): Add bfd_arch_default_fill.
927 (bfd_arch_default_fill): New.
928
929 * configure.in: Set bfd version to 2.22.52.
930 * configure: Regenerated.
931
932 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
933 initializer.
934 * cpu-arc.c: Likewise.
935 * cpu-arm.c: Likewise.
936 * cpu-avr.c: Likewise.
937 * cpu-bfin.c: Likewise.
938 * cpu-cr16.c: Likewise.
939 * cpu-cr16c.c: Likewise.
940 * cpu-cris.c: Likewise.
941 * cpu-crx.c: Likewise.
942 * cpu-d10v.c: Likewise.
943 * cpu-d30v.c: Likewise.
944 * cpu-dlx.c: Likewise.
945 * cpu-epiphany.c: Likewise.
946 * cpu-fr30.c: Likewise.
947 * cpu-frv.c: Likewise.
948 * cpu-h8300.c: Likewise.
949 * cpu-h8500.c: Likewise.
950 * cpu-hppa.c: Likewise.
951 * cpu-i370.c: Likewise.
952 * cpu-i860.c: Likewise.
953 * cpu-i960.c: Likewise.
954 * cpu-ia64.c: Likewise.
955 * cpu-ip2k.c: Likewise.
956 * cpu-iq2000.c: Likewise.
957 * cpu-lm32.c: Likewise.
958 * cpu-m10200.c: Likewise.
959 * cpu-m10300.c: Likewise.
960 * cpu-m32c.c: Likewise.
961 * cpu-m32r.c: Likewise.
962 * cpu-m68hc11.c: Likewise.
963 * cpu-m68hc12.c: Likewise.
964 * cpu-m68k.c: Likewise.
965 * cpu-m88k.c: Likewise.
966 * cpu-mcore.c: Likewise.
967 * cpu-mep.c: Likewise.
968 * cpu-microblaze.c: Likewise.
969 * cpu-mips.c: Likewise.
970 * cpu-mmix.c: Likewise.
971 * cpu-moxie.c: Likewise.
972 * cpu-msp430.c: Likewise.
973 * cpu-mt.c: Likewise.
974 * cpu-ns32k.c: Likewise.
975 * cpu-openrisc.c: Likewise.
976 * cpu-or32.c: Likewise.
977 * cpu-pdp11.c: Likewise.
978 * cpu-pj.c: Likewise.
979 * cpu-plugin.c: Likewise.
980 * cpu-powerpc.c: Likewise.
981 * cpu-rl78.c: Likewise.
982 * cpu-rs6000.c: Likewise.
983 * cpu-rx.c: Likewise.
984 * cpu-s390.c: Likewise.
985 * cpu-score.c: Likewise.
986 * cpu-sh.c: Likewise.
987 * cpu-sparc.c: Likewise.
988 * cpu-spu.c: Likewise.
989 * cpu-tic30.c: Likewise.
990 * cpu-tic4x.c: Likewise.
991 * cpu-tic54x.c: Likewise.
992 * cpu-tic6x.c: Likewise.
993 * cpu-tic80.c: Likewise.
994 * cpu-tilegx.c: Likewise.
995 * cpu-tilepro.c: Likewise.
996 * cpu-v850.c: Likewise.
997 * cpu-vax.c: Likewise.
998 * cpu-w65.c: Likewise.
999 * cpu-we32k.c: Likewise.
1000 * cpu-xc16x.c: Likewise.
1001 * cpu-xstormy16.c: Likewise.
1002 * cpu-xtensa.c: Likewise.
1003 * cpu-z80.c: Likewise.
1004 * cpu-z8k.c: Likewise.
1005
1006 * cpu-i386.c: Include "libiberty.h".
ff9e0f5b 1007 (bfd_arch_i386_fill): New.
b7761f11
L
1008 Add bfd_arch_i386_fill to bfd_arch_info initializer.
1009
1010 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
1011 * cpu-l1om.c: Likewise.
1012
ff9e0f5b 1013 * linker.c (default_data_link_order): Call abfd->arch_info->fill
b7761f11
L
1014 if fill size is 0.
1015
1016 * bfd-in2.h: Regenerated.
1017
0d048da3
ME
10182012-01-27 Michael Eager <eager@eagercon.com>
1019
1020 * bfd/elf32-microblaze.c (create_got_section):
1021 Reuse existing .rela.got section.
1022
9f296da3
AM
10232012-01-23 Alan Modra <amodra@gmail.com>
1024
1025 * elf-bfd.h: Formatting.
1026 (struct elf_backend_data): Add "maybe_function_sym".
1027 (_bfd_elf_maybe_function_sym): Declare.
1028 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
1029 (elfNN_bed): Init new field.
1030 * elf.c (elf_find_function): Use maybe_function_sym.
1031 (_bfd_elf_maybe_function_sym): New function.
1032 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
1033 (ppc64_elf_maybe_function_sym): New function.
1034
f1bb16f8
NC
10352012-01-20 Francois Gouget <fgouget@codeweavers.com>
1036
1037 PR binutils/13534
1038 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
1039 pad the size field in an archive header.
1040 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
1041 function for the archive size field.
1042 (bfd_generic_openr_next_archived_file): Likewise.
1043 (do_slurp_coff_armap): Likewise.
1044 (_bfd_write_archive_contents): Likewise.
1045 (_bfd_bsd44_write_ar_hdr): Use the new function.
1046 (bfd_ar_hdr_from_filesystem): Likewise.
1047 (_bfd_write_archive_contents): Likewise.
1048 (bsd_write_armap): Likewise.
1049 (coff_write_armap): Likewise.
1050 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
1051 * bfdio.c (bfd_bread): Use correct type for archive element
1052 sizes.
1053 * ar.c (open_inarch): Likewise.
1054 (extract_file): Likewise.
1055 * libbfd-in.h (struct areltdata): Use correct types for
1056 parsed_size and extra_size fields.
1057 Prototype _bfd_ar_sizepad function.
1058 * libbfd.h: Regenerate.
1059
1f20dca5
UW
10602012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1061
1062 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
1063 Return NULL if core file generation is unsupported.
1064 (elfcore_write_prstatus): Likewise.
1065 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
1066 (elf_backend_write_core_note): Define.
1067
100fc767
TG
10682012-01-19 Tristan Gingold <gingold@adacore.com>
1069
1070 * pef.c: Add a comment.
1071 * xsym.c: Likewise.
1072
75cd47ed
AM
10732012-01-17 Alan Modra <amodra@gmail.com>
1074
1075 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
1076 trailing garbage in the note.
1077 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
1078
8a5dcf53
AM
10792012-01-16 Daniel Green <venix1@gmail.com>
1080
1081 PR ld/13491
1082 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
1083 h->root.type not h->type.
1084 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
1085
bb76d940
IS
10862012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1087
8a5dcf53
AM
1088 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
1089 indirect symbols.
687be931
IS
1090
10912012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1092
1093 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
bb76d940
IS
1094 position from here... to (bfd_mach_o_build_seg_command): Here.
1095
50d10658
IS
10962012-01-12 Iain Sandoe <idsandoe@googlemail.com>
1097
1098 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
1099 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
1100 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
1101 file. (bfd_mach_o_section): Add indirect_syms field.
1102
e5081f2f
IS
11032012-01-11 Iain Sandoe <idsandoe@googlemail.com>
1104
1105 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
1106 vmsize from filesize. Don't compute offsets or file sizes for
1107 zerofill sections.
1108
bbd56171
IS
11092012-01-11 Iain Sandoe <idsandoe@googlemail.com>
1110
1111 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
1112 command type independent.
1113
794e51c0
AM
11142012-01-11 Alan Modra <amodra@gmail.com>
1115
1116 * elf64-ppc.c: Define more insns used in plt call stubs.
1117 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
1118 (ppc64_elf_relocate_section): Likewise.
1119 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
1120 (struct ppc_link_hash_table): Increase size of stub_count array.
1121 Add plt_stub_align and plt_thread_safe.
1122 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
1123 (plt_stub_size, plt_stub_pad): New functions.
1124 (build_plt_stub): Emit barriers for power7 thread safety. Don't
1125 emit needless save of r2.
1126 (build_tls_get_addr_stub): Adjust params.
1127 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
1128 plt stubs. Adjust build_*plt_stub calls.
1129 (ppc_size_one_stub): Similarly.
1130 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
1131 params. Choose default for plt_thread_safe based on existence of
1132 calls to thread creation functions. Modify plt_call to
1133 plt_call_r2save when no tocsave reloc found. Align tail of stub
1134 sections.
1135 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
1136 output of stub statistics.
1137 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
1138 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
1139
df4f9443
L
11402012-01-10 H.J. Lu <hongjiu.lu@intel.com>
1141
1142 PR ld/13581
1143 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
1144 check on R_X86_64_PCXX.
1145
2a65a88e
TG
11462012-01-10 Tristan Gingold <gingold@adacore.com>
1147
1148 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
1149 warning.
1150
660722b0
TG
11512012-01-10 Tristan Gingold <gingold@adacore.com>
1152
1153 * bfdio.c (bfd_tell): Handle nested archives.
1154 (bfd_seek): Ditto.
1155 * cache.c (bfd_cache_lookup_worker): Ditto.
1156 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
1157 nested archives.
1158 (bfd_generic_openr_next_archived_file): Likewise.
1159
b22161d6
IS
11602012-01-09 Iain Sandoe <idsandoe@googlemail.com>
1161
1162 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
1163 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
1164 (bfd_mach_o_primary_symbol_sort_key): Likewise.
1165 (bfd_mach_o_cf_symbols): Likewise.
1166 (bfd_mach_o_sort_symbol_table): Remove.
1167 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
1168 for indirect and dysymtab counts. Do the symbol sorting here.
1169 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
1170 Make the indirect symbols a TODO.
1171 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
1172 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
1173 a non-zero value.
1174 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
1175 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
1176 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
1177 (IS_MACHO_INDIRECT): Remove.
1178 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
1179
28a1b4f8
NC
11802012-01-06 Nick Clifton <nickc@redhat.com>
1181
1182 PR binutils/13121
1183 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
1184 'flaginfo' to avoid conflicts with AIX system headers.
1185
36f0a48f
TG
11862012-01-06 Tristan Gingold <gingold@adacore.com>
1187
1188 * bfdio.c (bfd_bread): Use arelt_size macro.
1189
76d4c1cb
TG
11902012-01-06 Tristan Gingold <gingold@adacore.com>
1191
1192 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
1193
a1c7aafb
NC
11942012-01-05 Nick Clifton <nickc@redhat.com>
1195
1196 PR ld/12161
1197 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
1198 necessary.
1199
e85c6a70
JK
12002012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1201
1202 Fix zero registers core files when built by gcc-4.7.
1203 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
1204 size. Call elfcore_write_note for the local variables. Remove the
1205 final elfcore_write_note call. Add NOTREACHED comments.
1206
15bbba8d
TG
12072012-01-04 Tristan Gingold <gingold@adacore.com>
1208
1209 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
1210 (bfd_mach_o_generic_stat_arch_elt): Adjust.
1211
a4e241ca
TG
12122012-01-04 Tristan Gingold <gingold@adacore.com>
1213
1214 * mach-o.c (bfd_mach_o_fat_member_init): New function.
1215 (bfd_mach_o_openr_next_archived_file): Reindent.
1216 Adjust to call bfd_mach_o_fat_member_init.
1217 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
1218
71141310
TG
12192012-01-04 Tristan Gingold <gingold@adacore.com>
1220
1221 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
1222 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
1223 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
1224 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
1225 BFD_RELOC_MACH_O_X86_64_BRANCH32,
1226 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
1227 BFD_RELOC_MACH_O_X86_64_GOT.
1228
9f4a5bd1
TG
12292012-01-04 Tristan Gingold <gingold@adacore.com>
1230
1231 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
1232 (bfd_mach_o_load_command): Add fvmlib field.
1233
1234 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
1235 (bfd_mach_o_read_command): Handle fvmlib.
1236
0b2de107
TG
12372012-01-04 Tristan Gingold <gingold@adacore.com>
1238
1239 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
1240 Decode msubtype for ARM.
1241
aeefa1c9
TG
12422012-01-04 Tristan Gingold <gingold@adacore.com>
1243
1244 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
1245
fc55a902
TG
12462012-01-04 Tristan Gingold <gingold@adacore.com>
1247
1248 * mach-o.h: Reindent header.
1249 (bfd_mach_o_encryption_info_command): New structure.
1250 (bfd_mach_o_load_command): Add encryption_info field.
1251
1252 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
1253 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
1254 (bfd_mach_o_read_command): Adjust error message.
1255
2ca7691a
TG
12562012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
1257
1258 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
1259 which reads DWARF2 and stores in stash from find_line.
1260 (find_line) Call _bfd_dwarf2_slurp_debug_info.
1261 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
1262 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
1263 * mach-o.c (dsym_subdir): The name of subdir where debug
1264 information may be stored.
1265 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
1266 type is UUID.
1267 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
1268 corresponding to the executable.
1269 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
1270 specified binary file.
1271 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
1272 the original BFD.
1273 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
1274 executables, dylibs, and bundles.
1275 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
1276 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
1277
68588f95
IS
12782012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1279
1280 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
1281 for stabd symbols.
1282 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
1283 (bfd_mach_o_cf_symbols): Likewise.
1284
f2b324f1
IS
12852012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1286
1287 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
1288
7f307238
IS
12892012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1290
1291 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
1292 as the value of an indirect symbol. Keep the string table index in
1293 non-indirect syms for reference.
1294 (bfd_mach_o_write_dysymtab): New.
1295 (bfd_mach_o_primary_symbol_sort_key): New.
1296 (bfd_mach_o_cf_symbols): New.
1297 (bfd_mach_o_sort_symbol_table): New.
1298 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
1299 If we are emitting a dysymtab, process indirect symbols and count the
1300 number of each other kind.
1301 (bfd_mach_o_mangle_sections): New.
1302 (bfd_mach_o_write_contents): Split out some pre-requisite code into
1303 the command builder. Write dysymtab if the command is present.
1304 (bfd_mach_o_count_sections_for_seg): New.
1305 (bfd_mach_o_build_seg_command): New.
1306 (bfd_mach_o_build_dysymtab_command): New.
1307 (bfd_mach_o_build_commands): Reorganize to support the fact that some
1308 commands are optional and should not be emitted if there are no
1309 sections or symbols.
1310 (bfd_mach_o_set_section_contents): Amend comment.
23e1d329 1311 * mach-o.h: Amend and add to comments.
7f307238
IS
1312 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
1313 pointer to the indirects, when present.
1314 (bfd_mach_o_should_emit_dysymtab): New macro.
1315 (IS_MACHO_INDIRECT): Likewise.
1316
23e1d329 1317For older changes see ChangeLog-2011
56882138
AM
1318\f
1319Local Variables:
1320mode: change-log
1321left-margin: 8
1322fill-column: 74
1323version-control: never
1324End:
This page took 0.693765 seconds and 4 git commands to generate.