ld plugin.c concat leaks

* ldlang.c: Whitespace.
	(stat_free, stat_concat): New functions.
	* ldlang.h (stat_free, stat_concat): Declare.
	* plugin.c (asymbol_from_plugin_symbol): Use stat_concat.
This commit is contained in:
Alan Modra
2025-01-23 10:22:58 +10:30
parent 40c7f80788
commit 90bea4932e
3 changed files with 74 additions and 38 deletions

View File

@@ -664,10 +664,14 @@ extern void lang_for_each_statement_worker
(void (*) (lang_statement_union_type *), lang_statement_union_type *);
extern void *stat_alloc
(size_t);
extern void * stat_memdup
extern void stat_free
(void *);
extern void *stat_memdup
(const void *, size_t, size_t);
extern char *stat_strdup
(const char *);
extern char *stat_concat
(const char *, ...);
extern void strip_excluded_output_sections
(void);
extern void lang_clear_os_map