bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/24406] -Wl,--wrap= incompatible with -flto


From: dilyan.palauzov at aegee dot org
Subject: [Bug ld/24406] -Wl,--wrap= incompatible with -flto
Date: Wed, 03 Apr 2019 14:25:36 +0000

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

--- Comment #5 from dilyan.palauzov at aegee dot org <dilyan.palauzov at aegee 
dot org> ---
With the patch applied this works:

clang -flto -fuse-ld=bfd  -Wl,--wrap=read -O3 t.c
gcc   -flto -fuse-ld=bfd  -Wl,--wrap=read -O3 t.c
gcc   -flto -fuse-ld=bfd  -Wl,--wrap=read -O2 t.c
gcc   -flto -fuse-ld=bfd  -Wl,--wrap=read -O1 t.c

This does not work:

gcc   -flto -fuse-ld=gold -Wl,--wrap=read -O3 t.c
gcc   -flto -fuse-ld=gold -Wl,--wrap=read -O2 t.c
gcc   -flto -fuse-ld=gold -Wl,--wrap=read -O1 t.c

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