24 lines
331 B
C
24 lines
331 B
C
#include <stdio.h>
|
|
|
|
__asm__ (".symver bar_v1, bar@v1");
|
|
__asm__ (".symver bar_v2, bar@@v2");
|
|
|
|
void bar_v1(void);
|
|
void bar_v2(void);
|
|
void baz(void);
|
|
|
|
void bar_v1(void)
|
|
{
|
|
printf("weak_as_needed_b: bar_v1\n");
|
|
}
|
|
|
|
void bar_v2(void)
|
|
{
|
|
printf("weak_as_needed_b: bar_v2\n");
|
|
}
|
|
|
|
void baz(void)
|
|
{
|
|
printf("weak_as_needed_b: baz\n");
|
|
}
|