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 6 months ago
- Status changed from In Progress to Closed
- % Done changed from 0 to 100
commit b6a0e2cd4ce8d91fe9dc750c44e662d7c7e5fb8e Author: Richard Lowe <firstname.lastname@example.org> 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 <email@example.com> Reviewed by: Hans Rosenfeld <firstname.lastname@example.org> Reviewed by: Robert Mustacchi <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>