bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12760] LTO doesn't work with .gnu.warning section


From: hjl.tools at gmail dot com
Subject: [Bug ld/12760] LTO doesn't work with .gnu.warning section
Date: Mon, 16 May 2011 14:01:06 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12760

--- Comment #8 from H.J. Lu <hjl.tools at gmail dot com> 2011-05-16 14:01:01 
UTC ---
(In reply to comment #7)
> modified bar.c testing other warning sym cases
> 
> #define linker_warning(x, msg) \
>     asm(".section .gnu.warning." #x "\n\t.previous"); \
>     static const char __warn_##x[] \
>     __attribute__((used, section(".gnu.warning." #x "\n\t#"))) \
>     = msg

There is a typo in linker_warning. Please change it to

#define linker_warning(x, msg) \
    static const char __warn_##x[] \
    __attribute__((used, section(".gnu.warning." #x))) \
    = msg

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]