mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
8 lines
182 B
C
8 lines
182 B
C
|
#define linker_warning(x, msg) \
|
||
|
static const char __warn_##x[] \
|
||
|
__attribute__((used, section(".gnu.warning." #x))) \
|
||
|
= msg
|
||
|
|
||
|
void bar (void) {}
|
||
|
linker_warning(bar, "Bad bar");
|