首页 > 解决方案 > Linux内核模块构建生成的.o.ur-safe文件是什么?

问题描述

*.o.ur-safe构建内核模块时生成的文件的目的是什么?我在内核源代码或其他任何地方都找不到对此扩展的引用。

这是(相当标准的)Makefile:

obj-m += module.o

module-y := main.o other.o

KDIR ?= "/lib/modules/$(shell uname -r)/build"

all:
    make -C $(KDIR) M=$(PWD) modules

clean:
    make -C $(KDIR) M=$(PWD) clean

other.o.ur-safe 在运行时生成make。以下是 other.o.ur-safe 的内容:

/home/user/module/other.o-.text-17
/home/user/module/other.o-.text-27
/home/user/module/other.o-.text-32
/home/user/module/other.o-.text-42

观察:

标签: linux-kernelkernel-modulekbuild

解决方案


推荐阅读