3a2d6f605a2f1733c2b5b544fbaa82b6a3f4942a
[external/binutils.git] / bfd / ChangeLog
1 2015-01-15  Nick Clifton  <nickc@redhat.com>
2
3         * elf32-msp430.c (msp430_elf_relax_section): Skip unhandled
4         relocs.  Include PC-relative adjustment for R_MSP430X_ABS16
5         relaxation.
6
7 2015-01-15  Alan Modra  <amodra@gmail.com>
8
9         * elflink.c (_bfd_elf_link_omit_section_dynsym): Return true for
10         any output section matching a linker created dynobj section.
11
12 2015-01-15  Alan Modra  <amodra@gmail.com>
13
14         PR 17842
15         * elflink.c (elf_link_output_sym): Assert elf_onesymtab set.
16         (bfd_elf_final_link): Always create a symbol table when emit_relocs.
17         Don't assign symtab file position unless symbols will be output.
18         Merge blocks with condition in common.  Don't call
19         elf_backend_output_arch_local_syms or elf_backend_output_arch_syms
20         unless other symbols are output.  Move assignment of symtab_shndx
21         file position.  Localize variable.
22
23 2015-01-14  Jiong Wang  <jiong.wang@arm.com>
24
25         * elf32-arm.c (elf32_arm_final_link_relocate): Reject R_ARM_32/_NOI when
26         trying to defer them to runtime.
27
28 2015-01-13  Thomas Preud'homme <thomas.preudhomme@arm.com>
29
30         * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND
31         to check if a symbol should be bound symbolically.
32
33 2015-01-13  Jiong Wang  <jiong.wang@arm.com>
34
35         * elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check
36         for TLSLE_MOVW_TPREL_G2.
37
38 2015-01-13  Jiong Wang  <jiong.wang@arm.com>
39
40         PR ld/17415
41         * elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark
42         R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned.
43         * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Correct the
44         bit mask.
45
46 2015-01-12  Terry Guo  <terry.guo@arm.com>
47
48         * elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New
49         function.
50         (_bfd_elf_gc_mark_extra_sections): Use it.
51
52 2015-01-11  H.J. Lu  <hongjiu.lu@intel.com>
53
54         PR ld/17827
55         * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE,
56         only discard space for pc-relative relocs symbols which turn
57         out to need copy relocs.
58
59 2015-01-09  Nick Clifton  <nickc@redhat.com>
60
61         * tekhex.c (getvalue): Fix thinko in test for correct extraction
62         of value.
63         (getsym): Return false if there was not enough data to extract the
64         symbol.
65
66 2015-01-09  Anthony Green  <green@moxielogic.com>
67
68         * elf32-moxie.c (ELF_MACHINE_ALT1): Define.
69
70 2015-01-08  Nick Clifton  <nickc@redhat.com>
71
72         * elf32-msp430.c (msp430_elf_relax_section): Add relaxation of
73         16-bit absolute BR instructions to 10-bit pc-relative JMP
74         instructions.
75
76 2015-01-08  Nick Clifton  <nickc@redhat.com>
77
78         PR binutils/17512
79         * coffcode.h (coff_slurp_symbol_table): Return false if we failed
80         to load the line table.
81         * elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum
82         maxpagesize of 1.
83         * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if
84         the Data Directory Size is too large.
85
86 2015-01-06  H.J. Lu  <hongjiu.lu@intel.com>
87
88         PR binutils/17512
89         * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation.
90         * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
91
92 2015-01-06  Nick Clifton  <nickc@redhat.com>
93
94         PR binutils/17512
95         * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the
96         string table.
97
98         * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1.
99         (bfd_perform_relocation): Include the size of the reloc in the
100         test for an out of range relocation.
101         (bfd_generic_get_relocated_section_contents): Remove reloc range
102         test.
103
104         * coff-i860.c (CALC_ADDEND): Always set an addend value.
105         * tekhex.c (getvalue): Add an end pointer parameter.  Use it to
106         avoid reading off the end of the buffer.
107         (getsym): Likewise.
108         (first_phase): Likewise.
109         (pass_over): Pass an end pointer to the invoked function.
110
111 2015-01-05  H.J. Lu  <hongjiu.lu@intel.com>
112
113         PR binutils/17512
114         * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt
115         input.
116         * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
117
118 2015-01-05  Nick Clifton  <nickc@redhat.com>
119
120         PR binutils/17512
121         * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized
122         is at least big enough for the header to be read.
123         * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs.
124         * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks.
125         (bfd_mach_o_read_command): Prevetn duplicate error messages about
126         unrecognized commands.
127         * syms.c (_bfd_stab_section_find_nearest_line): Add range checks
128         when indexing into the string table.
129
130 2015-01-01  Alan Modra  <amodra@gmail.com>
131
132         Update year range in copyright notice of all files.
133
134 For older changes see ChangeLog-2014
135 \f
136 Copyright (C) 2015 Free Software Foundation, Inc.
137
138 Copying and distribution of this file, with or without modification,
139 are permitted in any medium without royalty provided the copyright
140 notice and this notice are preserved.
141
142 Local Variables:
143 mode: change-log
144 left-margin: 8
145 fill-column: 74
146 version-control: never
147 End: