![]() |
|
|
|
#1
|
|||
|
|||
|
Although the MSDN doesn't directly say so, my guess would be that manually assigning a section the string shall be placed in (explicitly allocating the space) makes the linker think of it as something external - why would one want to explicitly allocate/assign it if not for specific reasons? You're taking the trouble, so the linker might assume you know what you're doing.
Or it's just due to some internal MS design issues no one will ever know more about. |
|
#2
|
|||
|
|||
|
The bevaviour is the same for variables without manual section assignment.
It would be interesting to know whether other versions of link behave in the same way. Unfortunately I uninstalled my 2008 Express install in favour of 2010 so I can't check myself.
|
|
#3
|
|||
|
|||
|
Well, tried on VC6 (link 6.00.8168): exactly the same behaviour,
even if I remove the three lines Code:
#pragma code_seg(SECTION_NAME) // push not understood #pragma comment(linker, "/SECTION:"SECTION_NAME",RWE") __declspec(allocate(SECTION_NAME)) Regards, bilbo |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Armadillo Environment Variables Finder 1.2 | rukov | Community Tools | 3 | 12-16-2015 01:59 |
| 2004 Global Piracy Study | Shub-Nigurrath | General Discussion | 2 | 07-13-2004 20:51 |
| Tool to zero unused space??? | yaa | General Discussion | 1 | 10-09-2003 20:31 |