Mail Archives: djgpp-workers/2004/04/08/12:30:56
Hello.
Take a.c:
int main(void) { return 0; }
Compile to a:
> gcc -O2 -Wall -v a.c -o a
Reading specs from e:/djgpp/lib/gcc-lib/djgpp/2.953/specs
gcc version 2.95.3 20010315/djgpp (release)
...
e:/djgpp/lib/gcc-lib/djgpp/2.953/collect2.exe -o a e:/djgpp/lib/crt0.o -Le:/djg
pp/lib -Le:/djgpp/lib/gcc-lib/djgpp/2.953 -Le:/djgpp/bin -Le:/djgpp/lib t:\tmp\c
cIhQUZh.o -lgcc -lc -lgcc -Tdjgpp.djl
e:/djgpp/bin/stubify.exe -v a
stubify for djgpp V2.X executables, Copyright (C) 1995-2003 DJ Delorie
stubify: a -> a.000 -> a.exe
Ok. Now compile to a.b:
> gcc -O2 -Wall -v a.c -o a.b
...
e:/djgpp/lib/gcc-lib/djgpp/2.953/collect2.exe -o a.b e:/djgpp/lib/crt0.o -Le:/d
jgpp/lib -Le:/djgpp/lib/gcc-lib/djgpp/2.953 -Le:/djgpp/bin -Le:/djgpp/lib t:\tmp
\ccYHzIAh.o -lgcc -lc -lgcc -Tdjgpp.djl
e:/djgpp/bin/stubify.exe -v a.b
stubify for djgpp V2.X executables, Copyright (C) 1995-2003 DJ Delorie
stubify: a.b -> a.000 -> a.exe
Not ok! Notice how ".b" was dropped. Now try for a.b.:
> gcc -O2 -Wall -v a.c -o a.b.
...
e:/djgpp/lib/gcc-lib/djgpp/2.953/collect2.exe -o a.b. e:/djgpp/lib/crt0.o -Le:/
djgpp/lib -Le:/djgpp/lib/gcc-lib/djgpp/2.953 -Le:/djgpp/bin -Le:/djgpp/lib t:\tm
p\ccXDqKiQ.o -lgcc -lc -lgcc -Tdjgpp.djl
e:/djgpp/bin/stubify.exe -v a.b.
stubify for djgpp V2.X executables, Copyright (C) 1995-2003 DJ Delorie
stubify: a.b. -> a.b.000 -> a.b.exe
Ok.
Has stubify always done this? Do we consider this so serious that we
should correct this?
I consider it a minor misfeature and might do something if I find time
(not likely) and is very bored.
Right,
MartinS
- Raw text -