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