Commit | Line | Data |
---|---|---|
95148614 NA |
1 | 2021-02-02 Nick Alcock <nick.alcock@oracle.com> |
2 | ||
3 | * configure.ac (CTF_LIBADD): Remove explicit -lintl population in | |
4 | favour of LIBINTL. | |
5 | * Makefile.am (libctf_nobfd_la_LIBADD): No longer explicitly | |
6 | include $(LIBINTL). | |
7 | (check-DEJAGNU): Pass down to tests as well. | |
8 | * configure: Regenerated. | |
9 | * Makefile.in: Likewise. | |
10 | ||
ee87f50b NA |
11 | 2021-01-27 Nick Alcock <nick.alcock@oracle.com> |
12 | ||
13 | * ctf-string.c (ctf_str_add): Treat adding a NULL as adding "". | |
14 | (ctf_str_add_ref): Likewise. | |
15 | (ctf_str_add_external): Likewise. | |
16 | * ctf-types.c (ctf_type_name_raw): Always return "" for offset 0. | |
17 | * ctf-dedup.c (ctf_dedup_multiple_input_dicts): Don't armour | |
18 | against NULL name. | |
19 | (ctf_dedup_maybe_synthesize_forward): Likewise. | |
20 | ||
5dacd11d NA |
21 | 2021-01-27 Nick Alcock <nick.alcock@oracle.com> |
22 | ||
23 | * ctf-create.c (ctf_serialize): Fix shadowing. | |
24 | ||
caa17049 NA |
25 | 2021-01-27 Nick Alcock <nick.alcock@oracle.com> |
26 | ||
27 | * ctf-create.c (ctf_add_encoded): Add check for non-empty name. | |
28 | (ctf_add_forward): Likewise. | |
29 | (ctf_add_typedef): Likewise. | |
30 | ||
78f28b89 NA |
31 | 2021-01-27 Nick Alcock <nick.alcock@oracle.com> |
32 | ||
33 | * ctf-open.c (init_types): Rip out code to check anonymous typedef | |
34 | nodes. | |
35 | * ctf-create.c (ctf_add_reftype): Likewise. | |
36 | * ctf-lookup.c (refresh_pptrtab): Likewise. | |
37 | ||
35a01a04 NA |
38 | 2021-01-27 Nick Alcock <nick.alcock@oracle.com> |
39 | ||
40 | * ctf-impl.c (_libctf_nonnull_): Add parameters. | |
41 | (LCTF_LINKING): New flag. | |
42 | (ctf_dict_t) <ctf_link_flags>: Mention it. | |
43 | * ctf-link.c (ctf_link): Keep LCTF_LINKING set across call. | |
44 | (ctf_write): Likewise, including in child dictionaries. | |
45 | (ctf_link_shuffle_syms): Make sure ctf_dynsyms is NULL if there | |
46 | are no reported symbols. | |
47 | * ctf-create.c (symtypetab_delete_nonstatic_vars): Make sure | |
48 | the variable has been reported as a symbol by the linker. | |
49 | (symtypetab_skippable): Mention relationship between SYMFP and the | |
50 | flags. | |
51 | (symtypetab_density): Adjust nonnullity. Exit early if no symbols | |
52 | were reported and force-indexing is off (i.e., we are doing a | |
53 | final link). | |
54 | (ctf_serialize): Handle the !LCTF_LINKING case by writing out an | |
55 | indexed, sorted symtypetab (and allow SYMFP to be NULL in this | |
56 | case). Turn sorting off if this is a non-final link. Only delete | |
57 | nonstatic vars if we are filtering symbols and the linker has | |
58 | reported some. | |
59 | * testsuite/libctf-regression/nonstatic-var-section-ld-r*: | |
60 | New test of variable and symtypetab section population when | |
61 | ld -r is used. | |
62 | * testsuite/libctf-regression/nonstatic-var-section-ld-executable.lk: | |
63 | Likewise, when ld of an executable is used. | |
64 | * testsuite/libctf-regression/nonstatic-var-section-ld.lk: | |
65 | Likewise, when ld -shared alone is used. | |
66 | * testsuite/libctf-regression/nonstatic-var-section-ld*.c: | |
67 | Lookup programs for the above. | |
68 | * testsuite/libctf-writable/symtypetab-nonlinker-writeout.*: New | |
69 | test, testing survival of symbols across ctf_write paths. | |
70 | * testsuite/lib/ctf-lib.exp (run_lookup_test): New option, | |
71 | nonshared, suppressing linking of the SOURCE with -shared. | |
72 | ||
26503e2f NA |
73 | 2021-01-19 Nick Alcock <nick.alcock@oracle.com> |
74 | ||
75 | * ctf-create.c (membadd): Transform ""-named members into | |
76 | NULL-named ones. | |
77 | * testsuite/libctf-regression/type-add-unnamed-struct*: New test. | |
78 | ||
e05a3e5a NA |
79 | 2021-01-19 Nick Alcock <nick.alcock@oracle.com> |
80 | ||
81 | * ctf-lookup.c (ctf_lookup_by_name_internal): Do not return the | |
82 | base type if looking up a nonexistent pointer type. | |
83 | * testsuite/libctf-regression/pptrtab*: Test it. | |
84 | ||
5347ed60 AM |
85 | 2021-01-13 Alan Modra <amodra@gmail.com> |
86 | ||
87 | * Makefile.in: Regenerate. | |
88 | ||
d546b610 L |
89 | 2021-01-12 H.J. Lu <hongjiu.lu@intel.com> |
90 | ||
91 | PR binutils/26792 | |
92 | * configure.ac: Use GNU_MAKE_JOBSERVER. | |
93 | * aclocal.m4: Regenerated. | |
94 | * configure: Likewise. | |
95 | ||
83b33c6c L |
96 | 2021-01-11 H.J. Lu <hongjiu.lu@intel.com> |
97 | ||
98 | PR ld/27173 | |
99 | * configure: Regenerated. | |
100 | ||
a4966cd9 L |
101 | 2021-01-09 H.J. Lu <hongjiu.lu@intel.com> |
102 | ||
103 | * configure: Regenerated. | |
104 | ||
055bc77a NC |
105 | 2021-01-09 Nick Clifton <nickc@redhat.com> |
106 | ||
107 | * 2.36 release branch crated. | |
108 | ||
64307045 AM |
109 | 2021-01-09 Alan Modra <amodra@gmail.com> |
110 | ||
111 | * configure: Regenerate. | |
112 | ||
f4782128 ST |
113 | 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org> |
114 | ||
115 | * configure: Regenerate. | |
116 | ||
0814dbfb NA |
117 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
118 | ||
119 | * testsuite/libctf-lookup/struct-iteration.c (main): | |
120 | ctf_member_count returns an int. | |
121 | ||
70d3120f NA |
122 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
123 | ||
124 | * Makefile.am (BASEDIR): New. | |
125 | (BFDDIR): Likewise. | |
126 | (check-DEJAGNU): Add development.exp to prerequisites. | |
127 | (development.exp): New. | |
128 | (CONFIG_STATUS_DEPENDENCIES): New. | |
129 | (EXTRA_DEJAGNU_SITE_CONFIG): Likewise. | |
130 | (DISTCLEANFILES): Likewise. | |
131 | * Makefile.in: Regenerated. | |
132 | * testsuite/lib/ctf-lib.exp (check_ctf_available): Return boolean. | |
133 | * testsuite/libctf-lookup/lookup.exp: Call check_ctf_available. | |
134 | * testsuite/libctf-regression/regression.exp: Likewise. | |
135 | ||
b4b6ea46 NA |
136 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
137 | ||
138 | * ctf-types.c (ctf_type_aname): Print forwards to unions and enums | |
139 | properly. | |
140 | ||
abe4ca69 NA |
141 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
142 | ||
143 | * ctf-impl.h (ctf_dict_t) <ctf_pptrtab>: New. | |
144 | <ctf_pptrtab_len>: New. | |
145 | <ctf_pptrtab_typemax>: New. | |
146 | * ctf-create.c (ctf_serialize): Update accordingly. | |
147 | (ctf_add_reftype): Note that we don't need to update pptrtab here, | |
148 | despite updating ptrtab. | |
149 | * ctf-open.c (ctf_dict_close): Destroy the pptrtab. | |
150 | (ctf_import): Likewise. | |
151 | (ctf_import_unref): Likewise. | |
152 | * ctf-lookup.c (grow_pptrtab): New. | |
153 | (refresh_pptrtab): New, update a pptrtab. | |
154 | (ctf_lookup_by_name): Turn into a wrapper around (and rename to)... | |
155 | (ctf_lookup_by_name_internal): ... this: construct the pptrtab, and | |
156 | use it in addition to the parent's ptrtab when parent dicts are | |
157 | searched. | |
158 | * testsuite/libctf-regression/regression.exp: New testsuite for | |
159 | regression tests. | |
160 | * testsuite/libctf-regression/pptrtab*: New test. | |
161 | * testsuite/libctf-writable/writable.exp: New testsuite for tests of | |
162 | writable CTF dicts. | |
163 | * testsuite/libctf-writable/pptrtab*: New test. | |
164 | ||
8769046e NA |
165 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
166 | ||
167 | * ctf-archive.c (ctf_archive_iter): Remove outdated comment. | |
168 | ||
6c3a3877 NA |
169 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
170 | ||
171 | * ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to... | |
172 | <ctn_next>: ... here. | |
173 | * ctf-util.c (ctf_next_destroy): Unconditionally destroy it. | |
174 | * ctf-lookup.c (ctf_symbol_next): Adjust accordingly. | |
175 | * ctf-types.c (ctf_member_iter): Reimplement in terms of... | |
176 | (ctf_member_next): ... this. Support recursive unnamed member | |
177 | iteration (off by default). | |
178 | (ctf_member_info): Look up members in unnamed sub-structs. | |
179 | * ctf-dedup.c (ctf_dedup_rhash_type): Adjust ctf_member_next call. | |
180 | (ctf_dedup_emit_struct_members): Likewise. | |
181 | * testsuite/libctf-lookup/struct-iteration-ctf.c: Test empty unnamed | |
182 | members, and a normal member after the end. | |
183 | * testsuite/libctf-lookup/struct-iteration.c: Verify that | |
184 | ctf_member_count is consistent with the number of successful returns | |
185 | from a non-recursive ctf_member_next. | |
186 | * testsuite/libctf-lookup/struct-iteration-*: New, test iteration | |
187 | over struct members. | |
188 | * testsuite/libctf-lookup/struct-lookup.c: New test. | |
189 | * testsuite/libctf-lookup/struct-lookup.lk: New test. | |
190 | ||
abed0b07 NA |
191 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
192 | ||
193 | * ctf-link.c (ctf_link_warn_outdated_inputs): New. | |
194 | (ctf_link_write): Call it. | |
195 | ||
9bc76971 NA |
196 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
197 | ||
198 | * testsuite/libctf-lookup/enum-symbol.lk: New symbol-lookup test. | |
199 | * testsuite/libctf-lookup/enum-symbol-ctf.c: New CTF input. | |
200 | * testsuite/libctf-lookup/enum-symbol.c: New lookup test. | |
201 | ||
c59e30ed NA |
202 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
203 | ||
204 | * Makefile.am (EXPECT): New. | |
205 | (RUNTEST): Likewise. | |
206 | (RUNTESTFLAGS): Likewise. | |
207 | (CC_FOR_TARGET): Likewise. | |
208 | (check-DEJAGNU): Likewise. | |
209 | (AUTOMAKE_OPTIONS): Add dejagnu. | |
210 | * Makefile.in: Regenerated. | |
211 | * testsuite/config/default.exp: New. | |
212 | * testsuite/lib/ctf-lib.exp: Likewise. | |
213 | * testsuite/libctf-lookup/enum.lk: New test. | |
214 | * testsuite/libctf-lookup/enum-ctf.c: New CTF input. | |
215 | * testsuite/libctf-lookup/enum.c: New lookup test. | |
216 | * testsuite/libctf-lookup/ambiguous-struct*.c: New test. | |
217 | * testsuite/libctf-lookup/lookup.exp: New. | |
218 | ||
1038406a NA |
219 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
220 | ||
221 | * configure.ac (BFD_LIBADD): Remove. | |
222 | (BFD_DEPENDENCIES): Likewise. Remove associated cases. | |
223 | (SHARED_LIBADD): Rename to... | |
224 | (CTF_LIBADD): ... this. Stick in a suitable libiberty even when | |
225 | linking statically. | |
226 | * Makefile.am (libctf_nobfd_la_LIBADD): Adjust accordingly. | |
227 | libctf uses libintl. | |
228 | (libctf_la_LIBADD): Reference libbfd.la directly, not via | |
229 | BFD_LIBADD. | |
230 | (libctf_la_DEPENDENCIES): Remove. | |
231 | * Makefile.in: Regenerate. | |
232 | * configure: Likewise. | |
233 | ||
37002871 NA |
234 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
235 | ||
236 | * ctf-decl.c (ctf_decl_push): Exclude slices from the decl stack. | |
237 | * ctf-types.c (ctf_type_aname): No longer deal with slices here. | |
238 | * ctf-dump.c (ctf_dump_membstate_t) <cdm_toplevel_indent>: Constify. | |
239 | (CTF_FT_REFS): New. | |
240 | (CTF_FT_BITFIELD): Likewise. | |
241 | (CTF_FT_ID): Likewise. | |
242 | (ctf_dump_member): Do not do indentation here. Migrate the | |
243 | type-printing parts of this into... | |
244 | (ctf_dump_format_type): ... here, to be shared by all type printers. | |
245 | Get the errno value for non-representable types right. Do not print | |
246 | bitfield info for non-bitfields. Improve the format and indentation | |
247 | of other type output. Shuffle spacing around to make all indentation | |
248 | either 'width of column' or 4 chars. | |
249 | (ctf_dump_label): Pass CTF_FT_REFS to ctf_dump_format_type. | |
250 | (ctf_dump_objts): Likewise. Spacing shuffle. | |
251 | (ctf_dump_var): Likewise. | |
252 | (type_hex_digits): Migrate down in the file, to above its new user. | |
253 | (ctf_dump_type): Indent here instead. Pass CTF_FT_REFS to | |
254 | ctf_dump_format_type. Don't trim off excess linefeeds now we no | |
255 | longer generate them. Dump enumerated types. | |
256 | ||
ffeece6a NA |
257 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
258 | ||
259 | * ctf-types.c (ctf_type_resolve): Improve comment. | |
260 | (ctf_type_size): Yield ECTF_INCOMPLETE when applied to forwards. | |
261 | Emit errors into the right dict. | |
262 | (ctf_type_align): Likewise. | |
263 | * ctf-create.c (ctf_add_member_offset): Yield ECTF_INCOMPLETE | |
264 | when adding a member without explicit offset when this member, or | |
265 | the previous member, is incomplete. | |
266 | * ctf-dump.c (ctf_dump_format_type): Do not try to print the size of | |
267 | forwards. | |
268 | (ctf_dump_member): Do not try to print their alignment. | |
269 | ||
91e7ce2f NA |
270 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
271 | ||
272 | * ctf-dump.c (ctf_dump_objts): Dump by calling ctf_dump_format_type. | |
273 | (ctf_dump_format_type): Don't emit the size for function objects. | |
274 | Dump the element type of arrays like we dump the pointed-to type of | |
275 | pointers, etc. | |
276 | ||
57f97d0e NA |
277 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
278 | ||
279 | * ctf-dump.c (ctf_dump_format_type): Add 0x to hex type IDs. | |
280 | (ctf_dump_header): Add 0x to the hex magic number. | |
281 | (ctf_dump_str): Add 0x to the hex string offsets. | |
282 | (ctf_dump_membstate_t) <cdm_toplevel_indent>: New. | |
283 | (ctf_dump_type): Adjust. Free it when we're done. | |
284 | (type_hex_digits): New. | |
285 | (ctf_dump_member): Align output depending on the width of the type | |
286 | ID being generated. Use printf padding, not a loop, to generate | |
287 | indentation. | |
288 | ||
b09ad6ea NA |
289 | 2021-01-05 Nick Alcock <nick.alcock@oracle.com> |
290 | ||
291 | * ctf-decl.c (ctf_decl_push): Don't print array decls backwards. | |
292 | ||
a7c23ac9 NB |
293 | 2021-01-04 Nicolas Boulenguez <nicolas@debian.org> |
294 | ||
295 | PR 27117 | |
296 | * configure.ac: Make AC_CONFIG_MACRO_DIR consistent with | |
297 | ACLOCAL_AMFLAGS -I dirs. | |
298 | * configure: Regenerate. | |
299 | ||
250d07de AM |
300 | 2021-01-01 Alan Modra <amodra@gmail.com> |
301 | ||
302 | Update year range in copyright notice of all files. | |
303 | ||
c2795844 AM |
304 | For older changes see ChangeLog-2020 |
305 | \f | |
306 | Copyright (C) 2021 Free Software Foundation, Inc. | |
60da9d95 | 307 | |
c2795844 AM |
308 | Copying and distribution of this file, with or without modification, |
309 | are permitted in any medium without royalty provided the copyright | |
310 | notice and this notice are preserved. | |
60da9d95 | 311 | |
60da9d95 NA |
312 | Local Variables: |
313 | mode: change-log | |
314 | left-margin: 8 | |
c2795844 | 315 | fill-column: 74 |
60da9d95 NA |
316 | version-control: never |
317 | End: |