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

Feature/1900 remove debug symbols release #2072

Open
wants to merge 5 commits into
base: v4.0.0
Choose a base branch
from

Conversation

olehnikolaiev
Copy link
Contributor

@olehnikolaiev olehnikolaiev commented Jan 8, 2025

fixes #1900

  1. All dependencies, are built with -O3 and without -g
  2. skaled is built with -O3 but WITH -g.
  3. -rdynamic removed.
  4. skaled binary is stripped, but it's copy wit debug info is kept.
  5. asserts are removed from RelWithDebInfo build

Consequences:

  1. Stack trace printed by skaled on crash will not contain any function names.
  2. gdb will be able to use skaled-debug file to load debug info for original skaled
  3. addr2line will be able to convert addresses from skaled's printed stack trace into source code locations using skaled-debug binary

Testing:
1

objdump -h skaled | grep debug
nm -a skaled
  1. Execute strip command on skaled and see that it's size didn't change
  2. ojdump -h | grep debug on all project libraries shows no result too.

skaled binary size 29575576

@olehnikolaiev olehnikolaiev linked an issue Jan 8, 2025 that may be closed by this pull request
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.

Remove debug library builds from release
1 participant