Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Windows > Re: What is a "...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 228 of 318
Post > Topic >>

Re: What is a "reloc"?

by Stephen Kay <sk@[EMAIL PROTECTED] > Nov 3, 2004 at 01:27 AM

in article mwron-7C9B48.19120301112004@[EMAIL PROTECTED]
 MW Ron at
mwron@[EMAIL PROTECTED]
 wrote on 11/1/04 7:12 PM:

>> In response to a tech support issue from another company, I've been
told to
>> "try compiling your executable without using relocs" - something I've
never
>> heard of before. Sorry if it's probably a stupid question, but any
clues?
> 
> I think they are talking about relocation tables known as Fixup tables.
> .reloc sections of the code.   You can select that and disassemble your
> code to see what is .data  or .text and .reloc sections  among others.
> I didn't see a way to block this with a pragma or anything so I'm not
> sure how to do this.  Maybe he means no preaddressing the DLL's that is
> all I can think of.

Thanks for the response, MWRon. I got a bit more info:

> Engineering recommends compiling without the use of relocations.
> Relocations are required for binaries which do not have a fixed load
> base address such as DLLs. As for executables, the image base is
> constant and therefore does not require relocations.
> 
> In the VC6/7 linker, this feature is controlled by the option of
> /FIXED:YES, to disable relocations. If you are using a non-VC linker,
> you will need to determine what linker option is required to disable the
> feature.

Do you have any idea how this translates to CW (I'm using CW7)? Would that
be in Linker> Decode Text Sections > Resolve Reolcations? Thanks.

Stephen




 7 Posts in Topic:
What is a "reloc"?
Stephen Kay <sk@[EMAIL  2004-10-30 02:49:38 
Re: What is a "reloc"?
rodd@[EMAIL PROTECTED] (  2004-11-01 22:04:43 
Re: What is a "reloc"?
MW Ron <mwron@[EMAIL P  2004-11-01 19:12:03 
Re: What is a "reloc"?
Stephen Kay <sk@[EMAIL  2004-11-03 01:27:51 
Re: What is a "reloc"?
MW Ron <mwron@[EMAIL P  2004-11-05 12:45:33 
Visual Studio Lib work in Codewarrior?
Ando Sonenblick <ando@  2004-11-12 19:22:47 
Re: Visual Studio Lib work in Codewarrior?
MW Ron <mwron@[EMAIL P  2004-11-16 17:48:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 1:30:54 CDT 2008.