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 8976303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:06:00+00:00 2026-06-15T19:06:00+00:00

Some frameworks (Qt, Windows, Gtk…) offer functionality to add resources to your binaries. I

  • 0

Some frameworks (Qt, Windows, Gtk…) offer functionality to add resources to your binaries. I wonder if it would be possible to achieve this without the framework, since all that is really needed is

  1. a symbol to contain the resource’s address within the binary (data segment)
  2. a symbol to represent the length of the resource
  3. the resource itself

How can this be achieved with the gcc toolchain?

  • 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-06-15T19:06:01+00:00Added an answer on June 15, 2026 at 7:06 pm

    You could do this:

    objcopy --input binary \
            --output elf32-i386 \
            --binary-architecture i386 my_file.xml myfile.o
    

    This produces an object file that you can link into your executable.
    This file will contain these symbols that you’ll have to declare in your C code to
    be able to use them

    00000550 D _binary_my_file_xml_end
    00000550 A _binary_my_file_xml_size 
    00000000 D _binary_my_file_xml_start
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I see some frameworks like Django using unicode all over the place so it
For Javascript some testing-frameworks exist, like JSUnit or js-test-driver. They are fine, but they
Some Genetic Algorithm frameworks, such as http://www.aforgenet.com/ requires many parameters, such as mutation rate,
I've been doing some research on popular Java security frameworks (Spring Security and Apache
My app some times crashes at start-up. In stack-trace only messages from built-in frameworks.
I'm planning to write a Windows app to help myself with some exploratory testing
I write some application on XNA for Windows Phone 7. I need to use
I've been having some problems with a program that I've been writing and would
I want to start developing for Windows but I want to preserve some of
Do the X11/Cocoa frameworks allow for custom windows like how Windows does? What I

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.