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