Re: kmod: depmod: fix builtin symbols resolution when the prefix symbol is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,

Should I provide more detailed information on the problem that the patch solves?

In short, I just run
depmod -ae -F System.map -P _
on modules and kernel cross-compiled for Blackfin
and see lots of undefined symbols, which are in fact defined by the kernel.

For example,
WARNING: module.ko needs unknown symbol _memcpy
WARNING: module.ko needs unknown symbol _printk
WARNING: module.ko needs unknown symbol ___kmalloc

This is because all symbols are prefixed with _ for Blackfin and kmod's depmod handles -P switch incorrectly.

On Tue, 11 Dec 2012 22:32:59 +0400, Andrey Mazo <mazo@xxxxxxxx> wrote:

 From ab0b4f648418f150b08570b41dce9f79fa9ed0c7 Mon Sep 17 00:00:00 2001
From: Andrey Mazo <mazo@xxxxxxxx>
Date: Tue, 11 Dec 2012 22:01:45 +0400
Subject: [PATCH 2/2] depmod: fix builtin symbols resolution when the prefix
  symbol is set

When the prefix symbol is set, take it into account while adding symbols
 from System.map file by skipping it before "__ksymtab_" comparison.

Also, prevent inserted fake symbols (like "__this_module") from being
wrongly truncated from beginning.

--
Andrey Mazo.
--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux