#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "modpost.h"
#include "../../include/generated/autoconf.h"
#include "../../include/linux/license.h"
Go to the source code of this file.
|
| #define | _GNU_SOURCE |
| |
| #define | MODULE_SYMBOL_PREFIX "" |
| |
| #define | PRINTF __attribute__ ((format (printf, 1, 2))) |
| |
| #define | SYMBOL_HASH_SIZE 1024 |
| |
| #define | strstarts(str, prefix) (strncmp(str, prefix, strlen(prefix)) == 0) |
| |
| #define | CRC_PFX MODULE_SYMBOL_PREFIX "__crc_" |
| |
| #define | KSYMTAB_PFX MODULE_SYMBOL_PREFIX "__ksymtab_" |
| |
| #define | ALL_INIT_DATA_SECTIONS |
| |
| #define | ALL_EXIT_DATA_SECTIONS ".exit.data$", ".devexit.data$", ".cpuexit.data$", ".memexit.data$" |
| |
| #define | ALL_INIT_TEXT_SECTIONS ".init.text$", ".devinit.text$", ".cpuinit.text$", ".meminit.text$" |
| |
| #define | ALL_EXIT_TEXT_SECTIONS ".exit.text$", ".devexit.text$", ".cpuexit.text$", ".memexit.text$" |
| |
| #define | ALL_PCI_INIT_SECTIONS |
| |
| #define | ALL_XXXINIT_SECTIONS |
| |
| #define | ALL_XXXEXIT_SECTIONS |
| |
| #define | ALL_INIT_SECTIONS INIT_SECTIONS, ALL_XXXINIT_SECTIONS |
| |
| #define | ALL_EXIT_SECTIONS EXIT_SECTIONS, ALL_XXXEXIT_SECTIONS |
| |
| #define | DATA_SECTIONS ".data$", ".data.rel$" |
| |
| #define | TEXT_SECTIONS ".text$" |
| |
| #define | INIT_SECTIONS ".init.*" |
| |
| #define | DEV_INIT_SECTIONS ".devinit.*" |
| |
| #define | CPU_INIT_SECTIONS ".cpuinit.*" |
| |
| #define | MEM_INIT_SECTIONS ".meminit.*" |
| |
| #define | EXIT_SECTIONS ".exit.*" |
| |
| #define | DEV_EXIT_SECTIONS ".devexit.*" |
| |
| #define | CPU_EXIT_SECTIONS ".cpuexit.*" |
| |
| #define | MEM_EXIT_SECTIONS ".memexit.*" |
| |
| #define | DEFAULT_SYMBOL_WHITE_LIST |
| |
| #define | R_ARM_CALL 28 |
| |
| #define | R_ARM_JUMP24 29 |
| |
| #define | SZ 500 |
| |
|
| enum | export {
export_plain,
export_unused,
export_gpl,
export_unused_gpl,
export_gpl_future,
export_unknown
} |
| |
| enum | mismatch {
TEXT_TO_ANY_INIT,
DATA_TO_ANY_INIT,
TEXT_TO_ANY_EXIT,
DATA_TO_ANY_EXIT,
XXXINIT_TO_SOME_INIT,
XXXEXIT_TO_SOME_EXIT,
ANY_INIT_TO_ANY_EXIT,
ANY_EXIT_TO_ANY_INIT,
EXPORT_TO_INIT_EXIT
} |
| |
|
| PRINTF void | fatal (const char *fmt,...) |
| |
| PRINTF void | warn (const char *fmt,...) |
| |
| PRINTF void | merror (const char *fmt,...) |
| |
| void * | do_nofail (void *ptr, const char *expr) |
| |
| void * | grab_file (const char *filename, unsigned long *size) |
| |
| char * | get_next_line (unsigned long *pos, void *file, unsigned long size) |
| |
| void | release_file (void *file, unsigned long size) |
| |
| void | __attribute__ ((format(printf, 2, 3))) |
| |
| void | buf_write (struct buffer *buf, const char *s, int len) |
| |
| int | main (int argc, char **argv) |
| |
| #define ALL_EXIT_DATA_SECTIONS ".exit.data$", ".devexit.data$", ".cpuexit.data$", ".memexit.data$" |
| #define ALL_EXIT_TEXT_SECTIONS ".exit.text$", ".devexit.text$", ".cpuexit.text$", ".memexit.text$" |
| #define ALL_INIT_DATA_SECTIONS |
Value:".init.setup$", ".init.rodata$", \
".devinit.rodata$", ".cpuinit.rodata$", ".meminit.rodata$", \
".init.data$", ".devinit.data$", ".cpuinit.data$", ".meminit.data$"
Definition at line 859 of file modpost.c.
| #define ALL_INIT_TEXT_SECTIONS ".init.text$", ".devinit.text$", ".cpuinit.text$", ".meminit.text$" |
| #define ALL_PCI_INIT_SECTIONS |
Value:".pci_fixup_early$", ".pci_fixup_header$", ".pci_fixup_final$", \
".pci_fixup_enable$", ".pci_fixup_resume$", \
".pci_fixup_resume_early$", ".pci_fixup_suspend$"
Definition at line 871 of file modpost.c.
| #define ALL_XXXEXIT_SECTIONS |
| #define ALL_XXXINIT_SECTIONS |
| #define CPU_EXIT_SECTIONS ".cpuexit.*" |
| #define CPU_INIT_SECTIONS ".cpuinit.*" |
| #define DATA_SECTIONS ".data$", ".data.rel$" |
| #define DEFAULT_SYMBOL_WHITE_LIST |
Value:"*driver", \
"*_template", \
"*_timer", \
"*_sht", \
"*_ops", \
"*_probe", \
"*_probe_one", \
"*_console"
Definition at line 912 of file modpost.c.
| #define DEV_EXIT_SECTIONS ".devexit.*" |
| #define DEV_INIT_SECTIONS ".devinit.*" |
| #define EXIT_SECTIONS ".exit.*" |
| #define INIT_SECTIONS ".init.*" |
| #define MEM_EXIT_SECTIONS ".memexit.*" |
| #define MEM_INIT_SECTIONS ".meminit.*" |
| #define MODULE_SYMBOL_PREFIX "" |
| #define SYMBOL_HASH_SIZE 1024 |
| #define TEXT_SECTIONS ".text$" |
- Enumerator:
| export_plain |
|
| export_unused |
|
| export_gpl |
|
| export_unused_gpl |
|
| export_gpl_future |
|
| export_unknown |
|
Definition at line 46 of file modpost.c.
- Enumerator:
| TEXT_TO_ANY_INIT |
|
| DATA_TO_ANY_INIT |
|
| TEXT_TO_ANY_EXIT |
|
| DATA_TO_ANY_EXIT |
|
| XXXINIT_TO_SOME_INIT |
|
| XXXEXIT_TO_SOME_EXIT |
|
| ANY_INIT_TO_ANY_EXIT |
|
| ANY_EXIT_TO_ANY_INIT |
|
| EXPORT_TO_INIT_EXIT |
|
Definition at line 926 of file modpost.c.
Return a copy of the next line in a mmap'ed file. spaces in the beginning of the line is trimmed away. Return a pointer to a static buffer.
Definition at line 364 of file modpost.c.