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