Fix aliases on 64 bit

Use correct width ELF structure.
This commit is contained in:
Michael Matz
2016-09-04 00:19:47 +02:00
parent 9656560f14
commit f2a071e808
2 changed files with 3 additions and 2 deletions

View File

@ -2962,6 +2962,7 @@ void __attribute__((weak)) weak_test(void)
printf("weak_asm_f2=%d\n", weak_asm_f2 != NULL);
printf("weak_asm_f3=%d\n", weak_asm_f3 != NULL);
printf("weak_asm_v1=%d\n",&weak_asm_v1 != NULL);
printf("weak_asm_v2=%d\n",&weak_asm_v2 != NULL);
printf("weak_asm_v3=%d\n",&weak_asm_v3 != NULL);
printf("some_lib_func=%d\n", &some_lib_func ? some_lib_func() : 0);
}