Clang should never emit zero-length functions if they may be address-taken #32380
Labels
bugzilla
Issues migrated from bugzilla
clang:codegen
IR generation bugs: mangling, exceptions, etc.
confirmed
Verified by a second party
Extended Description
If the linker places a zero-length function at the same address as another function, function pointer equality may be broken.
$ cat addr-taken.c
$ clang -Os addr-taken.c
$ ./a.out
0x400510 0x400510
The text was updated successfully, but these errors were encountered: