linux-kernel - 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
观察:
make clean
不删除此文件。.o.ur-safe
没有为 main.o 生成相应的文件。- 该文件不是在带有 Linux 4.19.99 的 Ubuntu 16.04.7 上生成的,而是由带有 Linux 4.4.0-186-generic 的 Ubuntu 16.04.7 生成的。前者(机器 A)是自定义的 Ubuntu 安装,但后者(机器 B)只是一个 Ubuntu 库存映像。
- 当我使用 4.4.186 内核源代码树作为 KDIR 时,(B) 不会生成此文件。
解决方案
推荐阅读
- python - python:错误的解释器:没有这样的文件或目录
- .htaccess - .htaccess。如何在主页添加斜线?
- gatsby - 如何根据 queryString 参数在 Gatsby 中执行自定义/动态排序?
- bash - 在 bash 脚本中设置环境变量
- sql - 为什么我得到这个错误标识符“程序”必须声明为 Oracle PL/SQL
- r - 如何在 .Rproj 文件中设置 R 版本?
- python - 为什么 x 和 y 的 id() 相同,而 list_1 和 list_2 却不同?
- python - 如何使用 OOP 在 Tkinter 中调用特定屏幕
- google-earth-engine - 重新分类图像集合中所有图像中的所有像素值 - GEE
- chisel - Chisel3 REPL Vec 分配到模块仅在评估后有效