Using Microsoft Visual Studio, is it possible to tell the linker where to put each function in the resulting binary? For instance, given the following functions:
struct some_struct GetSomeStruct();
int GetSomeInt();
int WriteAnIntSomewhere(int the_int);
The linker might put the functions in the following places (notice out-of-order):
0x00453200: GetSomeStruct
0x00582340: WriteAnIntSomewhere
0x00833000: GetSomeInt
The final result I want would be something where I can define the final location in the resulting binary, such as:
0x00010000: GetSomeStruct
0x00015000: GetSomeInt
0x00020000: WriteAnIntSomewhere
Thanks!
Adrian J. Collado
Aucun commentaire:
Enregistrer un commentaire