* lib/dwarf.exp (Dwarf): New variable _abbrev_section.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
593f8f29
WN
12013-05-20 Will Newton <will.newton@linaro.org>
2
3 * elf64-aarch64.c (elf64_aarch64_link_hash_entry): Remove
4 relocs_copied member.
5 (elf64_aarch64_link_hash_newfunc): Remove initialization of
6 relocs_copied member.
7 (elf64_aarch64_copy_indirect_symbol): Remove code to copy
8 relocs_copied member.
9
a0f0eb1e
MR
102013-05-19 Maciej W. Rozycki <macro@linux-mips.org>
11
12 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Convert K&R
13 function definition.
14
af65e588
CC
152013-05-16 Cary Coutant <ccoutant@google.com>
16
17 * ecoff.c (ecoff_link_check_archive_element): Add initializers for
18 external_ext_size and esize.
19
9f6e76f4
TG
202013-05-16 Tristan Gingold <gingold@adacore.com>
21
22 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16.
23 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
24
c495064d
AS
252013-05-15 Andreas Schwab <schwab@suse.de>
26
27 * elf64-aarch64.c (elf_backend_default_execstack): Define to 0.
28
110a61d3
JB
292013-05-10 Joel Brobecker <brobecker@adacore.com>
30
31 * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling
32 of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections.
33
ceae87f3
JB
342013-05-09 Joel Brobecker <brobecker@adacore.com>
35
36 * bfd.c (_bfd_default_error_handler): Replace use of putc
37 by fputc. Add comment explaining why.
38
012b2306
AM
392013-05-09 Alan Modra <amodra@gmail.com>
40
41 * elflink.c (elf_link_add_object_symbols): Don't omit reading
42 of symbols when hashes already exist.
43
7b70956d
WN
442013-05-07 Will Newton <will.newton@linaro.org>
45
46 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Add a
47 plt_header_size argument for ports where it differs from
48 plt_entry_size.
49 * elf-bfd.h: Likewise.
50 * elf32-i386.c: Pass plt_header_size to
51 _bfd_elf_allocate_ifunc_dyn_relocs.
52 * elf64-x86-64.c: Likewise.
53
1ee9e8b3
WN
542013-05-07 Will Newton <will.newton@linaro.org>
55
012b2306 56 * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused
1ee9e8b3
WN
57 function.
58 * elf-bfd.h: Likewise.
59
b47468a6
CM
602013-05-06 Paul Brook <paul@codesourcery.com>
61
012b2306
AM
62 * elf64-mips.c (elf_mips_gnu_pcrel32): New.
63 (bfd_elf64_bfd_reloc_type_lookup, bfd_elf64_bfd_reloc_name_lookup,
64 mips_elf64_rtype_to_howto): Handle R_MIPS_PC32.
65 * elfn32-mips.c (elf_mips_gnu_pcrel32): New.
66 (bfd_elfn32_bfd_reloc_type_lookup, bfd_elfn32_bfd_reloc_name_lookup,
67 mips_elfn32_rtype_to_howto): Handle R_MIPS_PC32.
b47468a6 68
128205bb
AM
692013-05-06 Alan Modra <amodra@gmail.com>
70
71 * elf64-ppc.c (opd_entry_value): Handle case where symbol
72 hashes are not available.
73
f45794cb
AM
742013-05-06 Alan Modra <amodra@gmail.com>
75
76 * elflink.c (elf_link_add_object_symbols): Don't save symbol
77 hashes around loading as-needed library. Zero them on allocation,
78 and restore to initial all-zero state if library not needed.
79 Arrange to reuse hashes if we load library again later.
80
d150b1a2
RS
812013-05-04 Richard Sandiford <rdsandiford@googlemail.com>
82
83 * elf32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto):
84 Use _bfd_mips_elf_generic_reloc instead of bfd_elf_generic_reloc.
85 * elfn32-mips.c: Likewise.
86 * elf64-mips.c: Likewise.
87
13761a11
NC
882013-05-02 Nick Clifton <nickc@redhat.com>
89
90 * archures.c: Add some more MSP430 machine numbers.
91 * config.bfd (msp430): Define targ_selvecs.
92 * configure.in: Add bfd_elf32_msp430_ti_vec.
93 * cpu-msp430.c: Add some more MSP430 machine numbers.
94 * elf32-msp430.c Add support for MSP430X relocations.
95 Add support for TI compiler generated relocations.
96 Add support for sym_diff relocations.
97 Add support for relaxing out of range short branches into long
98 branches.
99 Add support for MSP430 attribute section.
100 * reloc.c: Add MSP430X relocations.
101 * targets.c: Add bfd_elf32_msp430_ti_vec.
102 * bfd-in2.h: Regenerate.
103 * configure: Regenerate.
104 * libbfd.h: Regenerate.
105
df26367c
MR
1062013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
107
108 * config.bfd: Replace alpha*-*-linuxecoff* pattern with
109 alpha*-*-linux*ecoff*.
110
ed54588d
NC
1112013-04-30 Olaf Flebbe <o.flebbe@science-computing.de>
112
113 PR binutils/15417
114 * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to
115 zero.
116
b8297068
AM
1172013-04-30 Alan Modra <amodra@gmail.com>
118
119 * elflink.c (bfd_elf_record_link_assignment): Dont make
120 STV_INTERNAL symbols STV_HIDDEN.
121
b40bf0a2
NC
1222013-04-29 Nick Clifton <nickc@redhat.com>
123
124 * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
125 fragmented .debug_line sections associated with unmarked code
126 sections.
127
aba8c3de
WN
1282013-04-29 Will Newton <will.newton@linaro.org>
129
130 * elf32-arm.c (elf32_arm_populate_plt_entry): Call
131 elf32_arm_add_dynreloc when emitting R_ARM_IRELATIVE relocs.
132
7fcfd62d
NC
1332013-04-29 Will Newton <will.newton@linaro.org>
134
135 * elf64-aarch64.c (elf64_aarch64_check_relocs): Move relocation
136 error check up and add error message.
137
ed5acf27
WN
1382013-04-26 Will Newton <will.newton@linaro.org>
139
140 * elf64-aarch64.c (elf64_aarch64_check_relocs): Remove dead code.
141
49926cd0
AM
1422013-04-25 Alan Modra <amodra@gmail.com>
143
144 * config.bfd: Add powerpc64le-linux.
145
05567e3d
L
1462013-04-24 H.J. Lu <hongjiu.lu@intel.com>
147
148 * config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for
149 x86_64-*-elf*.
150
99059e56
RM
1512013-04-24 Roland McGrath <mcgrathr@google.com>
152
153 * elf32-arm.c (elf32_arm_allocate_plt_entry): If HTAB->nacl_p,
154 allocate space for PLT header even if IS_IPLT_ENTRY.
155 (arm_nacl_put_plt0): New function, broken out of ...
156 (elf32_arm_finish_dynamic_sections): ... here. Call it.
157 If HTAB->nacl_p, set up the PLT header in .iplt too.
158 (elf32_arm_output_arch_local_syms): If HTAB->nacl_p, write
159 a mapping symbol for the start of .iplt too.
160
544008aa
NC
1612013-04-19 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
162
7b5d8d96
NC
163 * ecoff.c (_bfd_ecoff_sizeof_headers): Cast the return value of
164 BFD_ALIGN to int.
165 * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Remove unused
166 variables.
167 * elf32-v850.c (v850_elf_relax_section): Redefine the type of 'i'
168 to bfd_vma.
169 * vms-alpha.c (evax_bfd_print_etir): Initialize sec_len.
544008aa 170
86f7d49b
AM
1712013-04-22 Alan Modra <amodra@gmail.com>
172
173 PR ld/15382
174 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Don't multiply
175 sh_size or reloc_count adjustment by count.
176
bfeb4a28
AM
1772013-04-22 Alan Modra <amodra@gmail.com>
178
179 * elf64-ppc.c (ppc64_elf_check_relocs): Don't call
180 create_linkage_sections here..
181 (ppc64_elf_init_stub_bfd): ..do so here. Return status.
182 (create_linkage_sections): Move earlier in file.
183 (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test.
184 * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto.
185
2d0a6933
NC
1862013-04-19 Nick Clifton <nickc@redhat.com>
187
188 PR binutils/15356
189 * compress.c (decompress_contents): Always call inflateEnd, even
190 when another inflation operation fails.
191
a9ea330b
L
1922013-04-17 H.J. Lu <hongjiu.lu@intel.com>
193
194 * elf-ifunc.c: Update copyright year.
195
a253d456
NC
1962013-04-17 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
197
198 * coffcode.h: Added a cast to void when a bfd_set_section_*()
199 macro's return value is ignored.
200 * elf32-hppa.c: Likewise.
201 * elf32-tic6x.c: Likewise.
202 * mach-o.c: Likewise.
203 * mmo.c: Likewise.
204 * opncls.c: Likewise.
205 * peicode.h: Likewise.
206 * elf32-m32r.c: Check return value of bfd_set_section_*().
207 * elfnn-ia64.c: Likewise.
208 * elfxx-mips.c: Likewise.
209 * vms-alpha.c: Likewise.
210
1622ff3b
L
2112013-04-15 H.J. Lu <hongjiu.lu@intel.com>
212
213 PR ld/15371
214 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Check
215 regular reference without non-GOT reference when building
216 shared library.
217
a22cd6f6
AM
2182013-04-15 Alan Modra <amodra@gmail.com>
219
220 * archive.c (_bfd_archive_close_and_cleanup): Clear parent
221 cache slot for archives.
222
ed905580
HPN
2232013-04-14 Hans-Peter Nilsson <hp@bitrange.com>
224
225 * mmo.c (mmo_write_chunk): Break out abfd->tdata.mmo_data to new
226 local variable mmop.
227
8d6a12ee
NC
2282013-04-09 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
229
230 PR ld/12494
231 * bfd/elf32-avr.c: Consider all sections to determine if linker
232 relaxation can safely delete a ret after a call/jmp
233
79bb5c23
NC
2342013-04-09 Mingjie Xing <mingjie.xing@gmail.com>
235
236 * bfd.c (typedef bfd, Error reporting, Miscellaneous): Add
237 INODEs.
238
36192a8d
TT
2392013-04-08 Tom Tromey <tromey@redhat.com>
240
241 * som.c (bfd_section_from_som_symbol): No longer static.
242 * som.h (bfd_section_from_som_symbol): Declare.
243
198f1157
AM
2442013-04-06 Alan Modra <amodra@gmail.com>
245
246 * elf32-ppc.c (ppc_elf_check_relocs): Use SYMBOLIC_BIND.
247 * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count): Likewise.
248
c69ba956
NC
2492013-04-05 Nick Clifton <nickc@redhat.com>
250
251 * elflink.c (elf_link_add_object_symbols): Revert accidental commit.
252
ff5ac77b
AM
2532013-04-04 Alan Modra <amodra@gmail.com>
254
255 * bfd.c (bfd_error_type, bfd_errmsgs): Add bfd_error_missing_dso.
256 * bfd-in2.h: Regenerate.
257 * elflink.c (elf_link_add_object_symbols): Use new error.
258
41702d50
NC
2592013-04-03 Nick Clifton <nickc@redhat.com>
260
261 * elf32-v850.c (v850_elf_is_target_special_symbol): New function.
262 (bfd_elf32_bfd_is_target_special_symbol): Define.
263
cb8af559
NC
2642013-04-03 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
265
a22cd6f6
AM
266 * elf64-aarch64.c (elf64_aarch64_gc_sweep_hook): Use
267 elf64_aarch64_locals to get local GOT reference counts.
cb8af559 268
1122dc88
DD
2692013-04-02 DJ Delorie <dj@redhat.com>
270
271 * elf32-rl78.c (GET_RELOC): Assert that there are relocs to get.
272 (rl78_elf_relax_section): Only fetch the next reloc if there is
273 one expected.
274
81fbe831
AM
2752013-03-30 Alan Modra <amodra@gmail.com>
276
277 PR ld/15323
278 * elf-m10300.c (mn10300_elf_check_relocs): Set non_ir_ref for
279 global symbols referenced by relocs.
280 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
281 * elf32-bfin.c (bfin_check_relocs): Likewise.
282 * elf32-cr16.c (cr16_elf_check_relocs): Likewise.
283 * elf32-cris.c (cris_elf_check_relocs): Likewise.
284 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
285 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
286 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
287 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
288 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
289 * elf32-i370.c (i370_elf_check_relocs): Likewise.
290 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
291 * elf32-lm32.c (lm32_elf_check_relocs): Likewise.
292 * elf32-m32c.c (m32c_elf_check_relocs): Likewise.
293 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
294 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
295 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
296 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
297 * elf32-metag.c (elf_metag_check_relocs): Likewise.
298 * elf32-microblaze.c (microblaze_elf_check_relocs): Likewise.
299 * elf32-moxie.c (moxie_elf_check_relocs): Likewise.
300 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
301 * elf32-mt.c (mt_elf_check_relocs): Likewise.
302 * elf32-nios2.c (nios2_elf32_check_relocs): Likewise.
303 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
304 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
305 * elf32-rl78.c (rl78_elf_check_relocs): Likewise.
306 * elf32-s390.c (elf_s390_check_relocs): Likewise.
307 * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise.
308 * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise.
309 * elf32-sh.c (sh_elf_check_relocs): Likewise.
310 * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise.
311 * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise.
312 * elf32-v850.c (v850_elf_check_relocs): Likewise.
313 * elf32-vax.c (elf_vax_check_relocs): Likewise.
314 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
315 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
316 * elf64-aarch64.c (elf64_aarch64_check_relocs): Likewise.
317 * elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
318 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
319 * elf64-ia64-vms.c (elf64_ia64_check_relocs): Likewise.
320 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
321 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
322 * elf64-s390.c (elf_s390_check_relocs): Likewise.
323 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
324 * elfnn-ia64.c (elfNN_ia64_check_relocs): Likewise.
325 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
326 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
327 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. Don't
328 test indirect/warning links for NULL.
329
61315175
L
3302013-03-29 H.J. Lu <hongjiu.lu@intel.com>
331
332 PR ld/15323
333 * elf32-i386.c (elf_i386_check_relocs): Set non_ir_ref if a
81fbe831 334 symbol is referenced by a non-shared object.
61315175
L
335 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
336
a6f713fc
KK
3372013-03-28 Joe Seymour <jseymour@codesourcery.com>
338
339 * elf32-sh.c (sh_elf_relocate_section): Suppress warnings for
340 R_SH_REL32 relocations against undefined weak symbols.
341
19e08130
AM
3422013-03-28 Alan Modra <amodra@gmail.com>
343
344 * elf64-ppc.c (struct ppc_dyn_relocs): New.
345 (ppc64_elf_check_relocs): Separate dynrel counts for local syms
346 into ifunc and non-ifunc.
347 (dec_dynrel_count): Pass in sym rather than sym_sec. Handle
348 separate ifunc/non-ifunc dynrel counts.
349 (allocate_got): Always use reliplt for ifunc.
350 (allocate_dynrelocs): Likewise.
351 (ppc64_elf_size_dynamic_sections): Likewise.
352 (ppc64_elf_layout_multitoc): Likewise.
353 (ppc64_elf_relocate_section): Likewise.
354
f95f8542
AM
3552013-03-28 Alan Modra <amodra@gmail.com>
356
357 * elf32-ppc.c (struct ppc_dyn_relocs): New.
358 (ppc_elf_check_relocs): Separate dynrel counts for local syms
359 into ifunc and non-ifunc.
360 (allocate_dynrelocs): Always put ifunc relocs into reliplt.
361 (ppc_elf_size_dynamic_sections): Likewise.
362 (ppc_elf_relocate_section): Likewise.
363
7e612e98
AM
3642013-03-28 Alan Modra <amodra@gmail.com>
365
366 * elf-bfd.h (enum elf_reloc_type_class): Add reloc_class_ifunc.
367 (struct elf_backend_data <elf_backed_reloc_type_class>): Add
368 bfd_link_info* and asection* params.
369 (_bfd_elf_reloc_type_class): Likewise.
370 * elf.c (_bfd_elf_reloc_type_class): Likewise.
371 * elflink.c (elf_link_sort_cmp2): Sort first on reloc class.
372 (elf_link_sort_relocs): Update elf_backed_reloc_type_class call.
373 * elf32-ppc.c (ppc_elf_reloc_type_class): Return reloc_class_ifunc
374 for any reliplt reloc. Don't return reloc_class_plt for
375 R_PPC_REL24 and R_PPC_ADDR24.
376 * elf64-ppc.c (allocate_got): Formatting.
377 (ppc64_elf_reloc_type_class): Return reloc_class_ifunc for any
378 reliplt reloc.
379 * elf-m10300.c, * elf32-arm.c, * elf32-bfin.c, * elf32-cr16.c,
380 * elf32-cris.c, * elf32-hppa.c, * elf32-i386.c, * elf32-lm32.c,
381 * elf32-m32r.c, * elf32-m68k.c, * elf32-metag.c, * elf32-nios2.c,
382 * elf32-s390.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilepro.c,
383 * elf32-vax.c, * elf32-xtensa.c, * elf64-aarch64.c, * elf64-alpha.c,
384 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-s390.c, * elf64-sparc.c,
385 * elf64-x86-64.c, * elfnn-ia64.c, * elfxx-tilegx.c, * elfxx-tilegx.h:
386 Add extra params to the various reloc_type_class functions.
387
0bed072f
AM
3882013-03-27 Alan Modra <amodra@gmail.com>
389
390 * elf32-ppc.c (ppc_elf_check_relocs): Set PLT_IFUNC in local got
391 masks for all local ifunc syms.
392 (allocate_dynrelocs): Don't use htab->relgot for ifunc.
393 (ppc_elf_size_dynamic_sections): Likewise.
394 (ppc_elf_relocate_section): Likewise.
395
6f820c85
WN
3962013-03-27 Will Newton <will.newton@linaro.org>
397
398 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
399 dynamic reloc for symbols with dynindx == -1.
400 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
401 dynamic reloc for symbols with dynindx == -1.
402
31943882
WN
4032013-03-27 Will Newton <will.newton@linaro.org>
404
405 * elf32-arm.c (elf32_arm_final_link_relocate): Avoid emitting a
406 dynamic reloc for non-default visibility undefined weaks.
407 (allocate_dynrelocs_for_symbol): Avoid allocating space for a
408 dynamic reloc for non-default visibility undefined weaks.
409
ffd65175
AM
4102013-03-26 Alan Modra <amodra@gmail.com>
411
412 * elflink.c (_bfd_elf_add_default_symbol): Preserve section
413 over _bfd_elf_merge_symbol calls.
414
3a81e825
AM
4152013-03-26 Alan Modra <amodra@gmail.com>
416
417 * elflink.c (elf_link_add_object_symbols): Add assertion for
418 common override alignment check code. Formatting.
419
4f3fedcf
AM
4202013-03-25 Alan Modra <amodra@gmail.com>
421
422 * elflink.c (_bfd_elf_merge_symbol): Set old_alignment for
423 usual common symbols as well as for dynamic. Add poldbfd param.
424 Save old bfd. Adjust callers.
425 (_bfd_elf_add_default_symbol): Add poldbfd param. Pass "section"
426 and "value" by value, not pointer. Adjust caller.
427 (elf_link_add_object_symbols): Combine undef_bfd and old_bfd vars.
428 Delete code to set same. Use old_bfd and old_alignment from
429 _bfd_elf_merge_symbol instead. Add default symbol before
430 alignment and size checks. Wrap overlong lines.
431
e3c9d234
AM
4322013-03-25 Alan Modra <amodra@gmail.com>
433
434 * elflink.c (_bfd_elf_add_default_symbol): Delete "override" param.
435 (elf_link_add_object_symbols): Don't call _bfd_elf_add_default_symbol
436 when override is true.
437
6c9b78e6
AM
4382013-03-25 Alan Modra <amodra@gmail.com>
439
440 * elflink.c (_bfd_elf_merge_symbol): Use local var holding value
441 of *sym_hash.
442
191c0c42
AM
4432013-03-25 Alan Modra <amodra@gmail.com>
444
445 * elflink.c (_bfd_elf_merge_symbol): Don't discard TLS symbols here.
446 Wrap long lines.
447 (elf_link_add_object_symbols): Discard TLS symbols for --just-syms
448 early in symbol loop.
449
5d13b3b3
AM
4502013-03-25 Alan Modra <amodra@gmail.com>
451
452 * elf-bfd.h (struct elf_backend_data <merge_symbol>): Update proto.
453 (_bfd_elf_init_reloc_shdr): Delete.
454 * elf.c (_bfd_elf_init_reloc_shdr): Make static.
455 * elf64-x86-64.c (elf_x86_64_merge_symbol): Trim parameters to
456 just what is needed.
457 * elflink.c (_bfd_elf_merge_symbol): Update bed->merge_symbol call.
458
8a56bd02
AM
4592013-03-23 Alan Modra <amodra@gmail.com>
460
461 * elf-bfd.h (_bfd_elf_merge_symbol): Delete declaration.
462 * elflink.c (_bfd_elf_merge_symbol): Make static.
463 * elf32-sh-symbian.c (sh_symbian_relocate_section): Don't call
464 _bfd_elf_merge_symbol, call _bfd_generic_link_add_one_symbol.
465
96f29d96
AM
4662013-03-23 Alan Modra <amodra@gmail.com>
467
468 PR ld/15270
469 * elflink.c (elf_link_add_object_symbols): Don't set def_regular
470 or ref_regular for BFD_PLUGIN owned syms, or have them affect
471 def_dynamic/ref_dynamic.
472 (_bfd_elf_fix_symbol_flags): Don't set def_regular for BFD_PLUGIN
473 owned syms.
474
209be8d2
DM
4752013-03-22 David S. Miller <davem@davemloft.net>
476
477 * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): Set type of
478 hwcaps attribute.
479
5c0df484
NC
4802013-03-22 Achille Fouilleul <achille.fouilleul+binutils@gadz.org>
481
482 PR ld/14902
483 * elf32-h8300.c (elf32_h8_relax_delete_bytes): Fix off by one
484 errors adjusting relocs and symbols.
485
81f5558e
NC
4862013-03-21 Michael Schewe <michael.schewe@gmx.net>
487
488 * elf32-h8300 (h8_relax_section): Add new relaxation of mov
489 @(disp:32,ERx) to mov @(disp:16,ERx).
490 (R_H8_DISP32A16): New reloc.
491 Comments added and corrected.
492 * reloc.c (BFD_RELOC_H8_DISP32A16): New reloc.
493 * bfd-in2.h: Regenerate.
494 * libbfd.h: Regenerate.
495
ce63b7b3
KT
4962013-03-21 Kai Tietz <ktietz@redhat.com>
497
498 * coffgen.c (coff_real_object_p): Make global.
499 * peicode.h (coff_real_object_p): Add prototype.
500 (FILHDR): Defined for COFF_IMAGE_WITH_PE as
501 external_PEI_IMAGE_hdr structure.
502 (coff_swap_filehdr_in): Handle variable header-size.
503 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Just handle amount
504 of directory-entiries as specified in pe-header.
505
088ca6c1
NC
5062013-03-21 Nick Clifton <nickc@redhat.com>
507
508 PR sim/15286
509 * elf32-arm.c (bfd_arm_get_mach_from_attributes): Identify XScale,
510 iWMMXt and iWMMXt2 processors from attributes.
511
8877b5e5
AM
5122013-03-20 Alan Modra <amodra@gmail.com>
513
514 * elflink.c (_bfd_elf_make_dynamic_reloc_section): Override
515 sh_type according to is_rela.
516
ffa9430d
AM
5172013-03-18 Alan Modra <amodra@gmail.com>
518
519 PR ld/12549
520 * elflink.c (elf_link_add_object_symbols): Exclude weak refs when
521 considering whether an --as-needed library is needed.
522
cc0ea93c
TT
5232013-03-14 Tom Tromey <tromey@redhat.com>
524
525 * opncls.c (bfd_get_debug_link_info): Rename from
526 get_debug_link_info. Export. Update comment.
527 (find_separate_debug_file): Update.
528 * bfd-in2.h: Rebuild.
529
59c108f7
NC
5302013-03-08 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
531
a22cd6f6 532 * elf64-aarch64.c (elf_backend_can_gc_sections): Enable gc-section
59c108f7 533 support.
a22cd6f6 534 (elf64_aarch64_gc_sweep_hook): Handle GOT, TLS and PLT related
59c108f7
NC
535 relocs.
536
abb3f6cc
NC
5372013-03-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
538
539 * elf-bfd.h (elfcore_write_s390_tdb): Add prototype.
540 * elf.c (elfcore_write_s390_tdb): New function.
541 (elfcore_write_register_note): Call it.
542 (elfcore_grok_s390_tdb): New function.
543 (elfcore_grok_note): Call it.
544
af924177
MR
5452013-03-08 Maciej W. Rozycki <macro@codesourcery.com>
546
547 * elfxx-mips.c (mips_elf_allocate_lazy_stub): Correct data type.
548
48385e38
CV
5492013-03-05 Corinna Vinschen <vinschen@redhat.com>
550
551 * config.bfd: Add x86_64-*-cygwin to list of supported targets.
552
f75e0e33
AM
5532013-03-04 Alan Modra <amodra@gmail.com>
554
555 * elf32-ppc.c (ppc_elf_relocate_section <R_PPC_PLTREL24>): Adjust
556 non-zero addends when relocatable, rather than addends >= 32768.
557 Always zero "addend" before applying relocation.
558
17e3916e
NC
5592013-03-04 Nick Clifton <nickc@redhat.com>
560
561 * archive64.c (bfd_elf64_archive_write_armap): Fix calculation of
562 file pointer offsets for thin archives.
563
3064e1ff
JB
5642013-02-28 Nathan Sidwell <nathan@codesourcery.com>
565
566 * elf32-arm.c (elf32_arm_size_dynamic_sections): Don't call
567 elf32_arm_allocate_dynrelocs for source reloc for non-dynamic link.
568
4107ae22
DD
5692013-02-27 DJ Delorie <dj@redhat.com>
570
571 * reloc.c (BFD_RELOC_RL78_CODE): Add.
572 * libbfd.h: Regenerate.
573 * bfd-in2.h: Regenerate.
574 * elf32-rl78.c (rl78_elf_relocate_section): Handle weak code
575 references in compuated relocs.
576
730fbaf8
AG
5772013-02-26 Anthony Green <green@moxielogic.com>
578
579 * config.bfd: Extend moxie-rtems target triplet name support.
580
35399224
L
5812013-02-21 H.J. Lu <hongjiu.lu@intel.com>
582
583 PR ld/15167
584 * elf64-ia64-vms.c (elf64_vms_link_add_object_symbols): Set
585 unique_global only for definition.
586 * elflink.c (_bfd_elf_merge_symbol): Don't set unique_global
587 here.
588 (elf_link_add_object_symbols): Set unique_global only
589 for definition.
590
c0355132
AM
5912013-02-21 Alan Modra <amodra@gmail.com>
592
593 * elf-bfd.h (struct elf_build_id): Extracted from..
594 (struct elf_build_id_info): ..here. Delete.
595 (struct output_elf_obj_tdata): New, extracted from..
596 (struct elf_obj_tdata): ..here. Reorganize for better packing.
597 Add "o" field.
598 (elf_program_header_size): Reference tdata->o.
599 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
600 elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec,
601 elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise.
602 * elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata
603 when opening bfd in any mode that might write.
604 (_bfd_elf_write_object_contents): Use build_id field in
605 output_elf_obj_tdata.
606 (_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test.
607 (elfobj_grok_gnu_build_id): Adjust for elf_tdata changes.
608
228e534f
AM
6092013-02-21 Alan Modra <amodra@gmail.com>
610
611 * elf-bfd.h (struct core_elf_obj_tdata): New.
612 (struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid,
613 core_program, and core_command. Add "core".
614 * elf.c (bfd_elf_mkcorefile): Allocate "core" struct.
615 Update all refs to tdata core fields.
616 * elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c,
617 * elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c,
618 * elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c,
619 * elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c,
620 * elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c,
621 * elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c,
622 * elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs
623 to tdata core fields.
624
12bd6957
AM
6252013-02-21 Alan Modra <amodra@gmail.com>
626
627 * elf-bfd.h (struct elf_obj_tdata): Rename segment_map to seg_map.
628 Delete num_locals and num_globals.
629 (elf_num_locals, elf_num_globals): Don't define.
630 (elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
631 elf_stack_flags, elf_strtab_sec, elf_shstrtab_sec): Define.
632 * bfd.c, * elf-eh-frame.c, * elf-nacl.c, * elf-vxworks.c, * elf.c,
633 * elf32-arm.c, * elf32-lm32.c, * elf32-ppc.c, * elf32-rx.c,
634 * elf32-spu.c, * elf64-hppa.c, * elfcode.h, * elflink.c,
635 * elfnn-ia64.c, * elfxx-mips.c: Use newly defined elf_obj_tdata
636 accessor macros.
637 * elf.c (elf_map_symbols): Add pnum_locals param. Return
638 number of locals syms via new param.
639 (swap_out_syms): Adjust to suit elf_map_symbols change.
640
cbf8d970
MR
6412013-02-19 Maciej W. Rozycki <macro@codesourcery.com>
642
643 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Also clear
644 STO_MICROMIPS annotation.
645
30e8ee25
AM
6462013-02-19 Alan Modra <amodra@gmail.com>
647
648 * configure.in: Bump version to 2.23.52.
649 * elf-bfd.h (struct elf_build_id_info): New.
650 (struct elf_obj_tdata): Delete after_write_object_contents,
651 after_write_object_contents_info and build_id_size. Make build_id
652 a pointer to struct elf_build_id_info.
653 * elf.c (_bfd_elf_write_object_contents): Style. Update
654 after_write_ibject_contents invocation.
655 (elfobj_grok_gnu_build_id): Update for new build_id struct. Don't
656 allow zero size notes.
657 * configure: Regenerate.
658
5b175e56
MR
6592013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
660
661 * elf64-mips.c (micromips_elf64_howto_table_rel): Add
662 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
663 (micromips_elf64_howto_table_rela): Likewise.
664 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
665 * elfn32-mips.c (elf_micromips_howto_table_rel): Add
666 R_MICROMIPS_SCN_DISP and R_MICROMIPS_JALR.
667 (elf_micromips_howto_table_rela): Likewise.
668 (micromips_reloc_map): Add BFD_RELOC_MICROMIPS_JALR.
669
e8faf7d1
MR
6702013-02-18 Paul Brook <paul@codesourcery.com>
671
672 * elfxx-mips.c (MICROMIPS_P): New macro.
673 (_bfd_mips_elf_symbol_processing): Use it.
674
c164a95d
MR
6752013-02-18 Maciej W. Rozycki <macro@codesourcery.com>
676
677 * elfxx-mips.c (_bfd_mips_elf_create_dynamic_sections): Clarify
678 comment on _PROCEDURE_LINKAGE_TABLE_ creation.
679
d45f8bda
AM
6802013-02-18 Alan Modra <amodra@gmail.com>
681
682 PR ld/12549
683 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Delete.
684 (_bfd_elf_strtab_clear_all_refs): Declare.
685 (_bfd_elf_strtab_resize): Declare.
686 * elf-strtab.c (_bfd_elf_strtab_clear_refs): Delete.
687 (_bfd_elf_strtab_clear_all_refs): New function.
688 (_bfd_elf_strtab_resize): Likewise.
689 * elflink.c (elf_link_add_object_symbols): Use _bfd_elf_strtab_resize.
690
698600e4
AM
6912013-02-18 Alan Modra <amodra@gmail.com>
692
693 * elf-bfd.h (struct elf_obj_tdata): Move find_line_info, local_stubs,
694 local_call_stubs, elf_data_symbol, elf_text_symbol, elf_data_section,
695 and elf_text_section to..
696 * elfxx-mips.c (struct mips_elf_obj_tdata): ..here. Update all refs.
697 * elf64-alpha.c (struct mips_elf_find_line): Rename to..
698 (struct alpha_elf_find_line): ..this.
699 (struct alpha_elf_obj_tdata): Add find_line_info, update refs.
700
3d5bef4c
L
7012013-02-16 H.J. Lu <hongjiu.lu@intel.com>
702
703 PR ld/15146
704 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED
705 for references from the dummy bfd.
706
313ed4a9
L
7072013-02-16 H.J. Lu <hongjiu.lu@intel.com>
708
709 PR ld/15149
710 * elflink.c (elf_link_add_object_symbols): Also track weak
711 references.
712
989fbeff
L
7132013-02-15 H.J. Lu <hongjiu.lu@intel.com>
714
715 PR binutils/15151
716 * archive.c (_bfd_find_nested_archive): Don't allow a nested
717 archive pointing to itself.
718 (_bfd_get_elt_at_filepos): Revert the last 2 changes.
719
a043396b
NC
7202013-02-15 Nick Clifton <nickc@redhat.com>
721
722 PR binutils/15140
723 * archive.c (_bfd_get_elt_at_filepos): Prevent an infinite loop
724 accessing a corrupt nested archive.
725
13db6b44
RS
7262013-02-13 Richard Sandiford <rdsandiford@googlemail.com>
727
728 * elfxx-mips.c (mips_got_page_ref): New structure.
729 (mips_got_page_entry): Use a section rather than a (bfd, symndx)
730 pair to represent the anchor point.
731 (mips_got_info): Add a got_page_refs field.
732 (mips_elf_link_hash_table): Add a sym_cache field.
733 (mips_got_page_ref_hash, mips_got_page_ref_eq): New functions.
734 (mips_got_page_entry_hash, mips_got_page_entry_eq): Update for
735 new anchor representation.
736 (mips_elf_create_got_info): Create got_page_refs rather than
737 got_page_entries.
738 (mips_elf_record_got_page_ref): New function.
739 (mips_elf_pages_for_range): Move further down file.
740 (mips_elf_record_got_page_entry): Likewise. Take a got as argument.
741 Use a section rather than a (bfd, symndx) pair to represent the
742 anchor point.
743 (mips_elf_resolve_got_page_ref): New function.
744 (mips_elf_resolve_final_got_entries): Use it to populate
745 got_page_entries.
746 (_bfd_mips_elf_check_relocs): Call mips_elf_record_got_page_ref
747 rather than mips_elf_record_got_page_entry. Only nullify h
748 afterwards.
749 (mips_elf_lay_out_got): Call mips_elf_resolve_final_got_entries
750 earlier.
751
57093f5e
RS
7522013-02-12 Richard Sandiford <rdsandiford@googlemail.com>
753
754 * elfxx-mips.c (mips_elf_lay_out_got): Count VxWorks GOT relocs
755 in g->relocs.
756
9c3f90c4
AM
7572013-02-12 Alan Modra <amodra@gmail.com>
758
759 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Provide
760 suitable definition when using generic linker hash table.
761
476366af
RS
7622013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
763
764 * elfxx-mips.c (mips_elf_count_got_entries): Delete.
765 (mips_elf_check_recreate_got, mips_elf_recreate_got): Take a
766 mips_elf_traverse_got_arg. Count GOT entries.
767 (mips_elf_resolve_final_got_entries): Take the bfd_link_info
768 as argument. Update after above changes.
769 (mips_elf_merge_got, mips_elf_lay_out_got): Don't call
770 mips_elf_count_got_entries. Update the calls to
771 mips_elf_resolve_final_got_entries.
772
9ab066b4
RS
7732013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
774
775 * elfxx-mips.c (mips_got_tls_type): New enum.
776 (mips_got_entry): Add tls_initialized.
777 (mips_elf_got_entry_hash, mips_elf_got_entry_eq, mips_tls_got_relocs)
778 (mips_elf_count_got_entry, mips_elf_initialize_tls_index): Remove
779 GOT_TLS_TYPE masks.
780 (mips_elf_reloc_tls_type, mips_tls_got_entries)
781 (mips_elf_record_global_got_symbol, mips_elf_initialize_tls_index)
782 (_bfd_mips_elf_finish_dynamic_symbol): Use GOT_TLS_NONE rather
783 than GOT_NORMAL.
784 (mips_elf_initialize_tls_slots): Replace got_offset and tls_type_p
785 arguments with a GOT entry. Remove GOT_TLS_TYPE masks. Use
786 tls_initialized rather than GOT_TLS_DONE.
787 (mips_tls_got_index): Delete.
788 (mips_elf_local_got_index, mips_elf_global_got_index): Use
789 mips_elf_initialize_tls_slots rather than mips_tls_got_index.
790 (mips_elf_record_got_entry): Initialize tls_initialized.
791
6c42ddb9
RS
7922013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
793
794 * elfxx-mips.c (mips_got_entry): Remove tls_ldm_offset.
795 (mips_elf_link_hash_entry): Remove tls_ie_type, tls_gd_type,
796 tls_ie_got_offset and tls_gd_got_offset.
797 (mips_elf_link_hash_newfunc): Remove initialization.
798 (mips_elf_create_got_info): Likewise.
799 (mips_elf_count_local_got_entries, mips_elf_count_global_tls_entries)
800 (mips_tls_single_got_index): Delete.
801 (mips_elf_local_got_index): Always use the GOT entry to track
802 GOT indices.
803 (mips_elf_global_got_index): Likewise.
804 (mips_elf_create_local_got_entry): Assert that TLS entries have
805 already been allocated.
806 (mips_elf_record_global_got_symbol): Don't initialize
807 tls_ie_type or tls_gd_type.
808 (mips_elf_count_got_symbols): Only count reloc-only GOT entries here.
809 (mips_elf_initialize_tls_index): Allocate a GOT index for every TLS
810 entry.
811 (mips_elf_lay_out_got): Use mips_elf_count_got_entries to count
812 the GOT entries.
813 (_bfd_mips_elf_finish_dynamic_symbol): Assert that TLS GOT offsets
814 have been allocated.
815 (_bfd_mips_elf_copy_indirect_symbol): Remove handling of
816 tls_ie_type and tls_gd_type.
817
ebc53538
RS
8182013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
819
820 * elfxx-mips.c (mips_elf_create_local_got_entry): Tidy. Avoid
821 aliasing violation. Check for htab allocation failures.
822
13fbec83
RS
8232013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
824
825 * elfxx-mips.c (mips_elf_primary_global_got_index): New function,
826 split out from...
827 (mips_elf_global_got_index): ...here. Reorder arguments so that
828 the output bfd and info come first.
829 (mips_elf_calculate_relocation): Update the call to
830 mips_elf_global_got_index accordingly.
831 (_bfd_mips_elf_finish_dynamic_symbol): Use
832 mips_elf_primary_global_got_index rather than
833 mips_elf_global_got_index.
834 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
835
3dff0dd1
RS
8362013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
837
838 * elfxx-mips.c (mips_got_entry): Update comments.
839 (mips_elf_multi_got_entry_eq): Rename to...
840 (mips_elf_got_entry_eq): ...this, deleting the old definition.
841 (mips_elf_create_got_info): Remove master_got_p argument.
842 Always use mips_elf_got_entry_eq.
843 (mips_elf_bfd_got, mips_elf_multi_got, mips_elf_create_got_section):
844 Update calls accordingly.
845
d7206569
RS
8462013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
847
848 * elfxx-mips.c (mips_got_info): Remove bfd2got.
849 (mips_elf_bfd2got_hash): Delete.
850 (mips_elf_got_per_bfd_arg): Remove bfd2got.
851 (mips_elf_replace_bfd_got, mips_elf_count_got_entries): New functions.
852 (mips_elf_global_got_index, mips_elf_create_local_got_entry): Use
853 g->next to test for the multigot case. Use mips_elf_bfd_got rather
854 than mips_elf_got_for_ibfd.
855 (mips_elf_bfd2got_entry_hash, mips_elf_bfd2got_entry_eq)
856 (mips_elf_got_for_ibfd, mips_elf_get_got_for_bfd): Delete.
857 (mips_elf_make_got_per_bfd): Replace with...
858 (mips_elf_add_got_entry): ...this new function.
859 (mips_elf_make_got_pages_per_bfd): Replace with...
860 (mips_elf_add_got_page_entry): ...this new function.
861 (mips_elf_merge_got_with): Replace bfd2got argument with separate
862 bfd and GOT arguments. Use mips_elf_add_got_entry and
863 mips_elf_add_got_page_entry instead of mips_elf_make_got_per_bfd
864 and mips_elf_make_got_pages_per_bfd. Use mips_elf_replace_bfd_got
865 to set the BFD's GOT and free the old table.
866 (mips_elf_merge_got): Replace bfd2got argument with separate
867 bfd and GOT arguments. Apply mips_elf_resolve_final_got_entries.
868 Use mips_elf_count_got_entries to count the number of entries in
869 each GOT. Update the calls to mips_elf_merge_got_with.
870 (mips_elf_adjust_gp): Use g->next to test for the multigot case.
871 Use mips_elf_bfd_got rather than mips_elf_got_for_ibfd.
872 (mips_elf_multi_got): Don't create the bfd2got hash table.
873 Replace hash table traversal with a walk over the input bfds,
874 updating the call to mips_elf_merge_got. Use mips_elf_replace_bfd_got
875 to set the output bfd's GOT.
876 (mips_elf_lay_out_got): Rename "sub" to "ibfd". Record that all
877 bfds use the master GOT in the single-GOT case.
878 (_bfd_mips_elf_finish_dynamic_sections): Use mips_elf_bfd_got
879 rather than mips_elf_got_for_ibfd.
880
ee227692
RS
8812013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
882
883 * elfxx-mips.c (mips_elf_obj_tdata): Add a got field.
884 (mips_elf_bfd_got, mips_elf_record_got_entry): New functions.
885 (mips_elf_record_global_got_symbol): Update the hash entry before
886 adding the mips_got_entry. Use mips_elf_record_got_entry to do
887 the latter.
888 (mips_elf_record_local_got_symbol): Use mips_elf_record_got_entry.
889 (mips_elf_record_got_page_entry): Record the entry in both the
890 master and bfd GOTs.
891
72e7511a
RS
8922013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
893
894 * elfxx-mips.c (mips_elf_recreate_got): Don't change the entry;
895 create another one if necessary.
896 (mips_elf_set_gotidx): New function.
897 (mips_elf_set_global_gotidx): Use it.
898 (mips_elf_initialize_tls_index): Likewise. Take a
899 mips_elf_traverse_got_arg as argument.
900 (mips_elf_lay_out_got): Update use of mips_elf_initialize_tls_index.
901 (mips_elf_multi_got): Likewise. Cope with error returns from
902 mips_elf_set_global_gotidx.
903
ab361d49
RS
9042013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
905
906 * elfxx-mips.c (mips_got_info): Add relocs field.
907 (mips_elf_set_global_got_offset_arg, mips_elf_count_tls_arg): Replace
908 with...
909 (mips_elf_traverse_got_arg): ...this new structure.
910 (mips_elf_count_local_tls_relocs): Delete.
911 (mips_elf_count_global_tls_relocs): Likewise.
912 (mips_elf_count_got_entry): New function.
913 (mips_elf_count_local_got_entries): Likewise.
914 (mips_elf_count_global_tls_entries): Take a mips_elf_traverse_got_arg
915 rather than a mips_elf_count_tls_arg. Count both relocs and entries.
916 (mips_elf_record_local_got_symbol): Don't count got entries here.
917 (mips_elf_make_got_per_bfd): Use mips_elf_count_got_entry.
918 (mips_elf_set_global_got_offset): Split into...
919 (mips_elf_set_global_got_area, mips_elf_set_global_gotidx): ...these
920 new functions. Take a mips_elf_traverse_got_arg rather than a
921 mips_elf_set_global_got_offset_arg. Don't count TLS relocs here.
922 Use g->relocs to record the number of relocs needed for global GOT
923 entries.
924 (mips_elf_multi_got): Use mips_elf_traverse_got_arg rather than
925 mips_elf_set_global_got_offset_arg. Use the relocs field to count
926 relocations. Update for above function split.
927 (mips_elf_lay_out_got): Use mips_elf_count_local_got_entries
928 to count both the number of GOT entries and the number of TLS
929 relocs required by local entries. Likewise
930 mips_elf_count_global_tls_entries and global entries.
931 Remove uses of mips_elf_count_local_tls_relocs and
932 mips_elf_count_global_tls_relocs.
933
e641e783
RS
9342013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
935
936 * elfxx-mips.c (mips_got_entry): Update comment above tls_type entry
937 to say that each structure represents only one type of TLS reference.
938 (GOT_TLS_TYPE): New define.
939 (mips_elf_link_hash_entry): Temporarily split tls_type and
940 tls_got_offset into two variables each.
941 (mips_elf_link_hash_newfunc): Update accordingly.
942 (mips_elf_got_entry_eq, mips_elf_got_entry_hash)
943 (mips_elf_multi_got_entry_eq): Require the tls_type to be the same.
944 (mips_elf_reloc_tls_type, mips_tls_got_entries): New functions.
945 (mips_tls_got_relocs): Use a switch statement.
946 (mips_elf_count_global_tls_entries): Handle the new hash entry fields.
947 (mips_elf_initialize_tls_slots): Use a switch statement. Avoid
948 local "offset" variable.
949 (mips_tls_got_index): Remove r_type argument and assert. Remove
950 code that handled entries with two TLS types; always use the
951 original got_index instead.
952 (mips_tls_single_got_index): New function.
953 (mips_elf_local_got_index): Use entry->tls_type to check for
954 TLS entries. Use mips_tls_single_got_index. Update call to
955 mips_tls_got_index.
956 (mips_elf_global_got_index): Use mips_elf_reloc_tls_type.
957 Use p->tls_type to check for TLS entries. Update call to
958 mips_tls_got_index. Use mips_tls_single_got_index.
959 (mips_elf_create_local_got_entry): Use mips_elf_reloc_tls_type.
960 Use entry.tls_type to check for TLS entries.
961 (mips_elf_record_global_got_symbol): Replace tls_flag argument
962 with r_type argument. Use mips_elf_reloc_tls_type.
963 Set up the new hash entry fields.
964 (mips_elf_record_local_got_symbol): Replace tls_flag argument
965 with r_type argument. Use mips_elf_reloc_tls_type and
966 mips_tls_got_entries. Remove code that handled entries
967 with multiple TLS types.
968 (mips_elf_make_got_per_bfd): Use mips_tls_got_entries.
969 (mips_elf_initialize_tls_index): Handle new hash entry fields.
970 Use equality rather than masks when checking for specific TLS types.
971 Use mips_tls_got_entries. Remove code that handled entries
972 with multiple TLS types.
973 (mips_elf_calculate_relocation): Use TLS_RELOC_P instead of
974 testing the hash table entry.
975 (_bfd_mips_elf_check_relocs): Update calls to
976 mips_elf_record_global_got_symbol and mips_elf_record_local_got_symbol.
977 (_bfd_mips_elf_finish_dynamic_symbol): Don't check h->type.
978 (_bfd_mips_elf_copy_indirect_symbol): Handle new hash entry fields.
979
d9bf376d
RS
9802013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
981
982 * elfxx-mips.c (mips_elf_multi_got_entry_hash): Rename to...
983 (mips_elf_got_entry_hash): ...this, deleting the old version.
984 (mips_elf_create_got_info): Use mips_elf_got_entry_hash for
985 both types of GOT.
986
5334aa52
RS
9872013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
988
989 * elfxx-mips.c (mips_elf_create_got_info): New function.
990 (mips_elf_get_got_for_bfd, mips_elf_multi_got): Use it.
991 (mips_elf_create_got_section): Likewise.
992
946c668d
RS
9932013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
994
995 * elfxx-mips.c (mips_elf_record_local_got_symbol): Always set
996 gotidx to -1.
997
59b08994
RS
9982013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
999
1000 * elfxx-mips.c (mips_elf_multi_got): Simplify size calculation.
1001
d222d210
RS
10022013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1003
1004 * elfxx-mips.c (mips_got_info): Move global_gotsym to...
1005 (mips_elf_link_hash_table): ...here. Update rest of file accordingly.
1006
1fd20d70
RS
10072013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1008
1009 * elfxx-mips.c (mips_elf_count_global_tls_entries)
1010 (mips_elf_count_global_tls_relocs): Don't count indirect or
1011 warning symbols.
1012 (mips_elf_multi_got, mips_elf_lay_out_got): Assert that the right
1013 number of TLS entries were allocated.
1014
7d94b319
RS
10152013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1016
1017 * elfxx-mips.c (mips_elf_sort_hash_table_f): Remove asserts.
1018
17214937
RS
10192013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1020
1021 * elfxx-mips.c (mips_elf_merge_got_with): Only use arg->global_count
1022 if there are TLS relocations.
1023
9efeb38d
RS
10242013-02-11 Richard Sandiford <rdsandiford@googlemail.com>
1025
1026 * elfxx-mips.c (mips_elf_recreate_got): Remove free.
1027 (mips_elf_resolve_final_got_entries): Remove bogus comment.
1028
9c3f90c4
AM
10292013-02-11 Alan Modra <amodra@gmail.com>
1030
1031 * elfcode.h (elf_checksum_contents): Free contents.
1032 * elf-bfd.h (_bfd_elf_link_hash_table_free): Declare.
1033 * elflink.c (_bfd_elf_link_hash_table_free): New function.
1034 (elf_final_link_free): New function, extracted from..
1035 (bfd_elf_final_link): ..here. Always call
1036 _bfd_elf_write_section_eh_frame_hdr.
1037 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Default to
1038 _bfd_elf_link_hash_table_free.
1039 * libbfd-in.h (_bfd_merge_sections_free): Declare.
1040 * libbfd.h: Regenerate.
1041 * merge.c (_bfd_merge_sections_free): New function.
1042 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame_hdr): Free
1043 hdr_info->array.
1044 * elf-m10300.c (elf32_mn10300_link_hash_table_free): Call
1045 _bfd_elf_link_hash_table_free.
1046 * elf32-arm.c (elf32_arm_link_hash_table_free): Likewise.
1047 * elf32-avr.c (elf32_avr_link_hash_table_free): Likewise.
1048 * elf32-hppa.c (elf32_hppa_link_hash_table_free): Likewise.
1049 * elf32-i386.c (elf_i386_link_hash_table_free): Likewise.
1050 * elf32-m68hc1x.c (m68hc11_elf_hash_table_free): Likewise.
1051 * elf32-m68k.c (elf_m68k_link_hash_table_free): Likewise.
1052 * elf32-metag.c (elf_metag_link_hash_table_free): Likewise.
1053 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_free): Likewise.
1054 * elf64-aarch64.c (elf64_aarch64_link_hash_table_free): Likewise.
1055 * elf64-ia64-vms.c (elf64_ia64_hash_table_free): Likewise.
1056 * elf64-ppc.c (ppc64_elf_link_hash_table_free): Likewise.
1057 * elf64-x86-64.c (elf_x86_64_link_hash_table_free): Likewise.
1058 * elfnn-ia64.c (elfNN_ia64_hash_table_free): Likewise.
1059 * elf32-cr16.c (elf32_cr16_link_hash_table_free): Delete.
1060 (bfd_elf32_bfd_link_hash_table_free): Don't define.
1061 * elf32-tic6x.c (elf32_tic6x_link_hash_table_free): Delete.
1062 (bfd_elf32_bfd_link_hash_table_free): Dont' define.
1063
7bf52ea2
AM
10642013-02-10 Alan Modra <amodra@gmail.com>
1065
1066 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_zmalloc.
1067 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
1068 * m68klinux.c (linux_link_hash_table_create): Likewise.
1069 * sparclinux.c (linux_link_hash_table_create): Likewise.
1070 * sunos.c (sunos_link_hash_table_create): Likewise.
1071 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
1072 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
1073 * elf32-arm.c (elf32_arm_link_hash_table_create): Likewise.
1074 * elf32-avr.c (elf32_avr_link_hash_table_create): Likewise.
1075 * elf32-cr16.c (elf32_cr16_link_hash_table_create): Likewise.
1076 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
1077 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
1078 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
1079 * elf32-lm32.c (lm32_elf_link_hash_table_create): Likewise.
1080 * elf32-m32r.c (m32r_elf_link_hash_table_create): Likewise.
1081 * elf32-m68hc1x.c (m68hc11_elf_hash_table_create): Likewise.
1082 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
1083 * elf32-metag.c (elf_metag_link_hash_table_create): Likewise.
1084 * elf32-nios2.c (nios2_elf32_link_hash_table_create): Likewise.
1085 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
1086 * elf32-score.c (elf32_score_link_hash_table_create): Likewise.
1087 * elf32-spu.c (spu_elf_link_hash_table_create): Likewise.
1088 * elf32-tic6x.c (elf32_tic6x_link_hash_table_create): Likewise.
1089 * elf32-vax.c (elf_vax_link_hash_table_create): Likewise.
1090 * elf32-xgate.c (xgate_elf_bfd_link_hash_table_create): Likewise.
1091 * elf32-xtensa.c (elf_xtensa_link_hash_table_create): Likewise.
1092 * elf64-aarch64.c (elf64_aarch64_link_hash_table_create): Likewise.
1093 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
1094 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
1095 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Likewise.
1096 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1097 * elflink.c (_bfd_elf_link_hash_table_create): Likewise.
1098 (_bfd_elf_link_hash_table_init): Assume zero fill table on entry.
1099
22cdc249
AM
11002013-02-10 Alan Modra <amodra@gmail.com>
1101
1102 * i386linux.c (linux_link_hash_table_create): Allocate table
1103 with bfd_zmalloc, not bfd_alloc.
1104 * pdp11.c (link_hash_table_create): Allocate table with
1105 bfd_malloc, not bfd_alloc.
1106 * elf32-bfin.c (bfinfdpic_elf_link_hash_table_create): Allocate table
1107 with bfd_zmalloc, not bfd_zalloc.
1108 (bfin_link_hash_table_create): Likewise.
1109 * elf32-frv.c (frvfdpic_elf_link_hash_table_create): Likewise.
1110 * elf64-hppa.c (elf64_hppa_hash_table_create): Likewise.
1111
0e5de31a
AM
11122013-02-10 Alan Modra <amodra@gmail.com>
1113
1114 PR ld/15113
1115 * elf32-sh.c (sh_elf_link_hash_table_create): Use bfd_zmalloc.
1116
ad1fc92a
NC
11172013-02-08 Markos Chandras <markos.chandras@imgtec.com>
1118
1119 * elf32-metag.c: Use bfd_get_linker_section to get SEC_LINKER_CREATED
1120 sections.
34c67f14
NC
1121 (elf_metag_adjust_dynamic_symbol): Don't error on zero size dynbss
1122 symbol.
ad1fc92a 1123
170a8295
YZ
11242013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
1125
1126 * elf64-aarch64.c (elf64_aarch64_grok_prstatus): Change 'size' from
1127 288 to 272.
1128
619a703e
AM
11292013-02-08 Alan Modra <amodra@gmail.com>
1130
1131 PR binutils/15106
1132 * elf-bfd.h (struct elf_obj_tdata): Add elf_find_function_cache.
1133 * elf.c (elf_find_function): Revert last change. Use new
1134 tdata field rather than static vars for cache.
1135
02acbe22
L
11362013-02-07 H.J. Lu <hongjiu.lu@intel.com>
1137
1138 PR ld/15107
1139 * elflink.c (elf_link_output_extsym): Set STB_GNU_UNIQUE only if
1140 symbol is defined in regular object.
1141
1965d5f2
AM
11422013-02-07 Roberto Agostino Vitillo <ra.vitillo@gmail.com>
1143
1144 PR binutils/15106
1145 * elf.c (elf_find_function): Don't cache if symbols change.
1146
dafbc74d
AM
11472013-02-07 Alan Modra <amodra@gmail.com>
1148
1149 PR binutils/14873
1150 * elf-attrs.c (_bfd_elf_copy_obj_attributes): Don't attempt to
1151 copy attributes from or to non-ELF.
1152
20e52bd2
L
11532013-02-06 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't clear pc_count
1156 for non-zero TLS symbol.
1157 (elf_i386_relocate_section): Don't resolve size relocation against
1158 non-zero TLS symbol.
1159 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Don't clear
1160 pc_count for non-zero TLS symbol.
1161 (elf_x86_64_relocate_section): Don't resolve size relocation
1162 against non-zero TLS symbol.
1163
36591ba1 11642013-02-06 Sandra Loosemore <sandra@codesourcery.com>
20e52bd2 1165 Andrew Jenner <andrew@codesourcery.com>
36591ba1
SL
1166
1167 Based on patches from Altera Corporation.
1168
1169 * Makefile.am (ALL_MACHINES): Add cpu-nios2.lo.
1170 (ALL_MACHINES_CFILES): Add cpu-nios2.c.
1171 (BFD_BACKENDS): Add elf32-nios2.lo.
1172 (BFD32_BACKENDS_CFILES): Add elf32-nios2.c.
1173 * Makefile.in: Regenerated.
1174 * configure.in: Add entries for bfd_elf32_bignios2_vec and
1175 bfd_elf32_littlenios2_vec.
1176 * configure: Regenerated.
1177 * config.bfd: Add cases for nios2.
1178 * archures.c (enum bfd_architecture): Add bfd_arch_nios2.
1179 (bfd_mach_nios2): Define.
1180 (bfd_nios2_arch): Declare.
1181 (bfd_archures_list): Add bfd_nios2_arch.
1182 * targets.c (bfd_elf32_bignios2_vec): Declare.
1183 (bfd_elf32_littlenios2_vec): Declare.
1184 (_bfd_target_vector): Add entries for bfd_elf32_bignios2_vec and
1185 bfd_elf32_littlenios2_vec.
1186 * elf-bfd.h (enum elf_target_id): Add NIOS2_ELF_DATA.
1187 * reloc.c (enum bfd_reloc_code_real): Add Nios II relocations.
1188 * bfd-in2.h: Regenerated.
1189 * libbfd.h: Regenerated.
1190 * cpu-nios2.c: New file.
1191 * elf32-nios2.c: New file.
1192
ca6b5f82
AM
11932013-02-06 Alan Modra <amodra@gmail.com>
1194
1195 * elf32-arm.c (elf32_arm_final_link_relocate): Only test for
1196 stubs in stub_bfd.
1197
37ba9f93
AM
11982013-02-06 Alan Modra <amodra@gmail.com>
1199
1200 * Makefile.am (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
1201 * Makefile.in: Regenerate.
1202
70a38d42
SDJ
12032013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
1204 Pedro Alves <palves@redhat.com>
1205
1206 * Makefile.in (SOURCE_HFILES): Add `elf-linux-psinfo.h'.
1207 * elf-bfd.h (elf_internal_linux_prpsinfo): New structure
1208 declaration.
1209 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64)
1210 (elfcore_write_ppc32_linux_prpsinfo32): New declarations.
1211 * elf-linux-psinfo.h: New file.
1212 * elf.c: Include elf-linux-psinfo.h.
1213 (elfcore_write_linux_prpsinfo32, elfcore_write_linux_prpsinfo64):
1214 New functions.
1215 * elf32-ppc.c: Include `elf-linux-psinfo.h'.
1216 (elf_external_ppc_linux_prpsinfo32): New structure declaration.
1217 (PPC_LINUX_PRPSINFO32_SWAP_FIELDS): New macro.
1218 (elfcore_write_ppc_linux_prpsinfo32): New function.
1219
5ee43bc4
TG
12202013-02-04 Tristan Gingold <gingold@adacore.com>
1221
1222 * mach-o.c (bfd_mach_o_scan_start_address): Do not fail if no
1223 start address.
1224
0cadb185
AM
12252013-02-04 Alan Modra <amodra@gmail.com>
1226
1227 * Makefile.am (BFD64_BACKENDS): Remove elf-nacl.lo.
1228 (BFD64_BACKENDS_CFILES): Remove elf-nacl.c.
1229 * Makefile.in: Regenerate.
1230 * po/SRC-POTFILES.in: Regenerate.
1231
5d42dfb5
AM
12322013-02-04 Alan Modra <amodra@gmail.com>
1233
1234 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Delete.
1235 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Delete.
1236
c57da1a7
AM
12372013-02-01 Alan Modra <amodra@gmail.com>
1238
1239 * elf64-ppc.c (dec_dynrel_count): Don't error when elf_gc_sweep_symbol
1240 clears def_regular.
1241
c0fd7846
TG
12422013-01-31 Tristan Gingold <gingold@adacore.com>
1243
1244 * mach-o.c (bfd_mach_o_scan): Call bfd_mach_o_flatten_sections
1245 earlier. Fix status checking of bfd_mach_o_scan_start_address.
1246 (bfd_mach_o_scan_start_address): Handle LC_MAIN.
1247
b45b6908
AM
12482013-01-31 Alan Modra <amodra@gmail.com>
1249 David S. Miller <davem@davemloft.net>
1250
1251 PR ld/15056
1252 * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Handle implicit
1253 references to __tls_get_addr.
1254 * elf32-tilpro.c (tilepro_elf_gc_mark_hook): Likewise. Correct
1255 vtinherit and vtentry reloc handling too.
1256 * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): As for tilepro.
1257
bcaa2f82
AM
12582013-01-31 Alan Modra <amodra@gmail.com>
1259
1260 * elf64-ppc.c (ppc_stub_name): Trim off trailing "+0".
1261
22aa0c7e
AM
12622013-01-31 Alan Modra <amodra@gmail.com>
1263
1264 * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
1265
bc30df16
AM
12662013-01-28 Alan Modra <amodra@gmail.com>
1267
1268 * elf64-ppc.c: Use %T to print symbols names and remove redundant
1269 "relocation" in error messages throughout file.
1270 (ppc64_elf_relocate_section): Remove sibling call error message,
1271 replace with "call lacks nop". Specially report errors for
1272 branches to function entry points via OPD lookup and branches
1273 to stubs. Remove NULL symbol handling now done by %T.
1274
89d7b8aa
AM
12752013-01-28 Alan Modra <amodra@gmail.com>
1276
1277 * archive.c (bfd_generic_archive_p): Return target and keep
1278 ardata on partial matches.
1279 * format.c (bfd_check_format_matches): Adjust for above
1280 change. Remove bfd_error_file_ambiguously_recognized dead
1281 code.
1282
c9ba0c87
AM
12832013-01-26 Alan Modra <amodra@gmail.com>
1284
1285 * bfd.c (struct bfd_preserve, bfd_preserve_save, bfd_preserve_restore,
1286 bfd_preserve_finish): Move to..
1287 * format.c: ..here, splitting out..
1288 (bfd_reinit): ..this. New function.
1289 (bfd_check_format_matches): Use bfd_preserve_save/restore to
1290 keep bfd state for a match.
1291 * elfcode.h (elf_object_p): Don't use bfd_preserve_save/restore.
1292 * elfcore.h (elf_core_file_p): Likewise.
1293 * mach-o.c (bfd_mach_o_header_p): Likewise.
1294 * pef.c (bfd_pef_object_p, bfd_pef_xlib_object_p): Likewise.
1295 * xsym.c (bfd_sym_object_p): Likewise.
1296 * mmo.c (mmo_scan): Clear abfd->symcount.
1297 * opncls.c (_bfd_new_bfd): Use a smaller section hash table.
1298 * section.c (bfd_section_list_clear): Clear section_htab.count.
1299 * bfd-in2.h: Regenerate.
1300
d79dcc73
NC
13012013-01-25 Michael Schewe <michael.schewe@gmx.net>
1302
1303 * elf32-h8300.c (elf32_h8_relax_section): When checking for a
1304 second reloc, make sure that the reloc potentially exists first.
1305
78c8d46c
NC
13062013-01-24 Nick Clifton <nickc@redhat.com>
1307
1308 * archures.c: Add bfd_mach_v850e3v5.
1309 * bfd-in2.h: Regenerate.
1310 * cpu-v850.c: Add entries for v850e2v5 and v850e3v5.
1311 * cpu-v850_rh850.c: Likewise.
1312 * elf32-v850.c: Add support for v850e3v5 architecture.
1313
1a18f0ae
NC
13142013-01-23 Markos Chandras <markos.chandras@imgtec.com>
1315
1316 * elf32-metag.c: Error on HIADDR16/LOADDR16 in shared link.
1317
f65a9e53
AM
13182013-01-23 Leif Ekblad <leif@rdos.net>
1319
1320 * config.bfd (x86_64-*-rdos*): Remove targ_selvecs.
1321
3bea1fcb
L
13222013-01-18 H.J. Lu <hongjiu.lu@intel.com>
1323
1324 * elf32-i386.c (elf_i386_allocate_dynrelocs): Clear pc_count for
1325 non-zero TLS symbol.
1326 (elf_i386_relocate_section): Resolve size relocation against
1327 non-zero TLS symbol.
1328 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Clear pc_count
1329 for non-zero TLS symbol.
1330 (elf_x86_64_relocate_section): Resolve size relocation against
1331 non-zero TLS symbol.
1332
b1b00fcc
MF
13332013-01-18 Mike Frysinger <vapier@gentoo.org>
1334
1335 * elflink.c (bfd_elf_size_dynamic_sections): Only add DT_RPATH
1336 when new_dtags is false. Only add DT_RUNPATH when new_dtags is
1337 true.
1338
06a6a421
L
13392013-01-17 H.J. Lu <hongjiu.lu@intel.com>
1340
1341 * elf32-i386.c (elf_i386_check_relocs): Count size relocation as
1342 PC-relative relocation.
1343 * elf64-x86-64.c (elf_x86_64_check_relocs): Count size relocation
1344 as PC-relative relocation.
1345
6a3e1bae
L
13462013-01-16 H.J. Lu <hongjiu.lu@intel.com>
1347
1348 * elf32-i386.c (elf_i386_check_relocs): Update R_386_SIZE32
1349 check.
1350 (elf_i386_relocate_section): Don't check TLS for R_386_SIZE32.
1351
1352 * elf64-x86-64.c (elf_x86_64_check_relocs): Update R_X86_64_SIZE32
1353 and R_X86_64_SIZE64 check.
1354 (elf_x86_64_relocate_section): Don't check TLS for R_X86_64_SIZE32
1355 nor R_X86_64_SIZE64.
1356
1788fc08
L
13572013-01-16 H.J. Lu <hongjiu.lu@intel.com>
1358
1359 * bfd-in2.h: Regenerated.
1360 * libbfd.h: Likewise.
1361
1362 * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry.
1363 (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32.
1364 (elf_i386_check_relocs): Handle R_386_SIZE32.
1365 (elf_i386_gc_sweep_hook): Likewise.
1366 (elf_i386_relocate_section): Likewise.
1367
1368 * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32
1369 and R_X86_64_SIZE64 entries.
1370 (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64,
1371 (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32.
1372 (elf_x86_64_reloc_name_lookup): Likewise.
1373 (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and
1374 R_X86_64_SIZE64.
1375 (elf_x86_64_gc_sweep_hook): Likewise.
1376 (elf_x86_64_relocate_section): Likewise.
1377
1378 * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and
1379 BFD_RELOC_SIZE64.
1380
1e536451
L
13812013-01-15 H.J. Lu <hongjiu.lu@intel.com>
1382
1383 * elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE
1384 with R_X86_64_RELATIVE64.
1385
77bf820f
NC
13862013-01-15 Nick Clifton <nickc@redhat.com>
1387
1388 * elf32-msp430.c: Fix spelling typo.
1389
e2458743
AM
13902013-01-15 Alan Modra <amodra@gmail.com>
1391
1392 * elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to
1393 plt-thread-safe.
1394
405bf443
AM
13952013-01-14 Alan Modra <amodra@gmail.com>
1396
1397 PR binutils/14813
1398 * bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06.
1399 (memory_bclose): Likewise. Return 0 on success.
1400 * cache.c (cache_bclose): Likewise.
1401 * opncls.c (opncls_bclose, bfd_close): Likewise.
1402 * vms-lib.c (vms_lib_bclose): Likewise.
1403 * libbfd.h: Regenerate.
1404
ee659f1f
AM
14052013-01-13 Alan Modra <amodra@gmail.com>
1406
1407 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.
1408 Add ref_dynamic_nonweak.
1409 * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete.
1410 (_bfd_elf_merge_symbol): Don't call above function. Move
1411 setting of ref_dynamic_nonweak and dynamic_def earlier. Don't
1412 clear dynamic_def.
1413 (elf_link_add_object_symbols): Delete redundant "override" test.
1414 Don't set dynamic_def here.
1415 (elf_link_output_extsym): Update.
1416
68c4a57e
L
14172013-01-12 H.J. Lu <hongjiu.lu@intel.com>
1418
1419 * elf32-i386.c (elf_i386_check_relocs): Set bfd errror for
1420 normal and TLS symbol access.
1421 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1422
02be4619
AM
14232013-01-12 Alan Modra <amodra@gmail.com>
1424
1425 * elf-bfd.h (_bfd_elf_strtab_refcount): Declare.
1426 * elf-strtab.c (_bfd_elf_strtab_refcount): New function.
1427 * elflink.c (elf_add_dt_needed_tag): Use _bfd_elf_strtab_refcount.
1428
a4542f1b
AM
14292013-01-12 Alan Modra <amodra@gmail.com>
1430
1431 PR ld/12549
1432 * elf-bfd.h (_bfd_elf_strtab_clear_refs): Declare.
1433 (_bfd_elf_strtab_clear_all_refs): Define.
1434 * elf-strtab.c (_bfd_elf_strtab_clear_refs): New function.
1435 (_bfd_elf_strtab_clear_all_refs): Delete.
1436 * elflink.c (elf_link_add_object_symbols): Clear out added
1437 strtab refs. Correct handling of warning common symbols.
1438
68ffbac6
L
14392013-01-10 H.J. Lu <hongjiu.lu@intel.com>
1440
1441 * aout0.c: Remove trailing white spaces.
1442 * archive.c: Likewise.
1443 * archures.c: Likewise.
1444 * bfd-in.h: Likewise.
1445 * bfd-in2.h: Likewise.
1446 * coff-alpha.c: Likewise.
1447 * coff-i860.c: Likewise.
1448 * coff-mips.c: Likewise.
1449 * coff-ppc.c: Likewise.
1450 * coff-tic80.c: Likewise.
1451 * coff-x86_64.c: Likewise.
1452 * coff-z80.c: Likewise.
1453 * coffcode.h: Likewise.
1454 * coffgen.c: Likewise.
1455 * cofflink.c: Likewise.
1456 * compress.c: Likewise.
1457 * corefile.c: Likewise.
1458 * cpu-arm.c: Likewise.
1459 * cpu-avr.c: Likewise.
1460 * cpu-bfin.c: Likewise.
1461 * cpu-cr16.c: Likewise.
1462 * cpu-cr16c.c: Likewise.
1463 * cpu-crx.c: Likewise.
1464 * cpu-h8300.c: Likewise.
1465 * cpu-i386.c: Likewise.
1466 * cpu-lm32.c: Likewise.
1467 * cpu-m68k.c: Likewise.
1468 * cpu-moxie.c: Likewise.
1469 * cpu-msp430.c: Likewise.
1470 * cpu-sh.c: Likewise.
1471 * cpu-xc16x.c: Likewise.
1472 * dwarf2.c: Likewise.
1473 * ecofflink.c: Likewise.
1474 * ecoffswap.h: Likewise.
1475 * elf-ifunc.c: Likewise.
1476 * elf-m10300.c: Likewise.
1477 * elf-vxworks.c: Likewise.
1478 * elf32-avr.c: Likewise.
1479 * elf32-avr.h: Likewise.
1480 * elf32-cr16.c: Likewise.
1481 * elf32-cr16c.c: Likewise.
1482 * elf32-cris.c: Likewise.
1483 * elf32-crx.c: Likewise.
1484 * elf32-frv.c: Likewise.
1485 * elf32-hppa.c: Likewise.
1486 * elf32-i860.c: Likewise.
1487 * elf32-ip2k.c: Likewise.
1488 * elf32-iq2000.c: Likewise.
1489 * elf32-m32c.c: Likewise.
1490 * elf32-m68hc1x.c: Likewise.
1491 * elf32-msp430.c: Likewise.
1492 * elf32-mt.c: Likewise.
1493 * elf32-ppc.c: Likewise.
1494 * elf32-rl78.c: Likewise.
1495 * elf32-s390.c: Likewise.
1496 * elf32-score.h: Likewise.
1497 * elf32-sh-symbian.c: Likewise.
1498 * elf32-sh.c: Likewise.
1499 * elf32-spu.c: Likewise.
1500 * elf32-tic6x.c: Likewise.
1501 * elf32-v850.c: Likewise.
1502 * elf32-xc16x.c: Likewise.
1503 * elf32-xtensa.c: Likewise.
1504 * elf64-alpha.c: Likewise.
1505 * elf64-hppa.c: Likewise.
1506 * elf64-ppc.c: Likewise.
1507 * elf64-s390.c: Likewise.
1508 * elfcore.h: Likewise.
1509 * elflink.c: Likewise.
1510 * elfxx-mips.c: Likewise.
1511 * elfxx-sparc.c: Likewise.
1512 * elfxx-tilegx.c: Likewise.
1513 * ieee.c: Likewise.
1514 * libcoff.h: Likewise.
1515 * libpei.h: Likewise.
1516 * libxcoff.h: Likewise.
1517 * linker.c: Likewise.
1518 * mach-o-i386.c: Likewise.
1519 * mach-o-target.c: Likewise.
1520 * mach-o.c: Likewise.
1521 * mach-o.h: Likewise.
1522 * mmo.c: Likewise.
1523 * opncls.c: Likewise.
1524 * pdp11.c: Likewise.
1525 * pe-x86_64.c: Likewise.
1526 * peXXigen.c: Likewise.
1527 * pef-traceback.h: Likewise.
1528 * pei-x86_64.c: Likewise.
1529 * peicode.h: Likewise.
1530 * plugin.c: Likewise.
1531 * reloc.c: Likewise.
1532 * riscix.c: Likewise.
1533 * section.c: Likewise.
1534 * som.c: Likewise.
1535 * syms.c: Likewise.
1536 * tekhex.c: Likewise.
1537 * ticoff.h: Likewise.
1538 * vaxbsd.c: Likewise.
1539 * xcofflink.c: Likewise.
1540 * xtensa-isa.c: Likewise.
1541
a3c62988
NC
15422013-01-10 Will Newton <will.newton@imgtec.com>
1543
1544 * Makefile.am: Add Meta.
1545 * Makefile.in: Regenerate.
1546 * archures.c (bfd_mach_metag): New.
1547 * bfd-in2.h: Regenerate.
1548 * config.bfd: Add Meta.
1549 * configure: Regenerate.
1550 * configure.in: Add Meta.
1551 * cpu-metag.c: New file.
1552 * elf-bfd.h: Add Meta.
1553 * elf32-metag.c: New file.
1554 * elf32-metag.h: New file.
1555 * libbfd.h: Regenerate.
1556 * reloc.c: Add Meta relocations.
1557 * targets.c: Add Meta.
1558
652451f8
YZ
15592013-01-08 Yufeng Zhang <yufeng.zhang@arm.com>
1560
1561 * elf-bfd.h (elfcore_write_aarch_tls): Add prototype.
1562 (elfcore_write_aarch_hw_break): Likewise.
1563 (elfcore_write_aarch_hw_watch): Likewise.
1564 * elf.c (elfcore_grok_aarch_tls): New function.
1565 (elfcore_grok_aarch_hw_break): Likewise.
1566 (elfcore_grok_aarch_hw_watch): Likewise.
1567 (elfcore_grok_note): Call the new functions to handle the
1568 corresponding notes.
1569 (elfcore_write_aarch_tls): New function.
1570 (elfcore_write_aarch_hw_break): Likewise.
1571 (elfcore_write_aarch_hw_watch): Likewise.
1572 (elfcore_write_register_note): Call the new functions to handle the
1573 corresponding pseudo sections.
1574
45a466b5
TT
15752013-01-07 Tom Tromey <tromey@redhat.com>
1576
1577 * section.c (_bfd_std_section): Rename from std_section.
f75e0e33
AM
1578 (bfd_com_section_ptr, bfd_und_section_ptr, bfd_abs_section_ptr)
1579 (STD_SECTION): Update.
45a466b5
TT
1580 * bfd-in2.h: Rebuild.
1581
e407c74b
NC
15822013-01-04 Juergen Urban <JuergenUrban@gmx.de>
1583
1584 * archures.c (bfd_mach_mips5900): Define.
1585 * bfd-in2.h: Regenerate.
1586 * config.bfd: Add mips64-ps2-elf and mips-ps2-elf targets.
1587 * cpu-mips.c: Add support for MIPS r5900.
1588 * elfxx-mips.c: Add support for MIPS r5900 (extension of r4000).
1589
9b239e0e
NC
15902013-01-03 Nickolai Zeldovich <nickolai@csail.mit.edu>
1591 Nick Clifton <nickc@redhat.com>
1592
1593 * elflink.c (get_value): Prevent the use of an undefined shift
1594 operation. Add sanity checks.
1595
bab4becb 15962013-01-02 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
884f2a8d 1597
bab4becb 1598 * config.bfd (cr16*-*-uclinux*): New target support.
884f2a8d 1599
9911c0fc 1600
bab4becb 1601For older changes see ChangeLog-2012
56882138 1602\f
bab4becb 1603Copyright (C) 2013 Free Software Foundation, Inc.
752937aa
NC
1604
1605Copying and distribution of this file, with or without modification,
1606are permitted in any medium without royalty provided the copyright
1607notice and this notice are preserved.
1608
56882138
AM
1609Local Variables:
1610mode: change-log
1611left-margin: 8
1612fill-column: 74
1613version-control: never
1614End:
This page took 0.818011 seconds and 4 git commands to generate.