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

Optional support for bitcode, symbol prefixing, and cmodule. #820

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

hexploitable
Copy link
Contributor

@hexploitable hexploitable commented Sep 25, 2024

This PR adds 3 new features/options to the build.

  1. CModule is now a feature which can be enabled or disabled. It is enabled by default.
  2. Symbol prefixing is now a feature which can be disabled. Largely due to this causing issues when embedded bitcode (symbols are non-renamed inside the bitcode and therefore the linker gets confused).
  3. Embed bitcode - support for including bitcode in the builds.

Depends on an update to releng: frida/releng#4

@hexploitable hexploitable marked this pull request as draft September 25, 2024 11:14
Copy link
Member

@oleavr oleavr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! So sorry it took me ages to get to this 😓

],
)

enable_bitcode = get_option('bitcode')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meson already has a built-in option for this: b_bitcode.

@@ -428,12 +436,18 @@ if get_option('devkits').length() != 0
endif
mkdevkit = [python, releng / 'mkdevkit.py']
uninstalled_dir = meson.global_build_root() / 'meson-uninstalled'

prefix_syms = get_option('prefixsyms')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to invert the logic, so it's opt-out instead. In that way we won't have to update frida-core, which also uses mkdevkit.py.

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

Successfully merging this pull request may close these issues.

2 participants