Thread overview
Linker question
Aug 06, 2004
Alexander Beletsky
Aug 06, 2004
Walter
Aug 06, 2004
Alexander Beletsky
Aug 06, 2004
Walter
Aug 07, 2004
Alexander Beletsky
Aug 08, 2004
Walter
August 06, 2004
Folks, with GNU linker (ld) I can tell that my 'text' segment to be at the 1mb memory mark by this instruction:

> ld main.obj -o main.bin --oformat binary -Ttext 0x100000

How can I do the same with Digital Mars linker.

Thanks in advance!



August 06, 2004
Try the /BASE switch. See www.digitalmars.com/ctg/ctgLinkSwitches.html


"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cevbo5$2vra$1@digitaldaemon.com...
> Folks, with GNU linker (ld) I can tell that my 'text' segment to be at the
1mb
> memory mark by this instruction:
>
> > ld main.obj -o main.bin --oformat binary -Ttext 0x100000
>
> How can I do the same with Digital Mars linker.
>
> Thanks in advance!
>
>
>


August 06, 2004
Seems it doesn't help. The map file still the same. /BASE sets the base of executable image but I need to produce binary.

In article <cf0mb5$r51$1@digitaldaemon.com>, Walter says...
>
>Try the /BASE switch. See www.digitalmars.com/ctg/ctgLinkSwitches.html
>
>
>"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cevbo5$2vra$1@digitaldaemon.com...
>> Folks, with GNU linker (ld) I can tell that my 'text' segment to be at the
>1mb
>> memory mark by this instruction:
>>
>> > ld main.obj -o main.bin --oformat binary -Ttext 0x100000
>>
>> How can I do the same with Digital Mars linker.
>>
>> Thanks in advance!
>>
>>
>>
>
>


August 06, 2004
What is the binary for?

"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cf123b$13l3$1@digitaldaemon.com...
> Seems it doesn't help. The map file still the same. /BASE sets the base of executable image but I need to produce binary.
>
> In article <cf0mb5$r51$1@digitaldaemon.com>, Walter says...
> >
> >Try the /BASE switch. See www.digitalmars.com/ctg/ctgLinkSwitches.html
> >
> >
> >"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cevbo5$2vra$1@digitaldaemon.com...
> >> Folks, with GNU linker (ld) I can tell that my 'text' segment to be at
the
> >1mb
> >> memory mark by this instruction:
> >>
> >> > ld main.obj -o main.bin --oformat binary -Ttext 0x100000
> >>
> >> How can I do the same with Digital Mars linker.
> >>
> >> Thanks in advance!
> >>
> >>
> >>
> >
> >
>
>


August 07, 2004
For OS kernel. :) Actually it is possible to create ussual PE file because of GRUB can boot any MultiBoot compatipable binaries.

In article <cf15pk$15i0$1@digitaldaemon.com>, Walter says...
>
>What is the binary for?
>
>"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cf123b$13l3$1@digitaldaemon.com...
>> Seems it doesn't help. The map file still the same. /BASE sets the base of executable image but I need to produce binary.
>>
>> In article <cf0mb5$r51$1@digitaldaemon.com>, Walter says...
>> >
>> >Try the /BASE switch. See www.digitalmars.com/ctg/ctgLinkSwitches.html
>> >
>> >
>> >"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cevbo5$2vra$1@digitaldaemon.com...
>> >> Folks, with GNU linker (ld) I can tell that my 'text' segment to be at
>the
>> >1mb
>> >> memory mark by this instruction:
>> >>
>> >> > ld main.obj -o main.bin --oformat binary -Ttext 0x100000
>> >>
>> >> How can I do the same with Digital Mars linker.
>> >>
>> >> Thanks in advance!
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>
>


August 08, 2004
What you can do is write a simple program to just strip the binary data out of the PE file.

"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cf2534$1maj$1@digitaldaemon.com...
> For OS kernel. :) Actually it is possible to create ussual PE file because
of
> GRUB can boot any MultiBoot compatipable binaries.
>
> In article <cf15pk$15i0$1@digitaldaemon.com>, Walter says...
> >
> >What is the binary for?
> >
> >"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cf123b$13l3$1@digitaldaemon.com...
> >> Seems it doesn't help. The map file still the same. /BASE sets the base
of
> >> executable image but I need to produce binary.
> >>
> >> In article <cf0mb5$r51$1@digitaldaemon.com>, Walter says...
> >> >
> >> >Try the /BASE switch. See www.digitalmars.com/ctg/ctgLinkSwitches.html
> >> >
> >> >
> >> >"Alexander Beletsky" <Alexander_member@pathlink.com> wrote in message news:cevbo5$2vra$1@digitaldaemon.com...
> >> >> Folks, with GNU linker (ld) I can tell that my 'text' segment to be
at
> >the
> >> >1mb
> >> >> memory mark by this instruction:
> >> >>
> >> >> > ld main.obj -o main.bin --oformat binary -Ttext 0x100000
> >> >>
> >> >> How can I do the same with Digital Mars linker.
> >> >>
> >> >> Thanks in advance!
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>