ld(1) should support GNU-style linker sets
GNU ld as a feature whereby undefined references of the form _start<section name> or _stop<section name> are satisfied by the link-editor with local symbols pointing to the start and end of the mentioned section.
FreeBSD and others use this via sys/linker_set.h to create easily iterable arrays the definition of which spans multiple files (they put pointers into a section, and then use these symbols to iterate the whole section).
loader, bhyve, and other code would benefit from us supporting this too.
Updated by Electric Monk almost 2 years ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit b6a0e2cd4ce8d91fe9dc750c44e662d7c7e5fb8e Author: Richard Lowe <email@example.com> Date: 2019-04-24T16:59:38.000Z 10366 ld(1) should support GNU-style linker sets 10581 ld(1) should know kernel modules are a thing Reviewed by: Toomas Soome <firstname.lastname@example.org> Reviewed by: Hans Rosenfeld <email@example.com> Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>