PR28106, build of 2.37 fails on FreeBSD and Clang
[binutils-gdb.git] / gold / ChangeLog
1 2021-07-20 Alan Modra <amodra@gmail.com>
2
3 PR gold/28106
4 PR gold/27815
5 * gc.h (gc_process_relocs): Use static_cast in Section_id constructor.
6
7 2021-07-17 Michael Krasnyk <michael.krasnyk@gmail.com>
8
9 PR gold/28098
10 * reloc.cc (Track_relocs::advance): Skip R_*_NONE relocation entries
11 with r_sym of zero without counting in advance method.
12
13 2021-07-03 Nick Clifton <nickc@redhat.com>
14
15 * po/gold.pot: Regenerate.
16
17 2021-07-03 Nick Clifton <nickc@redhat.com>
18
19 * 2.37 release branch created.
20
21 2021-05-25 Alan Modra <amodra@gmail.com>
22
23 PR gold/27815
24 * gc.h (gc_process_relocs): Use cast in Section_id constructor.
25
26 2021-05-22 Alan Modra <amodra@gmail.com>
27
28 PR gold/27815
29 * gc.h (gc_process_relocs): Use nullptr in Section_id constructor.
30
31 2021-05-15 Alan Modra <amodra@gmail.com>
32
33 PR 27834
34 * options.cc (General_options::General_options): Init bsymbolic_.
35
36 2021-05-04 Fangrui Song <maskray@google.com>
37
38 PR 27834
39 * options.h (General_options): Make -Bsymbolic and
40 -Bsymbolic-functions special and adjust the help messages. Add
41 enum Bsymbolic_kind and -Bno-symbolic.
42 * options.cc (General_options): Define parse_Bno_symbolic,
43 parse_Bsymbolic_functions, and parse_Bsymbolic.
44
45 2021-03-30 Alan Modra <amodra@gmail.com>
46
47 PR gold/27625
48 * powerpc.cc (Powerpc_relobj): Add no_tls_marker_, tls_marker_,
49 and tls_opt_error_ variables and accessors.
50 (Target_powerpc::Scan::local, global): Call set_tls_marker and
51 set_no_tls_marker for GD and LD code sequence relocations.
52 (Target_powerpc::Relocate::relocate): Downgrade the "lacks marker
53 reloc" error to a warning when safe to do so, and omit the error
54 entirely if not optimising TLS sequences. Do not optimise GD and
55 LD sequences for objects lacking marker relocs.
56 (Target_powerpc::relocate_relocs): Heed no_tls_marker here too.
57
58 2021-03-19 Cary Coutant <ccoutant@gmail.com>
59
60 PR gold/27615
61 * errors.cc (Errors::trace): New method.
62 (gold_trace): New function.
63 * errors.h (Errors::trace): New method.
64 * gold.h (gold_trace): New function.
65 * object.cc (Input_objects::add_object): Use gold_trace to print
66 object file names.
67
68 2021-03-19 Cary Coutant <ccoutant@gmail.com>
69
70 PR gold/pr23870
71 * testsuite/aarch64_pr23870_bar.c: Return a magic value.
72 * testsuite/aarch64_pr23870_foo.c: Check the magic value and return
73 success or failure.
74
75 2021-03-19 Holger Berger <holger.berger@googlemail.com>
76
77 PR gold/26541
78 * output.cc (gold_fallocate): Use errno when calling system fallocate.
79
80 2021-03-19 Cary Coutant <ccoutant@gmail.com>
81
82 PR gold/26585
83 * main.cc (main): Fix typo in previous patch.
84
85 2021-03-19 Duncan Simpson <dr.duncan.p.simpson@gmail.com>
86
87 PR gold/26585
88 * configure.ac: Add check for mallinfo2.
89 * configure: Regenerate.
90 * config.in: Regenerate from previous commit.
91 * main.cc (main): Use mallinfo2 if available.
92
93 2021-03-19 Cary Coutant <ccoutant@gmail.com>
94
95 PR gold/27246
96 * dwarf_reader.cc (Dwarf_abbrev_table::do_get_abbrev): Handle
97 DW_FORM_implicit_const.
98 (Dwarf_ranges_table::read_ranges_table): Add version parameter;
99 Adjust all callers. Look for .debug_rnglists section if DWARF 5.
100 (Dwarf_ranges_table::read_range_list_v5): New method.
101 (Dwarf_die::read_attributes): Handle new DWARF 5 DW_FORM codes.
102 (Dwarf_die::skip_attributes): Likewise.
103 (Dwarf_info_reader::do_parse): Support DWARF 5 unit header format.
104 (Dwarf_info_reader::read_3bytes_from_pointer): New method.
105 (Sized_dwarf_line_info::Sized_dwarf_line_info): Initialize
106 str_buffer_, str_buffer_start, reloc_map_, line_number_map_.
107 Look for .debug_line_str section.
108 (Sized_dwarf_line_info::read_header_prolog): Support DWARF 5 prolog.
109 (Sized_dwarf_line_info::read_header_tables): Rename to...
110 (Sized_dwarf_line_info::read_header_tables_v2): ... this.
111 (Sized_dwarf_line_info::read_header_tables_v5): New method.
112 (Sized_dwarf_line_info::process_one_opcode): Insert missing "this->".
113 Change advance_line to signed int64_t.
114 (Sized_dwarf_line_info::read_lines): Add endptr parameter; adjust
115 callers. Insert missing "this->".
116 (Sized_dwarf_line_info::read_line_mappings): Support DWARF 5.
117 (Sized_dwarf_line_info::do_addr2line): Add debug code.
118 * dwarf_reader.h (Dwarf_abbrev_table::Attribute): Add implicit_const
119 field. Adjust constructor.
120 (Dwarf_abbrev_table::add_sttribute): Add implicit_const parameter.
121 (Dwarf_ranges_table::read_ranges_table): Add version parameter.
122 (Dwarf_ranges_table::read_range_list_v5): New method.
123 (Dwarf_die): Remove unused attr_off field.
124 (Dwarf_info_reader::Dwarf_info_reader): Initialize unit_type_ field.
125 (Dwarf_info_reader::is_type_unit): New method.
126 (Dwarf_info_reader::read_3bytes_from_pointer): New method.
127 (Dwarf_info_reader::read_range_list): Call read_range_list_v5 for
128 DWARF 5 range lists.
129 (Dwarf_info_reader::is_type_unit_): Remove.
130 (Dwarf_info_reader::unit_type_): New field.
131 (Sized_dwarf_line_info::~Sized_dwarf_line_info): Delete
132 str_buffer_start_.
133 (Sized_dwarf_line_info::read_header_tables): Rename to...
134 (Sized_dwarf_line_info::read_header_tables_v2): ... this.
135 (Sized_dwarf_line_info::read_header_tables_v5): New method.
136 (Sized_dwarf_line_info::read_lines): Add endptr parameter.
137 (Sized_dwarf_line_info::Dwarf_line_infoHeader): Add address_size field.
138 (Sized_dwarf_line_info::str_buffer_): New field.
139 (Sized_dwarf_line_info::str_buffer_end_): New field.
140 (Sized_dwarf_line_info::str_buffer_start_): New field.
141 (Sized_dwarf_line_info::end_of_header_length_): New field.
142 (Sized_dwarf_line_info::end_of_unit_): New field.
143
144 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
145
146 PR gold/27246
147 * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog):
148 Skip address size and segment selector for DWARF5.
149
150 2021-01-19 Alan Modra <amodra@gmail.com>
151
152 PR 27203
153 * powerpc.cc (do_plt_fde_location): Remove doing_static_link
154 assertion.
155
156 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
157
158 * testsuite/ifuncmain6pie.c: Remove non-JUMP_SLOT relocations
159 against foo in ifuncmod6.so.
160 * testsuite/ifuncmod6.c: Likewise.
161
162 2021-01-14 Nick Clifton <nickc@redhat.com>
163
164 * po/fr.po: Updated French translation.
165
166 2021-01-11 Nick Clifton <nickc@redhat.com>
167
168 * po/sr.po: Updated Serbian translation.
169 * po/uk.po: Updated Ukranian translation.
170
171 2021-01-09 Nick Clifton <nickc@redhat.com>
172
173 * 2.36 release branch crated.
174
175 2021-01-03 Alan Modra <amodra@gmail.com>
176
177 PR 27140
178 * powerpc.cc (Target_powerpc::Branch_info::make_stub): Only access
179 object->st_other() when 64-bit.
180 (Stub_table::add_long_branch_entry): Ignore "other" when 32-bit.
181
182 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
183
184 * tilegx.cc: Correct comment spelling.
185
186 2021-01-01 Alan Modra <amodra@gmail.com>
187
188 Update year range in copyright notice of all files.
189
190 For older changes see ChangeLog-2020
191 \f
192 Copyright (C) 2021 Free Software Foundation, Inc.
193
194 Copying and distribution of this file, with or without modification,
195 are permitted in any medium without royalty provided the copyright
196 notice and this notice are preserved.
197
198 Local Variables:
199 mode: change-log
200 left-margin: 8
201 fill-column: 74
202 version-control: never
203 End: