aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/strip-kmod.sh
Commit message (Collapse)AuthorAgeFilesLines
* scripts/strip-kmod.sh: remove a few extra sections to slightly reduce kernel ↵Felix Fietkau2016-02-011-0/+2
| | | | | | | | module size Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48608 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: Allow kernel modules to set build ID debug symbolFelix Fietkau2015-10-301-1/+4
| | | | | | | | | | | | | | | | | | | | This change adds support for specifying a build ID for kernel modules. This is done by setting PKG_BUILD_ID to a hexadecimal string, which will then be passed to the kernel linker. In addition, when this flag is set, the build ID debug symbol (.note.gnu.build-id) will not be stripped from the kernel module. This symbol is exported in sysfs by the kernel (if the kernel is compiled with CONFIG_KALLSYMS) and so can be used to uniquely identify a version of a kernel module in a running kernel. This is useful for keeping track of different versions of a module when doing experiments and development. Modules that specify the build ID will be ~100 bytes larger (depending on the length of the build ID specified). There is no size difference for kernel modules that do not set this variable. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47290 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: fix stripping of modules with duplicate symbol namesFelix Fietkau2012-03-191-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31031 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: improve profiling support, keep static symbols when profiling is enabledFelix Fietkau2012-03-171-1/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30964 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: keep more symbols in the kernel modules when doing profilingFelix Fietkau2012-03-011-3/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30762 3c298f89-4303-0410-b956-a3cf2f4a3e73
* kernel: do not rename module symbols with kallsyms enabledFelix Fietkau2012-03-011-0/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30759 3c298f89-4303-0410-b956-a3cf2f4a3e73
* strip kernel modules more aggressively: make all global symbols local, ↵Felix Fietkau2012-02-201-0/+38
rename all symbols in the symbol table to make them compress better git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30662 3c298f89-4303-0410-b956-a3cf2f4a3e73