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