18–20 Sept 2024
Europe/Vienna timezone

Integrating kas-alias into kernel build: Overcoming Challenges with Non-Invasive Modifications

20 Sept 2024, 11:08
22m
"Room 1.31-1.32" (Austria Center)

"Room 1.31-1.32"

Austria Center

123
Tracing / Perf events MC Tracing / Perf events MC

Speaker

Alessandro Carminati

Description

I developed kas-alias to address the issue of duplicate symbols in the kernel. This solution effectively handles duplicate symbols originating from the main kernel image binary and also provides a method for managing symbols in the modules.
However, the current implementation has a challenge that remains unresolved: it modifies an input file during the make process to insert aliases into the modules.
While this operation is minimally invasive, my goal is to integrate it into the make flow by altering the binary objects on the fly.
This approach aims to preserve the rest of the build logic specified in the kernel Makefile unchanged.
Unfortunately, the current modification violates a key principle of the make process, which is to avoid altering input files.
Implementing this intermediate file would require significant changes to the make structure, which I prefer to avoid.
In this miniconf presentation, I aim to discuss this issue and seek suggestions on alternative approaches to achieve the desired functionality without extensive modifications to the make system.

LKML ref.

Primary author

Presentation materials