bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/29086] -Wl,--wrap=foo with LTO leads to undefined symbol


From: hjl.tools at gmail dot com
Subject: [Bug ld/29086] -Wl,--wrap=foo with LTO leads to undefined symbol
Date: Mon, 25 Apr 2022 17:19:52 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29086

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
[hjl@gnu-tgl-3 pr29086]$ cat foo.S
        .text
foo:
        .nops 1

        .data
        .dc.a __real_foo
[hjl@gnu-tgl-3 pr29086]$ gcc -c foo.S
[hjl@gnu-tgl-3 pr29086]$ ld --wrap=foo foo.o
ld: warning: cannot find entry symbol _start; defaulting to 0000000000401000
ld: foo.o:(.data+0x0): undefined reference to `foo'
[hjl@gnu-tgl-3 pr29086]$

-- 
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]