aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
AgeCommit message (Expand)AuthorFilesLines
2025-04-06Disable SLUB_TINY for build testingLinus Torvalds1-1/+1
2025-03-23modpost: require a MODULE_DESCRIPTION()Jeff Johnson1-2/+2
2025-03-15modpost: introduce get_basename() helperMasahiro Yamada1-23/+18
2025-02-16modpost: Fix a few typos in a commentUwe Kleine-König1-2/+2
2025-02-06kbuild: keep symbols for symbol_get() even with CONFIG_TRIM_UNUSED_KSYMSMasahiro Yamada1-0/+35
2025-01-11modpost: Allow extended modversions without basic MODVERSIONSMatthew Maurer1-2/+7
2025-01-11modpost: Produce extended MODVERSIONS informationMatthew Maurer1-4/+58
2025-01-10modpost: zero-pad CRC values in modversion_info arrayMasahiro Yamada1-1/+1
2024-12-28modpost: work around unaligned data access errorMasahiro Yamada1-12/+12
2024-12-21modpost: distinguish same module paths from different dump filesMasahiro Yamada1-8/+9
2024-12-08modpost: Add .irqentry.text to OTHER_SECTIONSThomas Gleixner1-1/+1
2024-11-28modpost: replace tdb_hash() with hash_str()Masahiro Yamada1-15/+3
2024-11-28modpost: move strstarts() to modpost.hMasahiro Yamada1-2/+0
2024-11-28modpost: introduce module_alias_printf() helperMasahiro Yamada1-1/+10
2024-09-07kbuild: compile constant module information only onceThomas Weißschuh1-23/+0
2024-09-01modpost: simplify modpost_log()Masahiro Yamada1-11/+6
2024-09-01modpost: improve the section mismatch warning formatMasahiro Yamada1-8/+13
2024-09-01modpost: replace the use of NOFAIL() with xmalloc() etc.Masahiro Yamada1-18/+10
2024-09-01modpost: detect endianness on run-timeMasahiro Yamada1-0/+36
2024-07-23Merge tag 'kbuild-v6.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-59/+8
2024-07-21modpost: use generic macros for hash table implementationMasahiro Yamada1-13/+5
2024-07-21kbuild: move some helper headers from scripts/kconfig/ to scripts/include/Masahiro Yamada1-0/+2
2024-07-16modpost: rename R_ARM_THM_CALL to R_ARM_THM_PC22Masahiro Yamada1-5/+1
2024-07-16modpost: remove self-definitions of R_ARM_* macrosMasahiro Yamada1-30/+0
2024-07-16modpost: Enable section warning from *driver to .exit.textUwe Kleine-König1-11/+0
2024-07-12init/modpost: conditionally check section mismatch to __meminit*Masahiro Yamada1-15/+4
2024-06-07modpost: do not warn about missing MODULE_DESCRIPTION() for vmlinux.oMasahiro Yamada1-2/+3
2024-04-17s390/expoline: Make modules use kernel expolinesVasily Gorbik1-5/+0
2024-03-28modpost: do not make find_tosym() return NULLMasahiro Yamada1-2/+5
2024-03-21Merge tag 'kbuild-v6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/masa...Linus Torvalds1-1/+3
2024-03-19modpost: fix null pointer dereferenceMax Kellermann1-1/+3
2024-02-14Merge branch 'x86/bugs' into x86/core, to pick up pending changes before depe...Ingo Molnar1-1/+1
2024-01-31modpost: avoid using the alias attributeMasahiro Yamada1-11/+1
2024-01-28modpost: Add '.ltext' and '.ltext.*' to TEXT_SECTIONSNathan Chancellor1-1/+2
2024-01-19Merge tag 'loongarch-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/ch...Linus Torvalds1-2/+17
2024-01-17modpost: Ignore relaxation and alignment marker relocs on LoongArchWANG Xuerui1-2/+17
2024-01-10x86/bugs: Rename CONFIG_RETPOLINE => CONFIG_MITIGATION_RETPOLINEBreno Leitao1-1/+1
2023-12-10modpost: remove unreachable code after fatal()Masahiro Yamada1-6/+3
2023-12-10modpost: remove unneeded initializer in section_rel()Masahiro Yamada1-1/+1
2023-12-10modpost: inform compilers that fatal() never returnsMasahiro Yamada1-0/+3
2023-12-10modpost: move __attribute__((format(printf, 2, 3))) to modpost.hMasahiro Yamada1-2/+1
2023-11-16modpost: fix section mismatch message for RELAMasahiro Yamada1-2/+4
2023-10-28modpost: squash ALL_{INIT,EXIT}_TEXT_SECTIONS to ALL_TEXT_SECTIONSMasahiro Yamada1-6/+1
2023-10-28modpost: merge sectioncheck table entries regarding init/exit sectionsMasahiro Yamada1-15/+3
2023-10-28modpost: use ALL_INIT_SECTIONS for the section check from DATA_SECTIONSMasahiro Yamada1-1/+1
2023-10-28modpost: disallow the combination of EXPORT_SYMBOL and __meminit*Masahiro Yamada1-1/+1
2023-10-28modpost: remove EXIT_SECTIONS macroMasahiro Yamada1-5/+3
2023-10-28modpost: remove MEM_INIT_SECTIONS macroMasahiro Yamada1-2/+1
2023-10-28modpost: remove more symbol patterns from the section check whitelistMasahiro Yamada1-7/+1
2023-10-28modpost: disallow *driver to reference .meminit* sectionsMasahiro Yamada1-6/+0
2023-10-28linux/init: remove __memexit* annotationsMasahiro Yamada1-12/+3
2023-10-28modpost: remove ALL_EXIT_DATA_SECTIONS macroMasahiro Yamada1-2/+0
2023-10-18modpost: factor out the common boilerplate of section_rel(a)Masahiro Yamada1-24/+26
2023-10-18modpost: refactor check_sec_ref()Masahiro Yamada1-6/+7
2023-10-18modpost: define TO_NATIVE() using bswap_* functionsMasahiro Yamada1-9/+4
2023-10-03modpost: Optimize symbol search from linear to binary searchJack Brennen1-64/+6
2023-10-01modpost: Don't let "driver"s reference .exit.*Uwe Kleine-König1-2/+13
2023-09-13Merge tag 'parisc-for-6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-0/+9
2023-09-12linux/export: fix reference to exported functions for parisc64Masahiro Yamada1-0/+9
2023-09-01modpost: Skip .llvm.call-graph-profile section checkDenis Nikitin1-0/+1
2023-07-31modpost: remove ElF_Rela variables from for-loop in section_rel(a)Masahiro Yamada1-14/+11
2023-07-31modpost: clean up MIPS64 little endian relocation codeMasahiro Yamada1-33/+43
2023-07-31modpost: pass r_type to addend_*_rel()Masahiro Yamada1-13/+11
2023-07-31modpost: change return type of addend_*_rel()Masahiro Yamada1-39/+24
2023-07-25linux/export.h: make <linux/export.h> independent of CONFIG_MODULESMasahiro Yamada1-2/+6
2023-07-01Merge tag 'kbuild-v6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/masa...Linus Torvalds1-413/+372
2023-06-29modpost: define more R_ARM_* for old distributionsMasahiro Yamada1-0/+17
2023-06-25modpost: continue even with unknown relocation typeMasahiro Yamada1-10/+9
2023-06-25modpost: factor out Elf_Sym pointer calculation to section_rel()Masahiro Yamada1-4/+5
2023-06-25modpost: factor out inst location calculation to section_rel()Masahiro Yamada1-16/+12
2023-06-24script: modpost: emit a warning when the description is missingVincenzo Palazzo1-0/+2
2023-06-22modpost: show offset from symbol for section mismatch warningsMasahiro Yamada1-2/+2
2023-06-22modpost: merge two similar section mismatch warningsMasahiro Yamada1-15/+3
2023-06-22kbuild: implement CONFIG_TRIM_UNUSED_KSYMS without recursionMasahiro Yamada1-5/+52
2023-06-22modpost: use null string instead of NULL pointer for default namespaceMasahiro Yamada1-6/+11
2023-06-22modpost: squash sym_update_namespace() into sym_add_exported()Masahiro Yamada1-23/+4
2023-06-22modpost: check static EXPORT_SYMBOL* by modpost againMasahiro Yamada1-0/+7
2023-06-22kbuild: generate KSYMTAB entries by modpostMasahiro Yamada1-33/+73
2023-06-16x86/unwind/orc: Add ELF section with ORC version identifierOmar Sandoval1-0/+5
2023-06-15modpost: pass struct module pointer to check_section_mismatch()Masahiro Yamada1-11/+11
2023-06-08modpost: fix off by one in is_executable_section()Dan Carpenter1-1/+1
2023-06-07modpost: propagate W=1 build option to modpostMasahiro Yamada1-1/+6
2023-06-04modpost: detect section mismatch for R_ARM_REL32Masahiro Yamada1-0/+1
2023-06-04modpost: fix section_mismatch message for R_ARM_THM_{CALL,JUMP24,JUMP19}Masahiro Yamada1-6/+47
2023-06-04modpost: detect section mismatch for R_ARM_THM_{MOVW_ABS_NC,MOVT_ABS}Masahiro Yamada1-5/+26
2023-06-02modpost: refactor find_fromsym() and find_tosym()Masahiro Yamada1-56/+33
2023-06-02modpost: detect section mismatch for R_ARM_{MOVW_ABS_NC,MOVT_ABS}Masahiro Yamada1-2/+9
2023-06-02modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24}Masahiro Yamada1-0/+12
2023-06-02modpost: fix section mismatch message for R_ARM_ABS32Masahiro Yamada1-3/+9
2023-05-28modpost: remove *_sections[] arraysMasahiro Yamada1-27/+9
2023-05-28modpost: merge bad_tosec=ALL_EXIT_SECTIONS entries in sectioncheck tableMasahiro Yamada1-11/+4
2023-05-28modpost: merge fromsec=DATA_SECTIONS entries in sectioncheck tableMasahiro Yamada1-6/+1
2023-05-28modpost: remove is_shndx_special() check from section_rel(a)Masahiro Yamada1-12/+4
2023-05-28modpost: replace r->r_offset, r->r_addend with faddr, taddrMasahiro Yamada1-15/+19
2023-05-28modpost: unify 'sym' and 'to' in default_mismatch_handler()Masahiro Yamada1-5/+4
2023-05-28modpost: remove unused argument from secref_whitelist()Masahiro Yamada1-3/+2
2023-05-28Revert "modpost: skip ELF local symbols during section mismatch check"Masahiro Yamada1-12/+0
2023-05-22modpost: rename find_elf_symbol() and find_elf_symbol2()Masahiro Yamada1-6/+6
2023-05-22modpost: pass section index to find_elf_symbol2()Masahiro Yamada1-19/+15
2023-05-22modpost: pass 'tosec' down to default_mismatch_handler()Masahiro Yamada1-4/+3
2023-05-22modpost: squash extable_mismatch_handler() into default_mismatch_handler()Masahiro Yamada1-58/+26
2023-05-22modpost: clean up is_executable_section()Masahiro Yamada1-8/+8
2023-05-22modpost: squash report_sec_mismatch() into default_mismatch_handler()Masahiro Yamada1-35/+20
2023-05-22modpost: squash report_extable_warnings() into extable_mismatch_handler()Masahiro Yamada1-26/+14
2023-05-22modpost: remove get_prettyname()Masahiro Yamada1-25/+2
2023-05-22modpost: remove fromsym info in __ex_table section mismatch warningMasahiro Yamada1-9/+2
2023-05-22modpost: remove broken calculation of exception_table_entry sizeMasahiro Yamada1-57/+3
2023-05-22modpost: error out if addend_*_rel() is not implemented for REL archMasahiro Yamada1-0/+2
2023-04-27Merge tag 'modules-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-9/+3
2023-04-13module: Ignore L0 and rename is_arm_mapping_symbol()Tiezhu Yang1-2/+2
2023-04-13module: Move is_arm_mapping_symbol() to module_symbol.hTiezhu Yang1-9/+1
2023-04-13module: Sync code of is_arm_mapping_symbol()Tiezhu Yang1-0/+2
2023-03-23modpost: Fix processing of CRCs on 32-bit build machinesBen Hutchings1-1/+1
2022-12-19Merge tag 'kbuild-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/masa...Linus Torvalds1-14/+9
2022-12-14modpost: Include '.text.*' in TEXT_SECTIONSNathan Chancellor1-2/+2
2022-12-14kbuild: change module.order to list *.o instead of *.koMasahiro Yamada1-7/+4
2022-12-14LoongArch: Switch to relative exception tablesYouling Tang1-0/+13
2022-11-21modpost: Join broken long printed messagesGeert Uytterhoeven1-5/+3
2022-08-21modpost: fix module versioning when a symbol lacks valid CRCMasahiro Yamada1-3/+1
2022-08-10Merge tag 'kbuild-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-233/+48
2022-08-04modpost: remove .symbol_white_list field entirelyMasahiro Yamada1-39/+16
2022-08-04modpost: remove unneeded .symbol_white_list initializersMasahiro Yamada1-8/+0
2022-08-04modpost: add PATTERNS() helper macroMasahiro Yamada1-0/+7
2022-08-04modpost: shorten warning messages in report_sec_mismatch()Masahiro Yamada1-170/+9
2022-08-04Revert "Kbuild, lto, workaround: Don't warn for initcall_reference in modpost"Masahiro Yamada1-3/+0
2022-08-03modpost: use more reliable way to get fromsec in section_rel(a)()Masahiro Yamada1-4/+2
2022-08-03modpost: add array range check to sec_name()Masahiro Yamada1-1/+9
2022-08-02Merge tag 'linux-kselftest-kunit-5.20-rc1' of git://git.kernel.org/pub/scm/li...Linus Torvalds1-0/+3
2022-07-27modpost: use sym_get_data() to get module device_table dataMasahiro Yamada1-1/+1
2022-07-27modpost: drop executable ELF supportMasahiro Yamada1-6/+4
2022-07-27Revert "scripts/mod/modpost.c: permit '.cranges' secton for sh64 architecture."Masahiro Yamada1-1/+0
2022-07-11module: panic: Taint the kernel when selftest modules loadDavid Gow1-0/+3
2022-06-20modpost: fix section mismatch check for exported init/exit sectionsMasahiro Yamada1-1/+1
2022-06-05modpost: use fnmatch() to simplify match()Masahiro Yamada1-61/+13
2022-06-05modpost: simplify mod->name allocationMasahiro Yamada1-13/+12
2022-06-01kbuild: check static EXPORT_SYMBOL* by script instead of modpostMasahiro Yamada1-27/+1
2022-05-29kbuild: do not create *.prelink.o for Clang LTO or IBTMasahiro Yamada1-7/+0
2022-05-27modpost: squash if...else-if in find_elf_symbol2()Masahiro Yamada1-7/+3
2022-05-27modpost: reuse ARRAY_SIZE() macro for section_mismatch()Masahiro Yamada1-4/+3
2022-05-27modpost: remove the unused argument of check_sec_ref()Masahiro Yamada1-3/+2
2022-05-27modpost: fix undefined behavior of is_arm_mapping_symbol()Masahiro Yamada1-1/+2
2022-05-27modpost: fix removing numeric suffixesAlexander Lobakin1-1/+1
2022-05-24kbuild: link symbol CRCs at final link, removing CONFIG_MODULE_REL_CRCSMasahiro Yamada1-4/+24
2022-05-24modpost: extract symbol versions from *.cmd filesMasahiro Yamada1-48/+131
2022-05-24modpost: add sym_find_with_module() helperMasahiro Yamada1-2/+7
2022-05-11modpost: change the license of EXPORT_SYMBOL to bool typeMasahiro Yamada1-78/+30
2022-05-11modpost: move *.mod.c generation to write_mod_c_files()Masahiro Yamada1-25/+31
2022-05-11modpost: merge add_{intree_flag,retpoline,staging_flag} to add_headerMasahiro Yamada1-18/+7
2022-05-08modpost: split new_symbol() to symbol allocation and hash table additionMasahiro Yamada1-10/+8
2022-05-08modpost: make sym_add_exported() always allocate a new symbolMasahiro Yamada1-6/+4
2022-05-08modpost: make multiple export errorMasahiro Yamada1-3/+3
2022-05-08modpost: dump Module.symvers in the same order of modules.orderMasahiro Yamada1-16/+13
2022-05-08modpost: traverse the namespace_list in orderMasahiro Yamada1-18/+15
2022-05-08modpost: use doubly linked list for dump_listsMasahiro Yamada1-14/+10
2022-05-08modpost: traverse unresolved symbols in orderMasahiro Yamada1-6/+14
2022-05-08modpost: add sym_add_unresolved() helperMasahiro Yamada1-8/+11
2022-05-08modpost: traverse modules in orderMasahiro Yamada1-9/+8
2022-05-08modpost: change mod->gpl_compatible to bool typeMasahiro Yamada1-6/+11
2022-05-08modpost: use bool type where appropriateMasahiro Yamada1-28/+28
2022-05-08modpost: move struct namespace_list to modpost.cMasahiro Yamada1-0/+5
2022-05-08modpost: retrieve the module dependency and CRCs in check_exports()Masahiro Yamada1-10/+6
2022-05-08modpost: add a separate error for exported symbols without definitionMasahiro Yamada1-1/+6
2022-05-08modpost: remove stale comment about sym_add_exported()Masahiro Yamada1-4/+0
2022-05-08modpost: do not write out any file when error occurredMasahiro Yamada1-0/+3
2022-05-08modpost: use snprintf() instead of sprintf() for safetyMasahiro Yamada1-1/+7
2022-05-08modpost: remove annoying namespace_from_kstrtabns()Masahiro Yamada1-12/+2
2022-05-08modpost: remove redundant initializes for static variablesMasahiro Yamada1-5/+5
2022-05-08modpost: move export_from_secname() call to more relevant placeMasahiro Yamada1-6/+4
2022-05-08modpost: remove useless export_from_sec()Masahiro Yamada1-15/+2
2022-04-03modpost: restore the warning message for missing symbol versionsMasahiro Yamada1-1/+1
2022-03-27Merge tag 'x86_core_for_5.18_rc1' of git://git.kernel.org/pub/scm/linux/kerne...Linus Torvalds1-6/+6
2022-03-25Merge tag 'kbuild-gnu11-v5.18' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-1/+3
2022-03-22kbuild: Fixup the IBT kbuild changesPeter Zijlstra1-6/+6
2022-03-13Kbuild: use -Wdeclaration-after-statementMark Rutland1-1/+3
2022-03-10s390/nospec: add an option to use thunk-externVasily Gorbik1-0/+5
2022-01-05riscv: switch to relative exception tablesJisheng Zhang1-0/+15
2021-09-03Merge tag 'kbuild-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-1/+10
2021-09-03modpost: get the *.mod file path more simplyMasahiro Yamada1-1/+10
2021-08-15powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm gotoChristophe Leroy1-1/+1
2021-06-17kbuild: modpost: Explicitly warn about unprototyped symbolsMark Brown1-2/+5
2021-04-25kbuild: add an elfnote for whether vmlinux is built with ltoYonghong Song1-0/+2
2021-04-25scripts: modpost.c: Fix a few typosBhaskar Chowdhury1-4/+4
2021-04-25kbuild: fix false-positive modpost warning when all symbols are trimmedMasahiro Yamada1-13/+12
2021-04-25kbuild: generate Module.symvers only when vmlinux existsMasahiro Yamada1-14/+1
2021-02-23Merge tag 'modules-for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-47/+3
2021-02-08module: remove EXPORT_UNUSED_SYMBOL*Christoph Hellwig1-36/+3
2021-02-08module: remove EXPORT_SYMBOL_GPL_FUTUREChristoph Hellwig1-12/+1
2021-01-14modpost: lto: strip .lto from module namesSami Tolvanen1-9/+7
2020-12-21modpost: turn static exports into errorQuentin Perret1-3/+3
2020-12-21modpost: turn section mismatches to error from fatal()Masahiro Yamada1-4/+4
2020-12-21modpost: change license incompatibility to error() from fatal()Masahiro Yamada1-2/+2
2020-12-21modpost: turn missing MODULE_LICENSE() into errorMasahiro Yamada1-1/+1
2020-12-21modpost: refactor error handling and clarify error/fatal differenceMasahiro Yamada1-29/+14
2020-12-21modpost: rename merror() to error()Masahiro Yamada1-5/+5
2020-10-25treewide: Convert macro and uses of __section(foo) to __section("foo")Joe Perches1-2/+2
2020-07-27modpost: explain why we can't use strsepWolfram Sang1-0/+1
2020-07-07modpost: remove use of non-standard strsep() in HOSTCC codeH. Nikolaus Schaller1-2/+10
2020-06-06Merge tag 'kbuild-v5.8' of git://git.kernel.org/pub/scm/linux/kernel/git/masa...Linus Torvalds1-201/+185
2020-06-06modpost: change elf_info->size to size_tMasahiro Yamada1-5/+4
2020-06-06modpost: remove is_vmlinux() helperMasahiro Yamada1-15/+1