all groups > dotnet clr > october 2004 >
You're in the

dotnet clr

group:

PE Customization


PE Customization Nadav
10/24/2004 9:15:17 PM
dotnet clr:
Hi,



I am using C++ with VS.NET 2003, I am trying to add a custom section to the
PE generated by the C++ Linker, to achieve that I am using the data_seg
pragma, the only problem is that the section is not added at the end of the
PE, is it possible to tell the linker somehow to add the custom section at
the end of the PE???, this is essential for me as I need the section size to
be enlarged to an unpredictable size, enlarging section other then the last
section of the PE will require me to analyze the data contained in all of
the following sections to the embedded RVAs could be adjusted, adding the
custom section as the last section will save me the burden of doing such a
manipulation.



SOoo. Is it possible to instruct the inker to add a custom section after all
of the default sections ( after the '.reloc' section ) ?



Any help would be appreciated.



Thanks in advance,

Nadav.

http://www.ddevel.com

Re: PE Customization Eric Wilson
11/2/2004 6:08:29 AM
I thought (although you should test this to be sure) that the sections are
in alphabetical order. So if you name your section something like
"ZZZZZZZZZ", it should appear at the end.

[quoted text, click to view]

AddThis Social Bookmark Button