You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We include binary data into the executable, but recently we did it with llvm-objcopy and used it by iterating over symbols of the binary at runtime. Changing it to INCBIN is a nice improvement!
The text was updated successfully, but these errors were encountered:
Create a source file:
Create a data file to include in a separate directory:
This works perfectly:
But this does not:
The culprit is LTO, and the include path.
If I remove LTO or specify the absolute path inside the
INCBIN
macro, it works.The issue found by ClickHouse in ClickHouse/ClickHouse#52489
We include binary data into the executable, but recently we did it with
llvm-objcopy
and used it by iterating over symbols of the binary at runtime. Changing it to INCBIN is a nice improvement!The text was updated successfully, but these errors were encountered: