* Troubles with ld under windows
@ 2001-10-28 9:39 Thomas Lenherr
0 siblings, 0 replies; only message in thread
From: Thomas Lenherr @ 2001-10-28 9:39 UTC (permalink / raw)
To: gcc-help
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
Greetings,
my ld (from DJGPP) does not really do what I want. Look at this:
== START: test.c ==
int main()
{
int i;
i=0x12345678;
}
== END: test.c ==
I enter this command: gcc -c test.c
(No errors/messages)
(Version of gcc: 2.952)
This gives me test.o (sent with this msg)
Then I enter this command: ld -o test.bin -Ttext 0x0 -e _main --oformat
binary test.o
(No errors/messages)
(Version of ld: 2.9.5)
The result is test.bin (sent with this msg)
But this file is just crap, why?? (test.bin is exactly 1kb)
I've used objdump -D on test.o and most seems perfect.
What the hell is happening with my code?
Thanks
Thomas Lenherr
[-- Attachment #2: test.bin --]
[-- Type: application/octet-stream, Size: 1024 bytes --]
[-- Attachment #3: test.o --]
[-- Type: application/octet-stream, Size: 407 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-28 9:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-28 9:39 Troubles with ld under windows Thomas Lenherr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).