Problem with -Wl,-gc-sections if I use -fuse-ld=lld under NativeAot #119854
Unanswered
DeafMan1983
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I want to know how do I use
-Wl,-no-gc-sections
during-fuse-ld=lld
Example I want to build statically linked dotnet app for pure xcb application.
It happens if I create simple like 01_GettingStarted with my own library ( xcb-module ,but I will release soon... xcb-module is successor for xcb core and extensions like in glib-2.0, gmodule 2.0
if it happens I already prompt with
dotnet publish -c Release -r linux-x64 -p:PublishAot=true
Then it shows error cause -Wl,-gc-sections have _start and _stop inside my dotnet application.
Error from
dotnet publish -c Release -r linux-x64 -p:PublishAot=true
That is cause I checked copied and pasted with
clang -s ....
That is why - I resolved my copied and pasted line with clang if it doesn't happen with
-Wl,-no-gc-sections
then it compiled successfully.
It works fine while I run testing app.
That is why I have problem with -Wl,-gc-sections should be
false
->-Wl,-no-gc-sections
My 01_GettingStarted with xcb + module + util
/opt/Gtk4Latest/lib/x86_64-linux-gnu
that is custom sysroot for xcb, modified Gtk4 ( as Creative Tool Kit , still in Development. Nothing copied from real Gtk4 just I create simple lightweight GUI framework with xcb. )Thanks!
Beta Was this translation helpful? Give feedback.
All reactions