I seem unable to compile anything with gcc, im using gcc-3.3.4-i486-1 under slackware linux 9.1

Everytime I try to compile anything with gcc it reports the following errors:
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: unrecognized option '--as-needed'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status

anyone has some idea avout how can I fix it?