Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CONFIG_TRIM_UNUSED_KSYMS && out of the kernel tree modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1109

PostPosted: Mon Jul 03, 2017 5:05 pm    Post subject: CONFIG_TRIM_UNUSED_KSYMS && out of the kernel tree m Reply with quote

Hi,
I have an out of the tree kernel module which compilation requires CONFIG_TRIM_UNUSED_KSYMS desactivation.

Does anyone knows how to tweak the kernel in order to keep some symbols visible when CONFIG_TRIM_UNUSED_KSYMS is activaeted.

Thks 4 ur attention.
Back to top
View user's profile Send private message
cdstealer
Guru
Guru


Joined: 30 Oct 2005
Posts: 423
Location: Leeds

PostPosted: Mon Jul 03, 2017 5:54 pm    Post subject: Reply with quote

I had to disable the kernel option for Trim (leave module support enabled):

Code:
[*] Enable loadable module support  --->
    [ ]   Trim unused exported kernel symbols

But I'm not sure what to suggest if you want it enabled?
_________________
# touch it
touch: cannot touch `it': Permission denied
Back to top
View user's profile Send private message
CaptainBlood
Veteran
Veteran


Joined: 24 Jan 2010
Posts: 1109

PostPosted: Mon Jul 03, 2017 9:56 pm    Post subject: Reply with quote

By tweaking I mean to poke into the kernel package to force some specific unused exported kernel symbols to be considered as used, therefore not removed @ build time by activated CONFIG_TRIM_UNUSED_KSYMS.

Thks 4 ur attention, interest & support.


Last edited by CaptainBlood on Tue Jul 04, 2017 12:07 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13994

PostPosted: Mon Jul 03, 2017 11:13 pm    Post subject: Reply with quote

As I understand it, CONFIG_TRIM_UNUSED_KSYMS=y trims symbols and CONFIG_TRIM_UNUSED_KSYMS=n keeps them. You said your out-of-tree module requires CONFIG_TRIM_UNUSED_KSYMS=n, so the symbols should already be kept without further work by you, once you set that option as required.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum