Displaying 6 results from an estimated 6 matches for "weak1".
Did you mean:
weak
2017 Jan 13
6
Weak symbol/alias semantics
...ntually want references via the alias to go to the
prevailing copy (in another module), or to the original copy in the alias's
module? I looked at some examples without ThinLTO, and am a little
confused. Current (non-ThinLTO) behavior in some cases seems to depend on
opt level.
Example:
$ cat weak12main.c
extern void test2();
int main() {
test2();
}
$ cat weak1.c
#include <stdio.h>
void weakalias() __attribute__((weak, alias ("f")));
void strongalias() __attribute__((alias ("f")));
void f () __attribute__ ((weak));
void f()
{
printf("In weak1.c:f\n")...
2017 Jan 14
3
Weak symbol/alias semantics
...ces via the alias to go to the prevailing copy (in another module), or to the original copy in the alias's module? I looked at some examples without ThinLTO, and am a little confused. Current (non-ThinLTO) behavior in some cases seems to depend on opt level.
>
> Example:
>
> $ cat weak12main.c
> extern void test2();
> int main() {
> test2();
> }
>
> $ cat weak1.c
> #include <stdio.h>
>
> void weakalias() __attribute__((weak, alias ("f")));
> void strongalias() __attribute__((alias ("f")));
>
> void f () __attribute...
2017 Jan 14
4
Weak symbol/alias semantics
...copy (in another module), or to the original copy in the alias's
>> module? I looked at some examples without ThinLTO, and am a little
>> confused. Current (non-ThinLTO) behavior in some cases seems to depend on
>> opt level.
>>
>> Example:
>>
>> $ cat weak12main.c
>> extern void test2();
>> int main() {
>> test2();
>> }
>>
>> $ cat weak1.c
>> #include <stdio.h>
>>
>> void weakalias() __attribute__((weak, alias ("f")));
>> void strongalias() __attribute__((alias ("f"...
2017 Jan 14
4
Weak symbol/alias semantics
...s to go to the prevailing copy (in another module), or to the original copy in the alias's module? I looked at some examples without ThinLTO, and am a little confused. Current (non-ThinLTO) behavior in some cases seems to depend on opt level.
>>
>> Example:
>>
>> $ cat weak12main.c
>> extern void test2();
>> int main() {
>> test2();
>> }
>>
>> $ cat weak1.c
>> #include <stdio.h>
>>
>> void weakalias() __attribute__((weak, alias ("f")));
>> void strongalias() __attribute__((alias ("f&qu...
2017 Jan 18
2
Weak symbol/alias semantics
...iginal copy in the alias's module? I looked at some examples without ThinLTO, and am a little confused. Current (non-ThinLTO) behavior in some cases seems to depend on opt level.
>>>>>>
>>>>>> Example:
>>>>>>
>>>>>> $ cat weak12main.c
>>>>>> extern void test2();
>>>>>> int main() {
>>>>>> test2();
>>>>>> }
>>>>>>
>>>>>> $ cat weak1.c
>>>>>> #include <stdio.h>
>>>>>>
>...
2017 Jan 18
2
Weak symbol/alias semantics
...other module), or to the original copy in the
> alias's
> > module? I looked at some examples without ThinLTO, and am a little
> > confused. Current (non-ThinLTO) behavior in some cases seems to depend on
> > opt level.
> >
> > Example:
> >
> > $ cat weak12main.c
> > extern void test2();
> > int main() {
> > test2();
> > }
> >
> > $ cat weak1.c
> > #include <stdio.h>
> >
> > void weakalias() __attribute__((weak, alias ("f")));
> > void strongalias() __attribute__((alias (&q...