------- Additional Comments From others1 at pervalidus dot net  2006-03-16 
23:43 -------
I can reproduce it with anything, even a single
#include <stdio.h>
void main(void) {
printf("Hello world \n");
}

New binutils:

$ gcc -o foo -Wl,-s foo.c
foo.c: In function `main':
foo.c:2: warning: return type of 'main' is not `int'
$ ls -l foo
-rwxr-xr-x 1 root root 3313 2006-03-16 20:38 foo
$ strip foo
$ ls -l foo
-rwxr-xr-x 1 root root 2896 2006-03-16 20:39 foo

Old binutils:

$ gcc -o foo -Wl,-s foo.c
foo.c: In function `main':
foo.c:2: warning: return type of 'main' is not `int'
$ ls -l foo
-rwxr-xr-x 1 root root 2896 2006-03-16 23:40 foo
$ strip foo
-rwxr-xr-x 1 root root 2896 2006-03-16 23:40 foo

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2462

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to