Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6931625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:36:07+00:00 2026-05-27T11:36:07+00:00

I want to deliver a C static library and hide the internal implementation as

  • 0

I want to deliver a C static library and hide the internal implementation as much as possible. I am using a code obfuscator on my code and that works very well for making symbols incomprhensible for a human. I am using xcode 4 which I assume has GCC like flags.

My problem is that my library still contains readable informations that I would like to hide or make incomprehensible to human:

1- Object file names:
When I run nm on the .a , I still see the names of each object file. (i.e myObect1.o myObject2.o etc). Is there a way to remove these names from my .a?

2- file paths:
When I run strings on my library, I still see paths to headers files as well as some .c file paths (included as #include). Is there a way to remove these as well. (GCC flag or other way)?

Thanks for you help,

baba

ps: I know about nm and strings but if you know of any other tools or if you can suggest anything else I should check is properly hidden in my .a, all suggestion is welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:36:08+00:00Added an answer on May 27, 2026 at 11:36 am

    Consider distributing an amalgamation as SQLite does: http://www.sqlite.org/amalgamation.html. In other words, instead of a library, distribute a single .o file and a single .h file.

    You’ll have to annotate your internal functions as static. This will also give the compiler further opportunity for optimization. Lua uses such annotations. See for instance http://www.lua.org/source/5.1/ldo.h.html. For an amalgamation, LUAI_FUNC is defined as static.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If the requirements are changing frequently and you want to deliver your code in
I want that Apache and Pinax only deliver Attachments to authenticated users. I found
I am working on a Java project that I want to deliver to my
I have made a demo small program that I want to deliver to my
I am used to deliver DLLs that built on top of several static libraries(.lib)
I have made a java project and want to deliver it to a client
as google does not deliver what i want to know, i try to ask
want to know why String behaves like value type while using ==. String s1
For performance reasons, I want to deliver some of my files from a CDN
I want to deliver a finished and working Titanium App to Android customers. But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.