mirror of https://github.com/torvalds/linux.git
Rust fixes for v6.18 (2nd)
Toolchain and infrastructure:
- Fix a Rust 1.91.0 build issue due to 'bindings.o' not containing
DWARF debug information anymore by teaching gendwarfksyms to skip
object files without exports.
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEPjU5OPd5QIZ9jqqOGXyLc2htIW0FAmkXorAACgkQGXyLc2ht
IW3fIw/+IKI2iM5bbyQ9WbS3GDtUzSBxu/4OXL25UarD/vEA3xAo2XeHlpBnwhZ6
wK439HSqtKNF3iMMVUZO0A81YnBVPCUE6y3QKvRWbNj4X0s+fb8/TNnSKIsjSIiV
j3Wf2d/ssXfPGknKhzHIMWY2YxhS+QjX31oPbnDPeXw0tomL9wb8xl/xeWlARKYQ
R3YhE9FLBtaVNVGEKwL4QY4GpubZ098sQo5wkL9MuqcB79A34X5hXoNj9A2vAWhx
iLHCwIcmcyNNcFzfwy9L9xScal63E+FPENIx5gtVaxV5NsUuis/7CRcDAl8WPXVz
G60fC1c42stho/Tv/Ymt55vqYjdbgyCyQg68vQIvcMofyU5zQocm1+5re9JaVj7G
r/QJ6eL9sRON7ym//FZirk352ttwad2T4yhUmG933iVAjDoZAvBBw4ocX2LpdHxq
1b7PzDCpTl+eFbUc2vTfx33OsnE7gj5vJeSvMmcrlxFbEd1GLb9PEBcBdF6OR77L
+H6aWbkJ53dsji8veL/9UkhNJAGLEJyfNnaOtjgWA2XthyHAz2U6GSR176KY4fFK
pEsImpLyTJKd5mlwYaZwhDEVa+kdz8RCNxY1k8BDSFRk8gvDNlAioCqcddRdqoOt
0BTTlYEMzHz78FeGth33w+eYCT8tp1fHiovWReD3TJcgVuJjpE8=
=FPGX
-----END PGP SIGNATURE-----
Merge tag 'rust-fixes-6.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux
Pull Rust fix from Miguel Ojeda:
- Fix a Rust 1.91.0 build issue due to 'bindings.o' not containing
DWARF debug information anymore by teaching gendwarfksyms to skip
object files without exports
* tag 'rust-fixes-6.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux:
gendwarfksyms: Skip files with no exports
This commit is contained in:
commit
a752782a28
|
|
@ -138,7 +138,8 @@ int main(int argc, char **argv)
|
|||
error("no input files?");
|
||||
}
|
||||
|
||||
symbol_read_exports(stdin);
|
||||
if (!symbol_read_exports(stdin))
|
||||
return 0;
|
||||
|
||||
if (symtypes_file) {
|
||||
symfile = fopen(symtypes_file, "w");
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ struct symbol {
|
|||
typedef void (*symbol_callback_t)(struct symbol *, void *arg);
|
||||
|
||||
bool is_symbol_ptr(const char *name);
|
||||
void symbol_read_exports(FILE *file);
|
||||
int symbol_read_exports(FILE *file);
|
||||
void symbol_read_symtab(int fd);
|
||||
struct symbol *symbol_get(const char *name);
|
||||
void symbol_set_ptr(struct symbol *sym, Dwarf_Die *ptr);
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ static bool is_exported(const char *name)
|
|||
return for_each(name, NULL, NULL) > 0;
|
||||
}
|
||||
|
||||
void symbol_read_exports(FILE *file)
|
||||
int symbol_read_exports(FILE *file)
|
||||
{
|
||||
struct symbol *sym;
|
||||
char *line = NULL;
|
||||
|
|
@ -159,6 +159,8 @@ void symbol_read_exports(FILE *file)
|
|||
|
||||
free(line);
|
||||
debug("%d exported symbols", nsym);
|
||||
|
||||
return nsym;
|
||||
}
|
||||
|
||||
static void get_symbol(struct symbol *sym, void *arg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue