[cfe-dev] Weak linkage for inline

Anton Korobeynikov asl at math.spbu.ru
Fri Jun 27 15:18:23 PDT 2008

Hi, Argiris

> I verified that it's the same with 'linkonce'.
> This testcase:
> define linkonce void @f() {
> entry:
>     ret void
> }
> produces this section line:
>     .section    .llvm.linkonce.t._f,"ax", at progbits
Are you sure?
I'm having:
$ ./llc weak-test.bc -mtriple=i686-mingw32

        .section        .text$linkonce._f,"ax"
        .align  16
        .globl  _f
        .linkonce discard
        .def     _f;    .scl    2;      .type   32;     .endef

this is correct code. weak stuff worked on windows for ages.
With best regards, Anton Korobeynikov.

Faculty of Mathematics & Mechanics, Saint Petersburg State University.

More information about the cfe-dev mailing list