X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Message-Id: <200404081629.i38GTQWk026322@speedy.ludd.ltu.se> Subject: Stubify problem? To: DJGPP-WORKERS Date: Thu, 8 Apr 2004 18:29:26 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL78 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-MailScanner: Found to be clean Reply-To: djgpp-workers AT delorie DOT com 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