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

  • Home
  • SEARCH
  • 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 7921135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:28:26+00:00 2026-06-03T16:28:26+00:00

I am writing a C++ simulation model of Sparc V8. Memory is modelled simply

  • 0

I am writing a C++ simulation model of Sparc V8. Memory is modelled simply as an array.
I need to read an elf-executable generated by a cross compiler and use it to initialise the memory. I am planning to do it as follows.

sparc-elf-readelf --hex-dump=.text --hex-dump=.rodata --hex-dump=.data <elf-file> > dump.txt
grep "0x" dump.txt >dump2.txt

This produces an (address, word, word word) format text file that looks like this:

  0x00000000 88100000 09000000 81c120b0 01000000 .......... .....
  0x00000010 91d02000 01000000 01000000 01000000 .. .............
  0x00000020 91d02000 01000000 01000000 01000000 .. .............
  0x00000030 91d02000 01000000 01000000 01000000 .. .............
  0x00000040 91d02000 01000000 01000000 01000000 .. .............
  0x00000050 a1480000 29000000 81c521a8 01000000 .H..).....!.....
  0x00000060 a1480000 29000000 81c52220 01000000 .H..)....." ....
  0x00000070 91d02000 01000000 01000000 01000000 .. .............
  ...

Q: What are all the dots in the last column?

Q: Is there a better way to generate a memory image from the elf executable? I think I need to copy only the .text, .rodata and .data sections

thanks for any suggestions

  • 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-03T16:28:29+00:00Added an answer on June 3, 2026 at 4:28 pm

    Q: What are all the dots in the last column?

    As Ernest says, they are unprintable characters. That is, each one is a byte that does not fit in 7 bits (not ASCII) or it is lower than 0x20 (control ASCII character).

    Q: Is there a better way to generate a memory image from the elf executable? I think I need to copy only the .text, .rodata and .data sections

    Your approach will simply not work. The ELF format is not just about providing information about where sections will go in memory; it also contains instructions for resolving dynamic symbols and relocations. What you need, is a memory image after the loader activities has taken place.

    I suggest you read the ELF specification and the addendum applicable to SPARC.
    If you are not embarking into this project for just educational purposes, I also suggest you rather use any of the existing platform and application emulators like QEMU .

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

Sidebar

Related Questions

I'm writing a physics simulation (Ising model) in C++ that operates on square lattices.
I am writing some simulation code and managed to get my model running as
I'm writing a function where I need a significant amount of heap memory. Is
I am new to Python. I am writing a simulation in SimPy to model
I'm writing a sprite like simulation where I need to move a label with
I'm writing a simulation in which a creature object should be able to move
I'm writing a simulation for class, and part of it involves the reproduction of
I am writing a simulation in Java whereby objects act under Newtonian physics. An
Right now I am writing a simulation program which output is formatted according to
I am writing a small simulation of a boat (a sailboat under power rather

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.