Ge van Geldorp schrieb:
However, I'm having trouble
getting it right in other executables. If I set scnhdr.s_flags to "CONTENTS,
ALLOC, LOAD, DATA" (0xc0000040, like .rsrc) symbol.coff is properly linked
into the final executable, but it will take up space in the loaded image. If
I set scnhdr.s_flags to "CONTENTS, READONLY, DEBUGGING, NEVER_LOAD, EXCLUDE"
(0x42000802, like .stab) then the final executable does not include the
.rossym section.
Hi,
have you modified the linker script files from gcc? You must add the
section definition like the changes in ntoskrnl.lnk.
- Hartmut