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