Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clang CFI support #121

Open
JamiKettunen opened this issue Dec 1, 2023 · 0 comments
Open

Clang CFI support #121

JamiKettunen opened this issue Dec 1, 2023 · 0 comments

Comments

@JamiKettunen
Copy link
Contributor

JamiKettunen commented Dec 1, 2023

Similar to the stuff merged in sailfishos/libglibutil#9 and sailfishos/libglibutil#10 could also be done here with e.g. unit_bridge failing with https://paste.c-net.org/nhzo1ahqzuij (and on runtime with just hidden visibility https://github.com/erfanoabdi/gbinder-python fails to find gbinder_bridge_free symbol for example)

A minimal test env can similar to before be created with:

git clone https://github.com/JamiKettunen/cports -b libgbinder-cfi
cd cports
wget https://repo.chimera-linux.org/apk/apk-x86_64-3.0.0_pre2-r0.static
mv apk-x86_64-3.0.0_pre2-r0.static apk
chmod +x apk
PATH=$PWD:$PATH
cbuild keygen
cbuild binary-bootstrap
cbuild pkg contrib/libgbinder   # this will fail as described above
cbuild chroot

apk add lldb glib-dbg
lldb /builddir/libgbinder-1.1.35/unit/unit_bridge/build/debug/unit_bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant