I committed this patch to the binutils 2.21 branch to fix the case of EXTERN appearing in a linker script which appears on the command line as an ordinary input file. Ian 2011-02-01 Ian Lance Taylor Backport from mainline: 2011-01-25 Ian Lance Taylor * script.cc (script_add_extern): Rewrite to use add_symbol_reference.