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