[lld] r241341 - [ELF] Define __start_XXX/__stop_XXX symbols where XXX is a section name

Joerg Sonnenberger joerg at britannica.bec.de
Fri Jul 3 05:00:47 PDT 2015


On Fri, Jul 03, 2015 at 11:25:37AM -0000, Simon Atanasyan wrote:
> This is GNU ELF linker extension used particularly by LibC code.
> If input object files contain section named XXX, and the XXX is a valid C
> identifier, and there are undefined or weak symbols __start_XXX/__stop_XXX,
> linker should define __start_XXX/__stop_XXX symbols point to the begin/end
> of the XXX section correspondingly.

Why are they weak? Shouldn't they be hidden instead?

Joerg



More information about the llvm-commits mailing list