PowerPC ld segfault on script discarding dynamic sections
[deliverable/binutils-gdb.git] / gold / ChangeLog
CommitLineData
6528b6eb
AM
12017-02-22 Alan Modra <amodra@gmail.com>
2
3 * powerpc.cc (Target_powerpc::make_iplt_section): Check that
4 output_section exists before attempting add_output_section_data.
5 (Target_powerpc::make_brlt_section): Likewise.
6
f9029569
VR
72017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
8
9 * mips.cc (Target_mips::Scan::get_reference_flags): Remove
10 gold_unreachable from default case.
11
e242ece1
VR
122017-02-15 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
13
14 PR gold/21111
f9029569
VR
15 * mips.cc (Mips_relocate_functions::relhigher): New method.
16 (Mips_relocate_functions::relhighest): Likewise.
17 (mips_get_size_for_reloc): Add support for relocs: R_MIPS_HIGHER and
18 R_MIPS_HIGHEST.
19 (Target_mips::Scan::local): Add support for relocs: R_MIPS_HIGHER,
20 R_MIPS_HIGHEST, R_MICROMIPS_HIGHER and R_MICROMIPS_HIGHEST.
21 (Target_mips::Scan::global): Likewise.
22 (Target_mips::Scan::get_reference_flags): Likewise.
23 (Target_mips::Relocate::relocate): Call static methods for resolving
24 HIGHER and HIGHEST relocations.
e242ece1 25
4aebb631
RC
262017-02-03 Rahul Chaudhry <rahulchaudhry@google.com>
27
28 * x86_64.cc (Target_x86_64::do_can_check_for_function_pointers):
29 Return true even when building pie binaries.
30 (Target_x86_64::possible_function_pointer_reloc): Check opcode
31 for R_X86_64_PC32 relocations.
32 (Target_x86_64::local_reloc_may_be_function_pointer): Pass
33 extra arguments to local_reloc_may_be_function_pointer.
34 (Target_x86_64::global_reloc_may_be_function_pointer): Likewise.
35 * gc.h (gc_process_relocs): Add check for STT_FUNC.
36 * testsuite/Makefile.am (icf_safe_pie_test): New test case.
37 * testsuite/Makefile.in: Regenerate.
38 * testsuite/icf_safe_pie_test.sh: New shell script.
39
e666304e
AM
402017-02-03 Alan Modra <amodra@gmail.com>
41
42 * powerpc.cc (Powerpc_relobj::make_toc_relative): Don't crash
43 when no .toc section exists.
44
ed35cc4a
CC
452017-01-31 Cary Coutant <ccoutant@gmail.com>
46
47 PR gold/21090
48 * x86_64.cc (Target_x86_64::can_convert_mov_to_lea): Add check
49 for predefined symbol.
50 (Target_x86_64::Relocate::relocate): Fix formatting.
51
741bcbe9
RC
522017-01-23 Rahul Chaudhry <rahulchaudhry@google.com>
53
54 * testsuite/icf_safe_so_test.sh: Use "set -e".
55 * testsuite/icf_safe_test.sh: Likewise.
56 * testsuite/icf_test.sh: Likewise.
57
04bc2a28
VR
582017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
59
60 * mips.cc (Mips_output_data_plt::rel_plt): Remove const from return
61 type.
62 (Target_mips::make_plt_entry): Make the sh_info field of .rel.plt
63 point to .plt.
64
c1f59f8f
VR
652017-01-23 Vladimir Radosavljevic <Vladimir.Radosavljevic@imgtec.com>
66
67 PR gold/21054
68 * mips.cc (Mips_got_info::record_global_got_symbol): Don't add symbol
69 to the dynamic symbol table if it is forced to local visibility.
70 (Target_mips::do_finalize_sections): Don't add __RLD_MAP symbol to the
71 dynamic symbol table if it is forced to local visibility.
72
a24df305
NC
732017-01-20 Nick Clifton <nickc@redhat.com>
74
75 * aarch64.cc (Stub_template_repertoire): Change ST_E_835769_INSNS
76 from a pointer to an array.
77
857e829e
L
782017-01-13 H.J. Lu <hongjiu.lu@intel.com>
79
80 PR gold/21040
81 * powerpc.cc (Powerpc_relobj<size, big_endian>::make_toc_relative):
82 Cast 0x80008000 to uint64_t.
83
aca5eec6
CC
842017-01-12 Cary Coutant <ccoutant@gmail.com>
85
86 * object.cc (Sized_relobj_file): Fix byte counts for calls to memmem.
87
6624f3a1
CC
882017-01-11 Cary Coutant <ccoutant@gmail.com>
89
90 PR gold/21040
91 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
92 Remove unnecessary 'typename' keyword.
93 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
94 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
95 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
96 (Output_data_plt_x86_64_bnd::do_write): Likewise.
97
976e204b
CC
982017-01-11 Cary Coutant <ccoutant@gmail.com>
99
100 PR gold/21040
101 * x86_64.cc (Output_data_plt_x86_64_bnd::do_fill_first_plt_entry):
102 Remove unnecessary 'typename' keyword.
103 (Output_data_plt_x86_64_bnd::do_fill_plt_entry): Likewise.
104 (Output_data_plt_x86_64_bnd::do_fill_tlsdesc_entry): Likewise.
105 (Output_data_plt_x86_64_bnd::fill_aplt_entry): Likewise.
106 * testsuite/copy_test_relro_1.cc (p, b, c, q): Add separate extern
107 declarations.
108
1fa5f68b
CC
1092017-01-11 Cary Coutant <ccoutant@gmail.com>
110
111 PR gold/21039
112 * testsuite/script_test_13.sh: Adjust patterns to work for i386.
113 * testsuite/script_test_15a.sh: Likewise.
114 * testsuite/script_test_15b.sh: Likewise.
115 * testsuite/script_test_15c.sh: Likewise.
116
5edad15d
AM
1172017-01-11 Alan Modra <amodra@gmail.com>
118
119 * powerpc.cc (class Powerpc_copy_relocs): New.
120 (Powerpc_copy_relocs::emit): New function.
121 (Powerpc_relobj::relatoc_, toc_, no_toc_opt_): New variables.
122 (Powerpc_relobj::toc_shndx, set_no_toc_opt, no_toc_opt): New inlines.
123 (Powerpc_relobj::do_relocate_sections): New function.
124 (Powerpc_relobj::make_toc_relative): Likewise.
125 (Powerpc_relobj::do_find_special_sections): Stash away .rela.toc
126 and .toc too.
127 (ok_lo_toc_insn): Move earlier, and handle more insns.
128 (Target_powerpc::Scan::local): If optimizing toc accesses, set
129 no_toc_opt for entries we can't edit. Check insn validity.
130 Emit "toc optimization is not supported" warning, downgraded
131 from error.
132 (Target_powerpc::Scan::global): Likewise.
133 (Target_powerpc::Relocate::relocate): Edit TOC indirect code
134 to TOC relative. Don't emit "toc optimization is not supported"
135 error here.
136
98461510
CC
1372017-01-10 Cary Coutant <ccoutant@gmail.com>
138
139 * aarch64.cc (AArch64_relobj::do_relocate_sections): Call
140 Sized_relobj_file::relocate_section_range().
141 * arm.cc (Arm_relobj::do_relocate_sections): Likewise.
142 * object.h (Sized_relobj_file::relocate_section_range): New method.
143 * reloc.cc (Sized_relobj_file::do_relocate_sections): Move
144 implementation...
145 (Sized_relobj_file::relocate_section_range): ...to new method.
146
f7fd19e2
AM
1472017-01-10 Alan Modra <amodra@gmail.com>
148
149 * testsuite/ver_test_8.sh: Accept .TOC. in lieu of
150 _GLOBAL_OFFSET_TABLE_. Allow zero count.
151 * testsuite/copy_test_relro_1.cc (c, q): New vars.
152 * testsuite/copy_test_relro.cc: Rewrite to test read-only
153 status of variables directly. Reference new vars in
154 read-only data.
155
f159cdb6
AM
1562017-01-10 Alan Modra <amodra@gmail.com>
157
158 * options.h: Add --secure-plt option.
159 * powerpc.cc (Target_powerpc::Scan::local): Detect and error
160 on -fPIC -mbss-plt code.
161 (Target_powerpc::Scan::global): Likewise.
162
3254d32c
AM
1632017-01-09 Alan Modra <amodra@gmail.com>
164
165 * powerpc.cc (Target_powerpc::make_plt_section): Point sh_info of
166 ".rela.plt" at ".plt".
167
0e123f69
AM
1682017-01-07 Alan Modra <amodra@gmail.com>
169
170 * powerpc.cc: Use shorter equivalent elfcpp typedef for
171 Reltype and reloc_size throughout.
172 (Target_powerpc::symval_for_branch): Exclude dynamic symbols.
173 (Target_powerpc::Scan::local): Use local var r_sym.
174 (Target_powerpc::Scan::global: Likewise.
175 (Target_powerpc::Relocate::relocate): Delete shadowing r_sym.
176
2571583a
AM
1772017-01-02 Alan Modra <amodra@gmail.com>
178
179 Update year range in copyright notice of all files.
180
5c1ad6b5 181For older changes see ChangeLog-2016
3499769a 182\f
5c1ad6b5 183Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
184
185Copying and distribution of this file, with or without modification,
186are permitted in any medium without royalty provided the copyright
187notice and this notice are preserved.
188
189Local Variables:
190mode: change-log
191left-margin: 8
192fill-column: 74
193version-control: never
194End:
This page took 0.10423 seconds and 4 git commands to generate.