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