Remove remaining debug symbols

Open
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
build-system

Research direction

Start by reviewing the Release and MinSizeRel configuration for clang and crosstool-ng, then inspect /usr/local/osquery-toolchain/lib/libc-2.12.2.so and a simple C++ Release binary for debug information. Done means the toolchain configuration is understood and Release outputs no longer contain unintended debug symbols.

Written by the indexing model from the issue text.

Description

I recently noticed that an osquery Release build contains debug information.

I've tested with a simple cpp file and indeed our clang creates a Release binary with some debug symbols.
Checking the toolchain provided files I noticed that /usr/local/osquery-toolchain/lib/libc-2.12.2.so for instance is marked having debug symbols.
I'm not sure why, since I've built clang with MinSizeRel and crosstool-ng should be also building in Release mode.
Anyway, I think we need to double check the configuration.

Dominant language
Shell
Stars
43
Forks
23
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from osquery/osquery-toolchain

All issues in osquery/osquery-toolchain

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.