HA: [PATCH] D14382: [ELF2] - Basic implementation of -r/--relocatable

Joerg Sonnenberger via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 02:49:07 PST 2015


On Thu, Nov 05, 2015 at 02:49:17PM -0800, Rui Ueyama wrote:
> Well, linking everything on a rescue disk statically is different from
> crunchgen. You can link every command statically but as a separate file.

That doesn't help with figuring out what symbols are local to a tool and
which are not. So far the majority of the difficult work could be
off-loaded to the linker. Without -r support, crunchgen would need to
get half a linker built in, which sounds like a bad choice. There are
other users, e.g. FreeBSD uses it for kernel modules on a bunch of
platforms.

Joerg


More information about the llvm-commits mailing list