Hi all,
Is it possible to override linker usage in NASM.
I mean, is it possible to specify data, code segment alignment and address in NASM itself.
NASM => Is it possible to override linker usage ?
Re: NASM => Is it possible to override linker usage ?
If you are not using a linker, why insist on using segments?
Just use the align directive before labels.
If you are using a linker, then no, that's the whole point of a linker.
Just use the align directive before labels.
If you are using a linker, then no, that's the whole point of a linker.
Re: NASM => Is it possible to override linker usage ?
At first, thanks to your reply.
leave about segment.
I want to load all my data in memory location "X", and I want to load and run my code from memory location "Y", how to do it in NASM without linker.
My advance thanks for those who post some simple example for this.
leave about segment.
I want to load all my data in memory location "X", and I want to load and run my code from memory location "Y", how to do it in NASM without linker.
My advance thanks for those who post some simple example for this.
Re: NASM => Is it possible to override linker usage ?
The question is, why would you want to do that without a linker?osdevkid wrote:I want to load all my data in memory location "X", and I want to load and run my code from memory location "Y", how to do it in NASM without linker.
Could it be because you don't understand linkers and are afraid of them?
If your X and Y are adjacent to each other in memory, it should be blatantly obvious how to do it.
If they are seperate in memory, you could hack your way around it in source, but all you'd do is mimic what the linker does for you anyway (meaning, you would have to understand what they do first, anyway).
Usually posting source is the worst way "explaining" something.My advance thanks for those who post some simple example for this.
Every good solution is obvious once you've found it.
Re: NASM => Is it possible to override linker usage ?
Hi Solar,Solar wrote: Could it be because you don't understand linkers and are afraid of them?
Can you please recommend some good tutorial about Linker.
Re: NASM => Is it possible to override linker usage ?
Maybe you need to read carefully the NASM manual to know if you can do that...osdevkid wrote:Can you please recommend some good tutorial about Linker.
"Open source seems to embrace the dark side of human nature." - Ville Turjanmaa
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: NASM => Is it possible to override linker usage ?
Please, learn to STFW.osdevkid wrote:Can you please recommend some good tutorial about Linker.