Project

General

Profile

Actions

Feature #10581

closed

ld(1) should know kernel modules are a thing

Added by Rich Lowe over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
tools - gate/build tools
Start date:
2019-03-23
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

To facilitate features in the link editor that are unsuitable for relocatable objects in general, but acceptable for kernel modules (the first being linker-sets, future examples possibly including -zcombreloc, for eg), the link-editor should know that kernel modules are a distinct kind of object.

Do this by implementing an Oracle-style -ztype that takes =kmod, which clues in the link-editor, and sets a dynamic tag usable by other software
Make ld(1) refuse to accept a kmod as link-editor input (we currently, unfortunately, do that with genunix), teach file(1) to spot the flag for kernel modules.

Actions

Also available in: Atom PDF