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