flat assembler
Message board for the users of flat assembler.

Index > Windows > how to get the address of a section?

Author
Thread Post new topic Reply to topic
daluca



Joined: 05 Nov 2005
Posts: 86
daluca
hello:
I need to get the adrees of an arbitrary section made in ms coff format
I know I could simply put a label at the beginning of the section to access
that section but the real problem is this:

let's say I have 3 object files each file have a section 'data' with different
contents ,so if I link them to make an exe or dll these 3 sections are going
to be merged together ... right?

so how can i access the beginning of the whole merged section?

oh! and i forget: i can't (or i don't want) control the order in wich this
object files are linked. so is not as simple as a label at the beginning
of the firstly linked object file.

thanks if anyone can help.
Post 20 Jun 2009, 18:15
View user's profile Send private message Reply with quote
asmcoder



Joined: 02 Jun 2008
Posts: 784
asmcoder
[content deleted]


Last edited by asmcoder on 14 Aug 2009, 14:50; edited 1 time in total
Post 20 Jun 2009, 20:04
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
asmcoder wrote:
you cant.


So, you have already considered walking the PE structures that are mapped to memory? Great.
Post 20 Jun 2009, 20:27
View user's profile Send private message Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
LocoDelAssembly wrote:
asmcoder wrote:
you cant.


So, you have already considered walking the PE structures that are mapped to memory? Great.
You can even get it from the file.

_________________
Previously known as The_Grey_Beast
Post 21 Jun 2009, 00:14
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.