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