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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:23:16+00:00 2026-05-25T10:23:16+00:00

For my program delphi-code-coverage-wizard , I need to verify that a (detailed) mapping file

  • 0

For my program delphi-code-coverage-wizard, I need to verify that a (detailed) mapping file .map matches a Delphi application .exe

Of course, this verification should be realized with Delphi.
Is there a way to check it ? Maybe by verifying some information from the EXE ?

  • 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-25T10:23:17+00:00Added an answer on May 25, 2026 at 10:23 am

    I think a quite simple heuristic would be to check that the various sections in the PE file start and finish at the same place:

    For example, here’s the top of a map file.

     Start         Length     Name                   Class
     0001:00401000 000A4938H .text                   CODE
     0002:004A6000 00000C9CH .itext                  ICODE
     0003:004A7000 000022B8H .data                   DATA
     0004:004AA000 000052ACH .bss                    BSS
     0005:00000000 0000003CH .tls                    TLS
    

    I also looked at what dumpbin /headers had to say about these sections:

    SECTION HEADER #1
       .text name
       A4938 virtual size
        1000 virtual address (00401000 to 004A5937)
       A4A00 size of raw data
         400 file pointer to raw data (00000400 to 000A4DFF)
           0 file pointer to relocation table
           0 file pointer to line numbers
           0 number of relocations
           0 number of line numbers
    60000020 flags
             Code
             Execute Read
    
    SECTION HEADER #2
      .itext name
         C9C virtual size
       A6000 virtual address (004A6000 to 004A6C9B)
         E00 size of raw data
       A4E00 file pointer to raw data (000A4E00 to 000A5BFF)
           0 file pointer to relocation table
           0 file pointer to line numbers
           0 number of relocations
           0 number of line numbers
    60000020 flags
             Code
             Execute Read
    
    ...truncated
    

    Look at the .text section. According to dumpbin it starts at 00401000 and finishes at 004A5937 which is a length of 000A4938, exactly as in the .map file. Naturally you’d read the PE file directly rather than running dumpbin, but this illustrates the point.

    I’d expect a vanishingly small number of false positives with this approach.

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

Sidebar

Related Questions

I was looking into using some .NET code from within a Delphi program, I
I've created a program in Delphi that uses Google's AJAX Search API to evaluate
I work on a program in Delphi that holds a lot of data, and
Were can I find some good Podcasts that talk about program with Delphi &
I am trying to create a code coverage tool using Delphi 2007. My general
I have a Delphi 2009 program that handles a lot of data and needs
This Delphi code will show a memory leak for an instance of TMyImplementation: program
I have associated a file extension with my Delphi 2009 program. I have been
I'd like to download a file from my Delphi program in a separate thread
My Delphi 6 program need to place an image on each row of my

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.