[LLVMdev] Appending linkage

OvermindDL1 overminddl1 at gmail.com
Thu Dec 10 08:12:32 PST 2009


On Thu, Dec 10, 2009 at 2:05 AM, Eli Friedman <eli.friedman at gmail.com> wrote:
> On Thu, Dec 10, 2009 at 12:26 AM, Robin Sommer <robinsommer at web.de> wrote:
>>
>> On Sat, Dec 05, 2009 at 22:56 -0800, I wrote:
>>
>>> the LLVM documentation lists the 'appending' linkage for having the
>>> linker combine two arrays. I'm wondering though if it's then
>>> possible to get the size of the combined array, e.g., for iterating
>>> over its elements? Or how would I otherwise use the combined array?
>>
>> Any thoughts on this? Am I missing something?
>
> Appending linkage isn't really intended for normal code; the most
> common uses are for special globals, like "llvm.used" and
> "llvm.global_ctors", which use compiler magic to work properly.

I know there was talk at one point in the past of a certain thing you
could setup that appends a zero to the end of that global array so you
could iterate through it safely, did that ever come about?



More information about the llvm-dev mailing list