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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:29:17+00:00 2026-06-03T07:29:17+00:00

I have an STM32 onto which I load ELF files in RAM (using OpenOCD

  • 0

I have an STM32 onto which I load ELF files in RAM (using OpenOCD and JTAG). So far, I haven’t really been paying attention to the size of the ELF files that I load.

Normally, when I compile an ELF file that is too large for my board (my board has 128KB of RAM onto which the executable can be loaded) the linker complains (in the linker script I specify the size of the RAM).

Now that I notice the size of the outputted ELF file, I see that it is 261KB, and yet the linker has not complained!

Why is my ELF file so large, but my linker is fine with it? Is the ELF file on the host loaded exactly on the board?

  • 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-03T07:29:19+00:00Added an answer on June 3, 2026 at 7:29 am

    No — ELF contains things like relocation records that don’t get loaded. It can also contain debug information (typically in DWARF format) that only gets loaded by a debugger.

    You might want to use readelf to give you an idea of what one of your ELF files actually contains. You probably don’t want to do it all the time, but doing it at least a few times to get some idea of what’s there can give a much better idea of what you’re dealing with.

    readelf is part of the binutils package; chances are pretty decent you already have a copy that came with your other development tools.

    If you want to get into even more detail, Googling for something like “ELF Format” should turn up lots of articles. Be aware, however, that ELF is a decidedly non-trivial format. If you decide you want to understand all the details, it’ll take quite a bit of time and effort.

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

Sidebar

Related Questions

Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have you ever had to justify the choice over using .NET instead of Java
I'm trying to execute a function from RAM on a Cortex-M3 processor (STM32). The
have been trying couple of hours now to make my iphone app universal. The
Have some code: using (var ctx = new testDataContext()) { var options = new
Have a really weird one here. The app has two targets, just to be
I am trying to compile some code for an STM32 chip using CodeBench G++
I have to find the code blocks from the given code using a regex
Have just started using Google Chrome , and noticed in parts of our site,
Have any one tried to activate fancybox thumbnail gallery using a button or an

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.