This is the mail archive of the
mailing list for the binutils project.
Issues with entry symbol in Linux kernel modules.
- From: Claudiu Zissulescu <Claudiu dot Zissulescu at synopsys dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Cc: "Simon Cook (simon dot cook at embecosm dot com)" <simon dot cook at embecosm dot com>, "Vineet Gupta" <Vineet dot Gupta1 at synopsys dot com>, "joern dot rennecke at embecosm dot com" <joern dot rennecke at embecosm dot com>
- Date: Mon, 24 Jun 2013 08:40:33 +0000
- Subject: Issues with entry symbol in Linux kernel modules.
I have the following issue:
When I try to compile out-of-tree Linux kernel modules an entry symbol is introduced as an undefined symbol. Hence, modprobe chocks an complies about this undefined entry symbol.
After some investigation, I realized that this symbol is instantiated by the after_parse_default function. I used LDEMUL_AFTER_PARSE to point to an empty function to skip the call to the default after parse. However, I am wondering if this can be considered a valid solution for my problem.
I use binutils 2.23, a linux linker script that defines ENTRY, and the linux kernel modules are linked with -r (default Linux make file).