Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

module: remove *_gpl sections from vmlinux and modules

These sections are not used anymore and can be removed from vmlinux and
modules during linking.

Signed-off-by: Siddharth Nayyar <sidnayyar@google.com>
Reviewed-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>

authored by

Siddharth Nayyar and committed by
Sami Tolvanen
f1854025 b4760ff2

+2 -18
+2 -16
include/asm-generic/vmlinux.lds.h
··· 508 508 \ 509 509 PRINTK_INDEX \ 510 510 \ 511 - /* Kernel symbol table: Normal symbols */ \ 511 + /* Kernel symbol table */ \ 512 512 __ksymtab : AT(ADDR(__ksymtab) - LOAD_OFFSET) { \ 513 513 __start___ksymtab = .; \ 514 514 KEEP(*(SORT(___ksymtab+*))) \ 515 515 __stop___ksymtab = .; \ 516 516 } \ 517 517 \ 518 - /* Kernel symbol table: GPL-only symbols */ \ 519 - __ksymtab_gpl : AT(ADDR(__ksymtab_gpl) - LOAD_OFFSET) { \ 520 - __start___ksymtab_gpl = .; \ 521 - KEEP(*(SORT(___ksymtab_gpl+*))) \ 522 - __stop___ksymtab_gpl = .; \ 523 - } \ 524 - \ 525 - /* Kernel symbol table: Normal symbols */ \ 518 + /* Kernel symbol CRC table */ \ 526 519 __kcrctab : AT(ADDR(__kcrctab) - LOAD_OFFSET) { \ 527 520 __start___kcrctab = .; \ 528 521 KEEP(*(SORT(___kcrctab+*))) \ 529 522 __stop___kcrctab = .; \ 530 - } \ 531 - \ 532 - /* Kernel symbol table: GPL-only symbols */ \ 533 - __kcrctab_gpl : AT(ADDR(__kcrctab_gpl) - LOAD_OFFSET) { \ 534 - __start___kcrctab_gpl = .; \ 535 - KEEP(*(SORT(___kcrctab_gpl+*))) \ 536 - __stop___kcrctab_gpl = .; \ 537 523 } \ 538 524 \ 539 525 /* Kernel symbol flags table */ \
-2
scripts/module.lds.S
··· 20 20 } 21 21 22 22 __ksymtab 0 : ALIGN(8) { *(SORT(___ksymtab+*)) } 23 - __ksymtab_gpl 0 : ALIGN(8) { *(SORT(___ksymtab_gpl+*)) } 24 23 __kcrctab 0 : ALIGN(4) { *(SORT(___kcrctab+*)) } 25 - __kcrctab_gpl 0 : ALIGN(4) { *(SORT(___kcrctab_gpl+*)) } 26 24 __kflagstab 0 : ALIGN(1) { *(SORT(___kflagstab+*)) } 27 25 28 26 .ctors 0 : ALIGN(8) { *(SORT(.ctors.*)) *(.ctors) }