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