Restore labels from __symbols__ node

If the input has a __symbols__ node, restore the named labels for the
respective nodes.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
This commit is contained in:
Uwe Kleine-König 2024-10-20 22:54:44 +02:00
parent 635b958d27
commit 6a6f5aecd4
3 changed files with 24 additions and 0 deletions

2
dtc.c
View file

@ -338,6 +338,8 @@ int main(int argc, char *argv[])
if (auto_label_aliases)
generate_label_tree(dti, "aliases", false);
generate_labels_from_tree(dti, "__symbols__");
if (generate_symbols)
generate_label_tree(dti, "__symbols__", true);